Sign in to follow this  
Followers 0
adamgal

HotKeySet unknown function?

4 posts in this topic

#1 ·  Posted (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 by adamgal

Share this post


Link to post
Share on other sites



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,

Share this post


Link to post
Share on other sites

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

<{POST_SNAPBACK}>

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0