Icy 0 Posted March 9, 2011 Hi, I would like to use function "HotKeySet" for some letter: for example "X". Can you help me how? Share this post Link to post Share on other sites
Logty 0 Posted March 9, 2011 (edited) Here is how you do it, it is fairly simple: HotKeySet( "x", "k" ) While 1 Sleep( 10 ) WEnd Func k() Exit EndFunc What it does is it goes through the script until x is pressed and then it goes to function k(). If you want to use special keys like escape then you have to type something like: HotKeySet( "{esc}", "k" ) While 1 Sleep( 10 ) WEnd Func k() Exit EndFunc Edited March 9, 2011 by Logty Share this post Link to post Share on other sites
Icy 0 Posted March 9, 2011 ty. it works... idk why it didnt work to me before xD Share this post Link to post Share on other sites
Icy 0 Posted March 9, 2011 cuz I wrote big X instead of small x... Share this post Link to post Share on other sites