Jump to content
Sign in to follow this  
JohnMC

Auto Accept Driver Prompt In XP For When KB/M Dont Work

Recommended Posts

JohnMC

For the few XP systems i deal with im typically using a VM image to copy to the system then a driver/migration tool to get it to boot on the system, This leaves me with a system that boots but often has no functioning keyboard and mouse because of drivers not being installed, the driver installation prompt is on the screen but cant be advanced due to lack of input.

What ive done is setup my VM image to automatically log in to a temporary user, this temporary user has the below script in there startup folder, the script advances through all scenarios of the driver installation prompt in hopes that it will advance to the point your USB/input drivers are automatically setup, when this happens, i shutdown the script, remove it from the startup folder and continue on with my setup.

$title="Found New Hardware Wizard"
sleep(20000)


while 1
if WinExists($title) then
   sleep(3000)
   WinActivate($title)
   sleep(3000)

   $text=WinGetText ($title)

   if StringInStr($text,"Can Windows connect to Windows Update to search for software?") then
   ControlCommand ($title,"","[ID:8104]","Check", "")
   sleep(500)
   ControlClick("Found New Hardware Wizard","","[ID:12324]")
   sleep(1000)
   endif
   $text=WinGetText ($title)

   if StringInStr($text,"Cannot Install this Hardware") then
   ControlCommand ($title,"","[ID:1030]","UnCheck", "")
   sleep(500)
   ControlClick("Found New Hardware Wizard","","[ID:12325]")
   sleep(1000)
   endif
   $text=WinGetText ($title)

   if StringInStr($text,"What do you want the wizard to do?") then
   ControlCommand ($title,"","[ID:1049]","Check", "")
   sleep(500)
   ControlClick("Found New Hardware Wizard","","[ID:12324]")
   sleep(1000)
   endif
   $text=WinGetText ($title)

   if StringInStr($text,"Click Finish to close the wizard.") then
   ControlClick("Found New Hardware Wizard","","[ID:12325]")
   sleep(1000)
   endif

endif

wend

Share this post


Link to post
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
Sign in to follow this  

×