Jump to content
Macro Express Forums

redteardrop

Members
  • Posts

    4
  • Joined

  • Last visited

redteardrop's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. It depends on the program. If for instance it was a notepad file or something, you could save a temp copy of the file with 1.txt as it's filename through the rest. Then you would activate 1.txt - Notepad in ME and do the same for the others. I have found that many programs have the filename as part of the window title these days. You could save the temp file and if it is supposed to be a certain file that already exists somewhere, use a variable to save it's location and filename and use a save as command when done with it to save it back where it's supposed to be. I guess at this point it would be program dependent. Photoshop and chrome has multiple windows, but ME will only see the name of the last active one. Notepad will open a whole new process each time. I guess the stipulation would be if you can alt + tab to it then it should work.
  2. It would be nice being able to do time based math in ME. I would suggest writing a new macro that you can call in your current one (to keep it cleaner). Go to text->date/time and prompt user for date. Make sure you know what format you're using. Use variable->modify string (copy part of text into variable value 3 characters 2 would turn the selected variable into 15 for 08/15/2012) Do this for all 3 dates and you'll have numbers you can start working with and modifying. in the new macro for the date math you'd have set up 3 variables, use an if statement to check what month it is and if the day goes over 30 for the appropriate months, it adds 1 to the month code also. Then set each of the new numbers into a set of variables to call in your main script on writing the new date. The best solution would be to use from the current day. Then you can just use text-> date then set one variable for number of days into the future, etc. But this only works from the current day, if that can be changed combining date/time's promp and date's days into the future setting then it would be better, but I don't know how that can be done. If you're willing to change todays date on your system to the first day you want to use, it'll work better, but that's also more work. I think it also depends on how you want it displayed. June 16, 2012 or 06/16/2012 etc.
  3. Thanks, that's exactly what I was looking for. I also figured out that I could just type the code into the window activate for the string. Activate window %T9% (keeping with 9 in the example) thanks again for the help.
  4. I am working on a macro that just needs to run in the background... mostly. The problem is that I have to switch to a set program, do the commands and get back to my last window used. I have the macro activate the window I need it to for the actual commands, but I can't figure out how to get back to my last used program for me automatically. I could be surfing the net, watching a video, playing a game, so it could be a different window title or program all together that I want to get back to. The <ALTD><TAB><ALTU> command doesn't work. (Also tried running as admin). I wouldn't mind using an "activate window" command, but I need to be able to copy the current window title into a string or variable and call it back as the window to swap to since it won't have the same title each time. Any ideas on how to get something like this to work? Thanks Dylan
×
×
  • Create New...