JBeef Posted September 27, 2007 Posted September 27, 2007 HotKeySet("{ENTER}","schmenter") While 1 Sleep(10) WEnd Func schmenter() If Not WinActive("some app") Then HotKeySet("{ENTER}") Send("{ENTER}") HotKeySet("{ENTER}","schmenter") EndIf EndFunc - crazy - ~Jap
Blue_Drache Posted September 27, 2007 Posted September 27, 2007 I use something similar with my GUIs. If WinActive($hwndGUI_Main) Then HotKeySet("{ESC}", "MyExit") Else HotKeySet("{ESC}") EndIf If Window X is active, then "ESC" will fire "MyExit" for the script. Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache
SadBunny Posted September 27, 2007 Posted September 27, 2007 (edited) HotKeySet("{ENTER}","schmenter") ... Func schmenter() This is the best lingual-programmatical joke I've heard in a long time Thanks for the laugh! /edit: tpyo typo Edited September 27, 2007 by SadBunny Roses are FF0000, violets are 0000FF... All my base are belong to you.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now