Small Business technological experience at Nagarsoft

Prevent unwanted interactions when launching applications

Direct Access allows you for launching commands from anywhere, even when there no text input.

If you are not careful, this could create some unwanted interactions with other application, sending them keystrokes that may have unexpected consequences.

Here’s a simple macro, created with Autohotkey, that solves this problem, allowing you to select the taskbar before typing an abbreviation: keystrokes are then sent to the taskbar preventing unwanted interactions with other applications.

How to use focustaskbar
Run the focustaskbar.exe. An icon Focustaskbar will appear on the taskbar. When you are ready to type an abbreviation to launch an application or open a website (no meaning to use it for Autotext when you want Direct Access to send keystrokes to the active application), type the WIN+C key combination. The script will intercept it and focus the taskbar. You can then type the abbreviation knowing that it won’t have any side effect.

The script assumes that the taskbar is aligned at the bottom of the screen. It that’s not the case for you, you can easily modify the script; similarly you can also change the key combination.

The Script
The script contains just one line: #c::MouseClick, left, 4000,4000
that says: when you detect a WIN+C key combination, send a left mouse click at coordinates (4000, 4000). If your taskbar is not attached to the bottom of the screen, you can easily change the mouse click location accordingly.

So, to be on the safe side, whenever you type an abbreviation for launching applications, type WIN+C followed by your abbreviation.

Download

del.icio.us:Prevent unwanted interactions when launching applications digg:Prevent unwanted interactions when launching applications reddit:Prevent unwanted interactions when launching applications gifttagging:Prevent unwanted interactions when launching applications

4 comments

4 Comments so far

  1. Helge GERMANY January 11th, 2008 05:46

    OK. So why use Direct Access at all if Autohotkey actually provides application launcher scripts and hotstrings and all the like. Plus it is open-source.

    Just curious.

    Helge

  2. Andrea Nagar ITALY January 11th, 2008 10:55

    Autohotkey is a scripting language, kind of low level tool. It doesn’t offer any user interface and it’s programmed writing a script file.

    With Autohotkey you don’t have an interface to interact and change your abbreviations.
    They are actually completely different tools.

    If you so desire, you can create little scripts in autohotkeys and launch them using Direct Access.

  3. Steven AUSTRALIA January 17th, 2008 15:33

    Or just click on the desktop before entering the abbreviation?

  4. Andrea Nagar ITALY January 17th, 2008 15:39

    Exactly, that’s another method. However, if you focus the taskbar you are sure that there’s no interaction with other apps.

Leave a reply