Jump to content

I cant interact with the sysprep window


cptHark
 Share

Recommended Posts

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

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 ;)

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 functions
Acro.au3 UDF - Automating Acrobat Pro
ToDo Finder - Find #ToDo: lines in your scripts
UI-SimpleWrappers UDF - Use UI Automation more Simply-er
KeePass UDF - Automate KeePass, a password manager
InputBoxes - Simple Input boxes for various variable types

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...