I've read the docs and if I put "!o::ExitApp" it will exit when pressed, but ExitApp doesn't work at the end of my script. If I take it out than ExitApp works fine.
I just don't know what to do, I see the examples but don't get it fully. Could pressing OK on the message box exit the script? or even after its pressed it just ends with no connection to the message box.
Please help me. I've Included the code below that works fine when Alt+p and o are pressed but just wont Exit at all after the message box. I just want it to be simple.
Code: Select all
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
#Warn ; Enable warnings to assist with detecting common errors.
IfWinExist, BlueStacks App Player ; Looking for Bluestacks
WinActivate ; Bringing Bluestacks to the front of screen
loop, 10
{
MouseMove, 720, 694 ; Mouse Placement on Retry
click ; Send, {VK01 down}{VK01 up} Same as Click
Sleep, 4500 ; 4500 is 4.5 seconds 60000 is 1 minute - milliseconds - 800 loops for one hour at 4.5 seconds
}
MsgBox, 0,, Completed Script. ; Simple Notification of Completion.
!p::Pause ; Alt+p to pause script, press again to resume.
!o::ExitApp ; Ends Script on command pressing Alt+o
ExitApp ; Not ending the Script
It's more spaced out than normal but that's just so I can mess around with the code.