redteardrop Posted October 2, 2013 Report Share Posted October 2, 2013 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 Quote Link to comment Share on other sites More sharing options...
Samrae Posted October 2, 2013 Report Share Posted October 2, 2013 To copy the current window title into a string variable use the "Variable Set String %T9% from Window Title" command. Quote Link to comment Share on other sites More sharing options...
redteardrop Posted October 3, 2013 Author Report Share Posted October 3, 2013 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.