I think it would be-
myhotkey = createhotkey etc...
because it looks like it wants to return a value.
Edit: Oh, actually, probably not. Here's what the
help file says:
createHotKey
createHotKey int HotKeyId, bool requireAlt, bool requireShift, bool requireCtrl, int character
Description:
Creates a hot-key for the application. When the specified key-combination is pressed, a HOTKEY event is sent to the main application window. This is useful for menu shortcuts and other application shortcuts.
Return Value:
Parameters:
hotKeyId An index number to use for the hotkey. eventData() contains this Id when a HOTKEY event is received by the program.
requireAlt 1 if the ALT key must be pressed in order to trigger the HOTKEY event.
requireShift 1 if the SHIFT key must be pressed to trigger the HOTKEY event.
requireCtrl 1 if the Control key must be pressed in order to activate the HOTKEY event.
character ASCII character code for the key which must be pressed in order to activate the HOTKEY event. This can be generated using the asc function. For example:
createHotKey 1,0,1,0,asc("S")
Will trigger a HOTKEY event when Ctrl+S is pressed.