leuce 2 Posted May 16, 2010 G'day everyone I want users of my script to be able to change windows using Alt+Tab, but I also want the script to perform a function when the user presses Alt+Tab. How can I do it? HotKeySet ("!{TAB}", "AltTab") While 1 Sleep ("100") WEnd Func AltTab() Send ("!{TAB}") DO SOMETHING ELSE ALSO EndFunc The above does not work. It sends Alt+Tab but it does not activate the window changer that is normally associated with Alt+Tab. Alternatively, if that window changer has a name (in Windows XP or elsewhere) and I can "run" it, can anyone tell me how to do it? Thanks Samuel Share this post Link to post Share on other sites
JohnOne 1,603 Posted May 16, 2010 Worth having a look at the hotkey udf by Yashied AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Share this post Link to post Share on other sites
somdcomputerguy 103 Posted May 16, 2010 (edited) Try the function coded like this. It disables the hotkey, sends the keystroke again, then sets the hotkey back to the way it was. Func AltTab() HotKeySet("!{TAB}") Send("!{TAB}") ;DO SOMETHING ELSE ALSO HotKeySet ("!{TAB}", "AltTab") EndFunc Edited May 16, 2010 by somdcomputerguy - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change. Share this post Link to post Share on other sites