I would like to know if you can help me with the following problem:
I have the following code so that, eventually, after pressing + f1, I temporarily change the function of Numpad0, but not to forget that this function is activated, I would like a Traytip to remind me of this every 7 seconds.
The problem is that I cannot do it from a Loop, because that is what the Error Message tells me.
Do you know any alternative I could use?
Code: Select all
+F1::
MyFunc0pad()
MyFunc0pad() {
static boolean := false
if (boolean:=!boolean) {
Hotkey, Numpad0, ZeroSpecialFunc
Goto TrayZero: ; << == PROBLEM
Return
}
else {
Traytip, ZERO, DEFAULT
Hotkey, Numpad0, Numpad0Default
Reload
}
}
Return
ZeroSpecialFunc:
{
Send {Rbutton}
sleep 322
Send {Down 2} {Enter}
sleep 722
Send {Tab 3}{Enter}
sleep 822
}
Return
Numpad0Default:
Send {Numpad0}
Return
TrayZero:
Loop
{
Traytip, ZERO special func, "ON"
Sleep 1500
Traytip
sleep 7000
}
Return