Code: Select all
query := Comp = 1 or Comp = 2
if (query)
{
MsgBox allowed
while (looping = on)
{
Loop
{
BlockInput, On
Send T
Sleep 100
Send /ad %Msg%
Send {return}
BlockInput, Off
Sleep 10000
}
}
}
Code: Select all
query := Comp = 1 or Comp = 2
if (query)
{
MsgBox allowed
while (looping = on)
{
Loop
{
BlockInput, On
Send T
Sleep 100
Send /ad %Msg%
Send {return}
BlockInput, Off
Sleep 10000
}
}
}
Code: Select all
query := Comp = 1 or Comp = 2
if (query)
{
MsgBox allowed
while (looping = "on")
{
BlockInput, On
Send T
Sleep 100
Send /ad %Msg%
Send {return}
BlockInput, Off
Sleep 10000
}
}
no, using ahk_l 1.1.29.01:HudsonRyder wrote:... Whats happening with this code is that if Comp = 3 then I still get the msg box allowed and the loop starts.
Code: Select all
comp := 3
query := Comp = 1 or Comp = 2
msgbox % query
if (query)
{
MsgBox allowed
}
Users browsing this forum: FanaticGuru and 324 guests