jenni Posted April 13, 2006 Share Posted April 13, 2006 HiI'm new here and learning how Ait worksI was wondering if there is a simple solution for this.Check if the title(name) of the active window is named Station and Display , if so click nextelse send error Active window name do not match .On the next window called Station and Display click NextOn the next window called Station and Display clcik nextOn the next window called Station and Display click installand on the next window called Station and Display click Finish(3 times a next button, 1 install and 1 Finish)Thanks for your inputGr Jennifer Link to comment Share on other sites More sharing options...
Valuater Posted April 13, 2006 Share Posted April 13, 2006 (edited) Welcome to the forumsyou need the window information from "Au3Info.exe" in the autoit folderalso... to learn how to use it...http://www.autoitscript.com/forum/index.php?showtopic=21048#8) Edited April 13, 2006 by Valuater Link to comment Share on other sites More sharing options...
Bert Posted April 13, 2006 Share Posted April 13, 2006 This is a pretty simple script. $name = "Station and Display" $qst = WinActive($name) if $qst = 0 then MsgBox(0, "error", "No window match") Exit WinActivate($name) Send("!n) sleep(30) WinActivate($name) Send("!n) sleep(30) WinActivate($name) Send("!i") sleep(7000);guessing how long install will take place. This is 7 seconds WinActivate($name) Send("!f") I'm having to guess, for I do not know if the send keys will work. You will need to look at the send command. Also, if the send (7000) isn't long enough, you will need to increase the number. I have no idea if this will work, but give it a try. The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
JSThePatriot Posted April 13, 2006 Share Posted April 13, 2006 Jenni,This is completely doable with AutoIt. It should also be a rather easy script to create.There are some things you will need to do to script this.Use the AutoIt Window Info tool to get the ControlID's of the controls or use the mouse click coordinates to use a more manual method.Search the Helpfile for the following functions:MouseClickControlClickIf...ElseIf...EndIfWinActiveMsgBoxIf you dont have SciTE installed to help with your script writing I would highly recommend it. It is available and free at: SciTE4AutoIt3.You may also be interested in a few links to some user written tutorials.AutoIt 1-2-3Learning to Script in AutoItI hope the above helps you get started. Let me know if you have any questions.JS AutoIt Links File-String Hash Plugin Updated! 04-02-2008 Plugins have been discontinued. I just found out. ComputerGetInfo UDF's Updated! 11-23-2006 External Links Vortex Revolutions Engineer / Inventor (Web, Desktop, and Mobile Applications, Hardware Gizmos, Consulting, and more) 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