Jump to content
Macro Express Forums

Zarious

Members
  • Posts

    6
  • Joined

  • Last visited

Zarious's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. I've searched the forum over, and read some discussion on this topic, but no one has spelled out an answer yet to exactly what I'm looking for. I want a floating menu to appear when a particular window is in focus, and disappear, when that window goes out of focus. I have managed to get it to appear when the window comes into focus "using a separate macro to activate it with the enable command", but I cannot figure out how to make it go away when the window is no longer in focus. Any suggestions?
  2. One more foot note, the way my macro was going to work "this won't make sense until you look at the modified script I posted", was for it to delete the sid=new.txt when you run the macro, then run test3.hta, and wait for the creation of the sid=new.txt file, once it detects that that file exists, it will close the test3.hta window, and process the txt file to assign the value of the variables in the macro. Kind of a back door to making the form work, without all the other complication in the original thread I referenced. If it would have worked, you could create some pretty complicated forms "the java script supports radio buttons and drop down menus" using simple HTML and have any script simply process the created csv file to assign the variables. Much easier to modify IMHO.
  3. Ok I pulled the original java script from this web site. Originally, the java script took the input from the html file, and saved each pressing of the submit button as a separate csv file, named differently based on a time stamp. So each file was named something like "sid=1234(timestamp)". That wouldn't work for what I wanted, every press of the submit button had to generate a csv file named the same. So I modified the java script (took me 2 hours to figure out how...) to keep a stable file name "sid=new.txt" I didn't figure out how to make it leave off the sid= part, but it worked like I wanted. Here is the code I modified and the hta form that I edited up from the html form that originally came with the java script. It's VERY basic, but when you smack the submit button, it creates a txt file with the data in csv format "it adds a time stamp field as well for some reason, but I just ignore that when I process the file". It's just that when I use a macro to run the hta file, it won't produce the csv file when I press submit. I'm certain that the java script file could be pretty easily modified by some one with a little more knowledge than I have about this stuff "pretty much 0" and that it might actually make a form like this usable.
  4. I read this Post over in the Third Party Tools section, and a form like that is exactly what I need. After some hair pulling, it was obvious that trying to modify the posted forms for my own use was well beyond my meager knowledge. I instead did some searching, and found a nice piece of java script that would save the input from an hta form to a csv file. After whipping up a VERY basic html form using and using that script, I was very pleased with myself. I had the information I wanted in a csv file that I could easily have ME read and insert that data into variables. BUT for some reason if I run the hta file from a macro, it won't produce the csv file!?! If I just double click on it, or run it from the command line, it will produce the csv file ever time I press the submit button, but if I use ME to launch the program as part of a macro, nothing happens when I hit the submit button. I've literally spent all day banging away at this and when I filially thought I had it, nope. Any one have any ideas why it won't produce the file when ME tries to run it (security settings maybe?) or does anyone have a less complex method of using forms with ME than the one suggest in the post I linked to?
  5. Ok that was a DUH moment. For some reason I thought that if I used the trim command, that I would have to specify how many spaces to trim, and the number of spaces vary. Thank you very much for the quick reply. Man this is a great forum .
  6. I have a string variable that has extra spaces on the end. I need to cut those extra spaces off of the end of the string, but not effect the spaces between the words. Here's an example of what I mean, where the underlines ___ represent the spaces I need to remove. Lastname, Firstname__________ A Business Name______________ I am capturing this information from the windows title (trust me it's the only way I can get it ) and it seems that the title is always 40 characters long, with extra spaces being added at the end of the information to make it be 40 characters. I've somehow got to get ME to delete everything from character 40, back to the last letter it encounters. Any ideas on how to do this?
×
×
  • Create New...