cptHark Posted October 14, 2019 Share Posted October 14, 2019 I cant to Interact with a sysprep window, which i previosly opened with shellExecute no matter if I use the Title or the Class of it. Func buttonSysprep() ShellExecute("C:\Windows\System32\Sysprep\sysprep.exe") Local $sysprep = WinWait("[Class:#32770]",100) ControlClick($sysprep,"" ,"[CLASS:Button;INSTANCE:4]") EndFunc Link to comment Share on other sites More sharing options...
seadoggie01 Posted October 14, 2019 Share Posted October 14, 2019 It looks like the "Button" you're trying to click on isn't a button... it's a group. But if this were me, I wouldn't run the SysPrep GUI, I would try using the command line. Then you get all of the options of the GUI without caring about how to click them spudw2k 1 All my code provided is Public Domain... but it may not work. Use it, change it, break it, whatever you want. Spoiler My Humble Contributions:Personal Function Documentation - A personal HelpFile for your functionsAcro.au3 UDF - Automating Acrobat ProToDo Finder - Find #ToDo: lines in your scriptsUI-SimpleWrappers UDF - Use UI Automation more Simply-erKeePass UDF - Automate KeePass, a password managerInputBoxes - Simple Input boxes for various variable types 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