How can i run two loops at the same time
Posted: 11 Mar 2017, 20:15
So i'm trying to run a loop while checking for a message from another script. This is not my actual code but has the same concept.
Code: Select all
Test = 1
OnMessage(0x5555, "MsgMonitor")
; this is the loop
loop
{
if Test = 1
{
msgbox, 4144, test, test
sleep, 60000
}
}
; this is what i want while that loop is happening
loop
{
MsgMonitor(wParam)
{
Test := %wParam%
}
}