@Danger111
If the replies to this topic has frustrated you, try testing this example for an extended length of time when your a little tired.
It should cure you.
; The chance of the AdlibRegister's function returning
; to the loop after any of the If statements to execute
; the following command line is possible, but unlikely.
Global $Flag = 1
HotKeySet("E", "_Exit")
AdlibRegister("_Break", 6000)
_start()
Func _Start()
While 1
$Flag = 1
MouseMove(0, 0, 10)
If $Flag = 0 Then ContinueLoop
Sleep(1000)
If $Flag = 0 Then ContinueLoop
MouseMove(587, 377, 10)
If $Flag = 0 Then ContinueLoop
MsgBox(0, "Box1", "Box1", 1)
If $Flag = 0 Then ContinueLoop
MsgBox(0, "Box2", "Box2", 1)
If $Flag = 0 Then ContinueLoop
MsgBox(0, "Box3", "Box3", 1)
WEnd
EndFunc ;==>_Start
Func _Break()
MouseMove(20, 350)
MsgBox(0, "Box4", "Box4")
$Flag = 0
EndFunc ;==>_Break
Func _Exit()
Exit 0
EndFunc ;==>_Exit