Code: Select all
NotInChat := true
#IfWinActive, World of Warcraft
{
~Enter::
NotInChat := !NotInChat
Return
if (NotInChat){
~1::
Loop, 60
{
Send, {1}
}
Return
~2::
Loop, 60
{
Send, {2}
}
Return
~3::
Loop, 60
{
Send, {3}
}
Return
~4::
Loop, 60
{
Send, {4}
}
Return
~5::
Loop, 60
{
Send, {5}
}
Return
}
else{
Return
}
}
1. World of Warcraft Window is active (This condition is evaluated correctly)
2. I am not in chat (e.g. I never pressed Enter to begin with or I hit it twice)
Now, it appears that the expression
Code: Select all
if(NotInChat)
It feels like something trivial, yet I cannot find the bug..
Can someone help me, please?
Thanks in advance =)
P.S. Also is there a more optimised approach to do what I do with the hotkeys? (repeatedly sending keys a few times)
Like for instance:
Insert a delay between the "Send" (if so: how long?)
or use different commands?