• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1886
  • 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.
  • 3
1 Solution
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
It was actually Autohotkey that I meant when I recommended AutoIt to you in the other thread :)
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.
Is this the continuation of :

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 ?

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

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