Jump to content

Recommended Posts

Posted

Does anyone know off the top of their head if there is a hotkey to "Scan for hardware changes" (in Computer Managment\Device Manager...)

or if there isn't a hotkey... does anyone know how to perform the scan without the use of the mouse?

Just asking... otherwise i have to go and use mouse clicks... i just try to avoid it when i can...

Geez... i am useless this morning....

Posted

I don't know of a good way.... Here's one that relies on Send..... It's better to use ControlSend, but SysTreeViews are not really supported yet.

$title = "Computer Management"
Run("mmc.exe compmgmt.msc", @SystemDir)
WinWait($title)
Send("d")
Send("{TAB}")
sleep(2000);hard-coded delay...
Send("{AppsKey}a") ;bring up right-click menu
Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!
Posted

Yeah... that's about what i have for now... ah well... it's cool.. as long as she works that's the main thing... and in this case it's for a 'fire and forget' script so it's all good... Thanks CyberSlug! much props!

Peace,

\\--<!>Mad Sc13ntist<!>---+

Posted

Does anyone know off the top of their head if there is a hotkey to "Scan for hardware changes" (in Computer Managment\Device Manager...)

or if there isn't a hotkey... does anyone know how to perform the scan without the use of the mouse?

Just asking... otherwise i have to go and use mouse clicks... i just try to avoid it when i can...

Geez... i am useless this morning....

<{POST_SNAPBACK}>

The command-line utility "devcon" referenced in the following thread can be told to do a re-scan. It may help in your situation...

nap

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
  • Recently Browsing   0 members

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