AutoIt
_WinWaitActivate("Message","") Send("{ENTER}") Sleep(5000) _WinWaitActivate("Control Center - AAA1Turo1Intraday","") Func _Au3RecordSetup() Opt('WinWaitDelay',100) Opt('WinDetectHiddenText',1) Opt('MouseCoordMode',0) EndFunc Func _WinWaitActivate($title,$text,$timeout=0) WinWait($title,$text,$timeout) If WinActive($title,$text)==0 Then WinActivate($title,$text) Else {more commands} End if WinWaitActive($title,$text,$timeout) EndFunc _AU3RecordSetup() _WinWaitActivate("Message","") _WinWaitActivate("Control Center - AAA1Turo1Intraday","")
I am using the autorecorder to start as the basis of my scripts, thats why the _ appears.
What does the handle return if its not a "message"or "Control Center - AAA1Turo1Intraday", so I can run an if statement on another set of keystrokes if this does not appear
This realtes _WinWaitActivate code, I want to write and if statement, if the handle is 0 for correct then I use == as the qualifer?
Thanks again
Tinkerz