Hi, How can I exit/break a loop using an Hotkey? I tried this but the only problem is that the expression is tested after the loop is executed and I want something that will break the loop at anytime not only after the expression. Actually I dont want to Exit my script but ONLY exit the loop. HotKeySet("{ESC}", "_Stop") Do ;blabla ;blabla ; +- 1000 lines of script between the Do ... Until Until $Stop = 1 Func _Stop() $Stop = 1 EndFunc