Sign in to follow this  
Followers 0
qwertyqwerty

exitloop not working

3 posts in this topic

#1 ·  Posted (edited)

I want to wait for winamp to open - I am trying to use while intead of sleep, but the exitloop does not work.

Opt("TrayIconDebug", 1)

$pid_winamp = Run ("C:\Program Files\Winamp\winamp.exe")

WinWaitActive ("Player Window", "")

while 1

if WinActive("Player window", "") then ExitLoop

WEnd

MsgBox (0, "active", "active")

Edited by qwertyqwerty

Share this post


Link to post
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0