margaret Posted September 14, 2008 Report Share Posted September 14, 2008 Greetings, I'm trying to make a macro in Macro Express (first capturing and then editing with Script Editor), and I'm unable to successfully reproduce the action of changing windows using Alt-Tab. What I'm doing is switching windows between Adobe Acrobat and Microsoft Word to paste something that I've copied from the Acrbat file into the Word file. I thought I had it captured, but the Alt-Tab action doesn't play back. Instead, it seems that Adobe Acrobat interprets it in some other way and then copies my text into what may be a comment box. Obviously, we're never getting out of the Acrobat window... Should Alt-Tab be reproducible? Or is there some other or better way to have the macro switch windows? Thanks for any help. Meg Quote Link to comment Share on other sites More sharing options...
rberq Posted September 14, 2008 Report Share Posted September 14, 2008 Try using <ALTD><TAB><ALTU>, if the key sequence wasn't captured that way. In other words, Alt Down is equivalent to pressing and holding the Alt key; then Tab is pressed and released; then Alt Up releases the Alt key. When you think about it, that's really what you are doing when you manually tab from window to window -- you may hit the tab key several times to cycle through a series of windows, before you finally release the Alt key. If it still doesn't work, maybe you can use Activate Window to switch back and forth based on the [partial] window title. That may be more reliable overall if you have more than just the two windows running. Quote Link to comment Share on other sites More sharing options...
margaret Posted September 14, 2008 Author Report Share Posted September 14, 2008 Hi rberg, Thanks. Meanwhile I found Activate Window in the help file and that works fine. Yes, that way I don't have to worry about the user possibly having more than two windows running. Meg 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.