chachew Posted October 17, 2011 Posted October 17, 2011 Looked around on the forum but i cant seem to find anything that solves my issue. I have this on windows 7 X86 and X64. I am unable to click the button on the Windows Security popup box to continue with the installation. I am trying to click the "Install this driver software anywhere" button which is the window info below. I have tried ControlClick("Windows Security","&Install this driver software anyway","[CLASSNN:Button2]") ; ControlSend("Windows Security","","[CLASS:Button; INSTANCE:1]","{ENTER}") with no success >>>> Window <<<< Title: Windows Security Class: #32770 Position: 694, 356 Size: 516, 308 Style: 0x96C80284 ExStyle: 0x00010101 Handle: 0x00000000000A0342 >>>> Control <<<< Class: Button Instance: 2 ClassnameNN: Button2 Name: Advanced (Class): [CLASS:Button; INSTANCE:2] ID: Text: &Install this driver software anyway Position: 47, 139 Size: 448, 87 ControlClick Coords: 79, 29 Style: 0x5000200E ExStyle: 0x00000000 Handle: 0x00000000000B03D8 >>>> Mouse <<<< Position: 828, 554 Cursor ID: 0 Color: 0xFFFFFF >>>> StatusBar <<<< >>>> ToolsBar <<<< >>>> Visible Text <<<< Do&n't install this driver software &Install this driver software anyway >>>> Hidden Text <<<< The driver software you're attempting to install does not have a valid digital signature that verifies who published it, and could potentially be malicious software. You should only install driver software from publishers you trust. <A HREF="mshelp://windows/?id=5622d7d6-531b-4e76-be48-0059d38339c4">How can I decide which device software is safe to install?</A>
Moderators Melba23 Posted October 17, 2011 Moderators Posted October 17, 2011 (edited) chachew,Looked around on the forum but i cant seem to find anything that solves my issuePerhaps because the UAC dialogs are automation-resistant? A moment's thought should make you realise why this is so..... M23Edit:But you could try #requireadmin at the top of your script - you still need to click manually in an initial dialog, but it elevates the script to prevent further UAC prompts. Edited October 17, 2011 by Melba23 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
AdmiralAlkex Posted October 17, 2011 Posted October 17, 2011 Based on the text I would say it's that "non-signed driver warning window on x86 Windows", not UAC. @chachew Make up your mind. .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface
chachew Posted October 17, 2011 Author Posted October 17, 2011 Thanks Melba, ill try to figure out another way around this. I am using the #requireAdmin Alkex, my mind was mad eup beforehand...just asking a question....this is an X64 machine not 32bit and its a non issue when UAC is disabled. Thanks
AdmiralAlkex Posted October 17, 2011 Posted October 17, 2011 (edited) Details, details. That doesn't change the fact that you need to make up your mind. Previous statement stands. You can't talk with windows above your privilege, you need to run as admin to automate that window. See #RequireAdmin in helpfile. Edited October 17, 2011 by AdmiralAlkex .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface
chachew Posted October 17, 2011 Author Posted October 17, 2011 Details, details. That doesn't change the fact that you need to make up your mind. Previous statement stands. You can't talk with windows above your privilege, you need to run as admin to automate that window. See #RequireAdmin in helpfile. #RequireAdmin is and always has been used
AdmiralAlkex Posted October 17, 2011 Posted October 17, 2011 Errm you don't have the real code commented do you? ; ControlSend("Windows Security","","[CLASS:Button; INSTANCE:1]","{ENTER}") .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface
chachew Posted October 17, 2011 Author Posted October 17, 2011 Errm you don't have the real code commented do you? No i do not, that was for testing purposes and i forgot to pull it out. I think i can use WinGetPos for the dialog box then move the mouse according to window position and do a MouseClick
chachew Posted October 17, 2011 Author Posted October 17, 2011 Hmm, i guess the MouseClick wont work on the Security window either.
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