Champak Posted May 4, 2008 Share Posted May 4, 2008 I'm using the following as a "pass through" for hotkeys I have set for my app if my app is not active. However, it tends to be a little sluggish sometimes and was wondering if there was a better way of doing it. Func View1() If $WinActivityResult = 1 Then ;Main Function Else HotKeySet($Functions_Array[1][0]) $ViewKey = WinGetTitle("") ControlSend($ViewKey, "", "", $Functions_Array[1][0]) HotKeySet($Functions_Array[1][0], "View1") EndIf EndFunc Link to comment Share on other sites More sharing options...
Emiel Wieldraaijer Posted May 5, 2008 Share Posted May 5, 2008 I think this could be the solution You will need 3.2.11.3 (beta and higher) to use that function http://www.autoitscript.com/forum/index.php?showtopic=66650another way is for example (70 = F1) to use _IsPressed in your loopIf _IsPressed("70") And WinActive("Program Title") Then Function()But it could be detected as a keylogger Best regards,Emiel Wieldraaijer Link to comment Share on other sites More sharing options...
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