R4z0r Posted April 29, 2013 Share Posted April 29, 2013 Hi there, please help me with this problem. My script calls the loop function and the problem is that whe n it reaches the "Are we logged in" If Then Else it just tops there.... the wile loop doesn't continue.... Func Loop() Global $DetectLogout = 0 ; Make sure the flag is cleared $fInterrupt = 0 While 1 ; Are we logged out? If WinExists("Windows Internet Explorer", "Login") And $DetectLogout > 1 Then MsgBox(0,"WTF","WTF",30) Else ContinueLoop EndIf more code.. WEND Link to comment Share on other sites More sharing options...
kaotkbliss Posted April 29, 2013 Share Posted April 29, 2013 Well, in the code you posted, $detectlogout will never be > 1 so it will stay in your loop forever. 010101000110100001101001011100110010000001101001011100110010000 001101101011110010010000001110011011010010110011100100001 My Android cat and mouse gamehttps://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek We're gonna need another Timmy! Link to comment Share on other sites More sharing options...
R4z0r Posted April 29, 2013 Author Share Posted April 29, 2013 forgot to post that increase it before WEND +1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now