I have this code that works. I used roboscript to create it.
;RoboScripter
; Made with
; RoboScripter ver: 45
; CtlMgr ver: 44039
AddExtender("wwctl44i.dll")
;Title: Error
;ID: 0
;Class: #32770
;Level: 1
; Default cWndByWndSpec seems OK here
ControlHandle=cWndByWndSpec("#32770","usbinst",3,2,20,65535)
cSetFocus(ControlHandle) ; Activates Window
How do I WAIT until the Window "Error" actually shows up?
and RoboScript used to work even if no one was logged in. Entirely in member, I assume that is still the case?
I recommend using WinWaitExist.
ret = WinWaitExist('Error',10)
If ret == 0
Pause('Notice','Unable able to locate the window in the specified timeout.')
exit
Endif
Pause('Notice','Located window and ready to continue')