Suppish Posted June 6, 2014 Posted June 6, 2014 (edited) Newbie here, so please forgive me if this is the wrong place to post this. I am attempting to automate installation of a list of programs, starting with 7-Zip. Currently working in WinXP. When I start up 7-Zip, a security warning box pops out asking me to click Run or Cancel. I cannot for the life of me figure out how to find the &Run button and press/click it. Here is my current code progress, the commented out code reflects previous attempts at getting things to work: ShellExecute(@ScriptDir & "7-Zip 9.2.exe") ;ShellExecuteWait(@ScriptDir & "7-Zip 9.2.exe") ;_WinWaitActivate("[CLASS:#32770]","") _WinWaitActivate("Open File - Security Warning","") ControlClick("Open File - Security Warning","","[CLASSNN:Button1;]") ;ControlClick("Open File - Security Warning","","[CLASS:Button; TEXT:&Run;]") ;ControlClick("Open File - Security Warning","&Run","") Thanks for taking the time to read this. Edited June 6, 2014 by Suppish
TheTechnoMan Posted June 6, 2014 Posted June 6, 2014 Hey, this is not a answer to your question, but you may want to check out ninite.com They offer an amazing (free) tool to automatically install many applications. I use it since a very long time.
Moderators Melba23 Posted June 6, 2014 Moderators Posted June 6, 2014 Suppish,Welcome to the AutoIt forum. Unfortunately you appear to have missed the Forum rules on your way in. Please read them now (there is also a link at bottom right of each page) - particularly the bit about not discussing bypassing of security measures - and then you will understand why you will get no help and this thread will now be locked. See you soon with a legitimate question I hope. 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
Recommended Posts