padmag Posted November 14, 2013 Share Posted November 14, 2013 ;------------------------------------Installation Begins-------------------------------------; WinWaitActive("XYZ Server Software", "Start Installation") Sleep(250) ControlClick("XYZ Server Software", "Start Installation", "[CLASS:Button; TEXT:&Install >]") ;--------------------------------------------------------------------------------------------; If NOT(WinWait("Error", "ignore",4)=0) Then ; A window pops up that requires user input... leaving that window for now sleep(1000) WinActivate("Error", "ignore") WinWaitActive("Error", "ignore") sleep(500) ControlClick("Error", "ignore", "[CLASS:Button; TEXT:&Ignore >]") EndIf This is part of the script trying to use for an installation. I added the second part to handle the error popup that comes up for subsequent installation(Not with first time installation). The error pop heading is Error and it has a message which contains word ignore , so I added ignore. And it gives three options to choose abort , try again and ignore. So, I want to select ignore if this comes up. I am unable to get this working, Any suggestions? Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted November 14, 2013 Moderators Share Posted November 14, 2013 Hi padmag, what is the software you're trying to install? If it supports (as most apps do) some form of command line options, you may be able to save yourself the grief of trying to manipulate the GUI. "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
padmag Posted November 14, 2013 Author Share Posted November 14, 2013 (edited) Its an exe , It used to work earlier but it was not handling the error pop that comes up in between now. I am trying to understand how to handle this ,& I am new to Autoit :-( Edited November 14, 2013 by padmag Link to comment Share on other sites More sharing options...
mrider Posted November 14, 2013 Share Posted November 14, 2013 (edited) Back in the day (get off my lawn ), there didn't used to be a "ControlClick". It used to be that one had to engineer a series of tabs and etcetera to navigate normal window focus to the place to click and then send keystrokes. Absolutely, unquestionably, "ControlClick" is more reliable. But it may very well be that you can solve this problem, this time, by looking at which control starts with focus, how many tabs you need to send until you are on the correct button, and then send a space character to select the button. EDIT: Or alternatively, if the ignore button has an accelerator, you might just send that. For example, if it looks like "Ignore", try Send("^i") and Send("!i"). Again, this is NOT as reliable as "ControlClick". But it may be the way you need to go in this instance. Edited November 14, 2013 by mrider How's my riding? Dial 1-800-Wait-There Trying to use a computer with McAfee installed is like trying to read a book at a rock concert. Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted November 14, 2013 Moderators Share Posted November 14, 2013 pagmag, Its an exeReally? How unusual! Seriously, what is it that you are installing? The more detail you give us, the better the help you are likely get. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area 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