Revak Posted May 8, 2010 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
jaberwacky Posted May 8, 2010 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: AutoIt Wiki | Can't find what you're looking for on the Forum? My scripts: Guiscape | Baroque AU3 Code Formatter | MouseHoverCalltips | SciTe Customization GUI | ActiveWindowTrack Toy | Monitor Configuration UDF
Revak Posted May 8, 2010 Author 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
hawky358 Posted May 8, 2010 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"
hawky358 Posted May 8, 2010 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)
Revak Posted May 8, 2010 Author 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
Revak Posted May 8, 2010 Author Posted May 8, 2010 (edited) Thank you for your help, that worked Edited May 8, 2010 by Revak
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