Revak Posted May 8, 2010 Share Posted May 8, 2010 (edited) Hello everyone, I need a little help with a Do Until coding I can't seem to make it right, see I want my auto it to replace objects until a "close" button pops up and I can't seem to make it right expandcollapse popupDo MouseClick ( "left" ) MouseMove ( 580,435 ) MouseClick ( "left" ) MouseMove ( 800, 420 ) MouseClick ( "left" ) MouseMove ( 640,435 ) MouseClick ( "left" ) MouseMove ( 800, 420 ) MouseClick ( "left" ) MouseMove ( 710,435 ) MouseClick ( "left" ) MouseMove ( 800, 420 ) MouseClick ( "left" ) MouseMove ( 580,500 ) MouseClick ( "left" ) MouseMove ( 800, 420 ) MouseClick ( "left" ) MouseMove ( 645,500 ) MouseClick ( "left" ) MouseMove ( 800, 420 ) MouseClick ( "left" ) MouseMove ( 710,500 ) MouseClick ( "left" ) MouseMove ( 800, 420 ) MouseClick ( "left" ) MouseMove ( 580,560 ) MouseClick ( "left" ) MouseMove ( 800, 420 ) MouseClick ( "left" ) MouseMove ( 640,560 ) MouseClick ( "left" ) MouseMove ( 800, 420 ) MouseClick ( "left" ) MouseMove ( 710,560 ) Sleep ( 100 ) Until WinActive("[CLASS:TspSkinButton; INSTANCE:2]", "") So I'm thinking Winactive is not the good term right, but I looked and looked again and I don't know what I could use Edited May 8, 2010 by Revak Link to comment Share on other sites More sharing options...
jaberwacky Posted May 8, 2010 Share Posted May 8, 2010 What exactly is not right about it? What is it doing or not doing that you do or do not want it to do? Helpful Posts and Websites: AutoIt3 Variables and Function Parameters MHz | AutoIt Wiki | Using the GUIToolTip UDF BrewManNH | Can't find what you're looking for on the Forum? Link to comment Share on other sites More sharing options...
Revak Posted May 8, 2010 Author Share Posted May 8, 2010 (edited) It never detects the window (the close button that popped up) and goes on and on moving my mouse Edited May 8, 2010 by Revak Link to comment Share on other sites More sharing options...
hawky358 Posted May 8, 2010 Share Posted May 8, 2010 - Is this all within the same window? - Does the Close button popup in a new window? Or is it like an installer with the last button being close? Try to give a little more info. You can try something like until ControlGetText("<You window title here>","","[CLASS:TspSkinButton; INSTANCE:2]") = "close" Link to comment Share on other sites More sharing options...
hawky358 Posted May 8, 2010 Share Posted May 8, 2010 It never detects the window (the close button that popped up) and goes on and on moving my mouseIf the close button is in it's own window, you should use the Window's class or the title not the button.You can also try WinExists() (Also using the Window's class/title) Link to comment Share on other sites More sharing options...
Revak Posted May 8, 2010 Author Share Posted May 8, 2010 - Is this all within the same window? - Does the Close button popup in a new window? Or is it like an installer with the last button being close? Try to give a little more info. You can try something like until ControlGetText("<You window title here>","","[CLASS:TspSkinButton; INSTANCE:2]") = "close" Yes it's all within the same window, thanks for your help i'll try this and let you know Link to comment Share on other sites More sharing options...
Revak Posted May 8, 2010 Author Share Posted May 8, 2010 (edited) Thank you for your help, that worked Edited May 8, 2010 by Revak 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