So this is how my bot stops
Func Terminate()
$MB_MsgBoxButtons = 5 ;What buttons that show in messagebox 5 = Retry and Cancel
$MB_Cancel = 2 ;What button is pressed to exit the script 2 = Cancel, If Cancel buton is pushed the script stops.
If MsgBox($MB_MsgBoxButtons, $title_b, "Retry or Cancel the bot?") == $MB_Cancel Then
Exit
EndIf
EndFunc ;==>Terminate
It presses the "ESC" button to stop .
But the problem is my Auto Relogin bot needs to press "ESC" to get to the menu and press "switch char." So when that happens my First Bot stops .
So can someone help me change the "stop" button in the script to soemthing else like f12