Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Need Help to wait for windows to exists so that I can hide it

$
0
0

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

 

 


Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>