Page 1 of 1

Include an <alt>-tab in script

Posted: 02 Jul 2014 02:00
by orange
How can I go about having a script perform the <alt>-<tab> key combination, which switches between other open programs, say XYPlorer and Firefox? In XYPlorer I can press alt-tab and it will switch to another program, but can I automate that as the last step in a script?
Better still, can I tell XYPlorer to switch to an open instance of Firefox or any other program?

Re: Include an <alt>-tab in script

Posted: 02 Jul 2014 08:15
by highend
sendkeys "!{tab}"; doesn't switch to the last active program unfortunately.

So it seems no, XY can't do this (internally).

You need an external helper application, e.g. an AutoHotkey script.

Code: Select all

#NoTrayIcon

fireFox := "ahk_class MozillaWindowClass"

WinActivate, %fireFox%

ExitApp