itauto3 Posted January 11, 2019 Author Share Posted January 11, 2019 Yes, thank you!!! Link to comment Share on other sites More sharing options...
itauto3 Posted January 11, 2019 Author Share Posted January 11, 2019 Why isn't count set to 0, when the app closes? Link to comment Share on other sites More sharing options...
rootx Posted January 11, 2019 Share Posted January 11, 2019 23 minutes ago, itauto3 said: Why isn't count set to 0, when the app closes? Just add reset to 0 manually inside your if condition Link to comment Share on other sites More sharing options...
itauto3 Posted January 11, 2019 Author Share Posted January 11, 2019 (edited) I had to do it like: If $count > 120 Then WinClose($aWindows[$i][0]) If $count > 120 Then $count = 0 Edited January 11, 2019 by itauto3 Link to comment Share on other sites More sharing options...
FrancescoDiMuro Posted January 11, 2019 Share Posted January 11, 2019 (edited) @itauto3 Or you could enclose two instructions in the same statement doing something like this: If $count > 120 Then WinClose($aWindows[$i][0]) $count = 0 EndIf Edited January 11, 2019 by FrancescoDiMuro Click here to see my signature: Spoiler ALWAYS GOOD TO READ: Forum Rules Forum Etiquette Link to comment Share on other sites More sharing options...
itauto3 Posted January 16, 2019 Author Share Posted January 16, 2019 If n windows are opened, script counts like n, 2n, 3n. I want to count normally, 1,2, 3,... What can I do? 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