Jump to content

Recommended Posts

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
Posted

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,

Guest palliser
Posted

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}>

Guest palliser
Posted

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

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...