KoX Posted February 2, 2009 Share Posted February 2, 2009 I am trying to swap 2 keys on keyboard, e.g. when i press 's' the output is 'a', and when i press 'a' the output is 's' I tried the following code but it doesn't seem to work HotKeySet( "a", "writeS" ) HotKeySet( "s", "writeA" ) While 1 Sleep(10) WEnd Func writeS() Send("s") EndFunc Func writeA() Send("a") EndFunc Any help would be highly appreciated. Link to comment Share on other sites More sharing options...
Malkey Posted February 2, 2009 Share Posted February 2, 2009 I am trying to swap 2 keys on keyboard, e.g. when i press 's' the output is 'a', and when i press 'a' the output is 's' I tried the following code but it doesn't seem to work HotKeySet( "a", "writeS" ) HotKeySet( "s", "writeA" ) While 1 Sleep(10) WEnd Func writeS() Send("s") EndFunc Func writeA() Send("a") EndFuncoÝ÷ Ø òéiÂ¥u·¡eɪiç"j×þ«¨µåÊ&zÚ-çè®é¬jwm+¦®ËhÂäjëh×6HotKeySet("a", "writeS") HotKeySet("s", "writeA") HotKeySet("{ESC}", "Terminate") While 1 Sleep(10) WEnd Func writeS() HotKeySet("s") Send("s") HotKeySet("s", "writeA") EndFunc ;==>writeS Func writeA() HotKeySet("a") Send("a") HotKeySet("a", "writeS") EndFunc ;==>writeA Func Terminate() Exit 0 EndFunc ;==>Terminate Link to comment Share on other sites More sharing options...
KoX Posted February 2, 2009 Author Share Posted February 2, 2009 Wow thanks didn't think of that 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