Code:
WinWait, JOB ahk_class HostExplorer
IfWinNotActive, JOB ahk_class HostExplorer
WinActivate, JOB ahk_class HostExplorer
WinWaitActive, JOB ahk_class HostExplorer
;SLEEP 100
SEND {NUMPADSUB}
;SLEEP 300
WinWait, CTBar32 - 4.0.0
IfWinNotActive, CTBar32 - 4.0.0
WinActivate, CTBar32 - 4.0.0
WinWaitActive, CTBar32 - 4.0.0
;SLEEP 1500 ; Now that CTBar32 is active, we shouldn't need to sleep..
CLICK 25,34
; Is the ClassNN shown in window spy when hovering over the spot to be clicked in the CTBar32 window? If so, what is the ClassNN (control)?
; Are you clicking an edit box, to send "AHA"?
; Are you clicking a button, waiting for another window to open & then send "AHA"?
; If another window opens, what is the wintitle?
SLEEP 1500 ;This sleep hasn't been removed yet. More info is needed as to WHY we wait.
SEND AHA
;;; ControlSend may (or may not) send text more reliably.
;ControlSend, Control, AHA, CTBar32 - 4.0.0 ; Send text "AHA" to ___ on CTBar32.
SLEEP 500
SEND {TAB}
SLEEP 100
FormatTime, CurrentDateTime,, MMddyy
SendInput %CurrentDateTime%
SLEEP 100
SEND {ENTER}