HotKeySet("x", "ende") $i = 0 Do MouseClick("left", 600, 200, 1) $b = Random (3,6) ProcessWaitClose ("notepad.exe", $b) Until $i = 1 Func ende() Exit EndFunc