Can anyone help...I thought I had this working but some users machines are causing script not to work properly. I am running a program at startup and once the window appears I need to hide it. On most machines what I have works, but on some because the network delays the window appearing, the script that I have stops running before the window appears. Here is what I have:
WinWait("ProgWin")
If(winExists("ProgWin")) Then
WinSetState("ProgWin", "", @SW_HIDE)
Endfi
What I need for it to do is if the window doesn't exist, keep running and wait for it to exist and as soon as it does, hide it. And I need it to work if the window is active or not, witch is why I chose WinWait over WinWaitActive.
Thanks