• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1764
  • Last Modified:

autohotkey 'alt tab' macro

Hi there

Basically i need a macro to switch between two application.
I'm a total newbie, and have found a macro recorder called autohotkey. I'm wondering if it is possible or advice on how to record the alt-tab feature in windows xp.

Ultimately this macro will be used on other machines with only two application ever running on it, but the applications may be different

Alternatively if autohotkey is the wrong way to go about my solution, any information in guiding me in the right direction would be greatly appreciated.
0
liamrichards
Asked:
liamrichards
  • 3
1 Solution
 
torimarCommented:
The Autohotkey command for ALT + TAB is:

Send !{TAB}

Put these commands into a new text file, call it "test.ahk" and save.

If Autohotkey is running on the system, you could now call this macro in a batch file via:
start test.ahk
0
 
torimarCommented:
ps:
It was actually Autohotkey that I meant when I recommended AutoIt to you in the other thread :)
0
 
torimarCommented:
There is also a Autohotkey command called "WinActivate" which will give focus to any programme window that may be in the background, but you need to know the programme name while writing the macro. Which does not seem to apply to your project.
0
 
senadCommented:
Is this the continuation of :
http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Windows/XP/Q_25026523.html
??

I am unsure what you are trying to do here ....
To switch between the applications you use ALT TAB key combination.
But you want a batch file,if I remember correctly....
How would a batch or a script shorten the switching
between applications ? You need to click on batch to execute...
Is not ALT TAB better ?
Could you enlighten me in point of all this ?

0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now