autohotkey 'alt tab' macro

Posted on 2010-01-07
Last Modified: 2013-11-10
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.
Question by:liamrichards
    LVL 35

    Expert Comment

    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
    LVL 35

    Accepted Solution

    It was actually Autohotkey that I meant when I recommended AutoIt to you in the other thread :)
    LVL 35

    Expert Comment

    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.
    LVL 22

    Expert Comment

    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 ?


    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Join & Write a Comment

    Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
    Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
    An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
    Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now