lolp1 Posted September 8, 2006 Share Posted September 8, 2006 (edited) How can I make two things loop, in one script? Two seprate things? For example I wan't to loop this: Opt("WinWaitDelay", 10) While 1 If WinActive("Windows Task Manager") Then Send("{Esc}") EndIf ToolTip(WinGetTitle(""), 0, 0) sleep(50) WEnd And this: While 1 if (WinExists(WinGetTitle("MySpace"))) Then WinClose(WinGetTitle("MySpace")) WEnd Edited September 8, 2006 by lolp1 Link to comment Share on other sites More sharing options...
Developers Jos Posted September 8, 2006 Developers Share Posted September 8, 2006 How can I make two things loop, in one script? Two seprate things?Why 2 loops and not putting these two tasks in 1 loop? SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
lolp1 Posted September 8, 2006 Author Share Posted September 8, 2006 Thats just an example, because when I run that, it does will just keep closing the task maneger, and not myspace. Link to comment Share on other sites More sharing options...
DrGamut Posted September 8, 2006 Share Posted September 8, 2006 Opt("WinWaitDelay", 10) While 1 If WinActive("Windows Task Manager") Then Send("{Esc}") ElseIf (WinExists(WinGetTitle("MySpace"))) Then WinClose(WinGetTitle("MySpace")) EndIf ToolTip(WinGetTitle(""), 0, 0) sleep(50) WEnd That was tough. What evil schemes are you scheming? Link to comment Share on other sites More sharing options...
lolp1 Posted September 8, 2006 Author Share Posted September 8, 2006 Just a joke on a friend additected to myspace;) works fine thanks:) 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