adamgal Posted November 30, 2004 Share Posted November 30, 2004 (edited) I had a script that was working fine, and I changed some stuff around but nothing in this piece of code: If not ($function = "") Then $reservedKeys = $reservedKeys & @CR & $hotKey &$hotKeySeparator HotKeySet($hotKey,$function) Else HotKeySet($hotKey) EndIf but then when I ran it I got an error: auto.au3 (809) : ==> Unknown function name.: HotKeySet($hotKey,$function) can anyone tell me what the problem is? EDIT: nm Edited November 30, 2004 by adamgal Link to comment Share on other sites More sharing options...
erebus Posted November 30, 2004 Share Posted November 30, 2004 Try to check these... - Are you sure that $hotKey/$function is/are declared before calling the HotKeySet function? - Try to retype the "HotKeySet" word; maybe the "o" is not of the english layout (it had happened to me to type it wrong with the greek keyboard layout). - Maybe have you accidentally installed an older version of AutoIT that doesn't support this function? Hope these help, Link to comment Share on other sites More sharing options...
Guest palliser Posted November 30, 2004 Share Posted November 30, 2004 I had a script that was working fine, and I changed some stuff around but nothing in this piece of code:If not ($function = "") Then $reservedKeys = $reservedKeys & @CR & $hotKey &$hotKeySeparator HotKeySet($hotKey,$function) Else HotKeySet($hotKey) EndIfbut then when I ran it I got an error:auto.au3 (809) : ==> Unknown function name.: HotKeySet($hotKey,$function)can anyone tell me what the problem is?EDIT: nm<{POST_SNAPBACK}> Link to comment Share on other sites More sharing options...
Guest palliser Posted November 30, 2004 Share Posted November 30, 2004 Yeah the spam blocker is horrible but how many Viagra ads can I read a day? HotKey function expects a function for the second parameter. Function names can't start with $. I believe all the function names are enclosed in quotes. Hope this may help but I'm having trouble passing a function with parameters in the same HOTKEY function! JBS 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