I have a hotkey for all of the F keys and i still have them do the normal function. for this i had to suspend the hotkey, send the F key, and unsuspend the hotkey. well to make the code more effecent i put a function in that does all that. the problem is that the when the hotkey gets to the suspend function there is nothing in the key varable.
Code:
F1::
.
.
else
{
suspend(F1)
}
suspend(key)
{
Suspend, On
Send, {%key%}
Suspend, Off
}
i can do a global varabile in the suspend function and then it will work.
Code:
key = F1
suspend(key)
.
.
.
global key
Suspend, On
Send, {%key%}
Suspend, Off
is this a flaw or is my code wrong?