Jump to content
Sign in to follow this  
probedrone

Disabling a system device automatically

Recommended Posts

probedrone

I have a device installed on the system that sometimes crash when running certain programs, I need to make a autoit script that can disable and enable that device whenever i want. The thing is that I dont want to use mouseclicks (unreliable) since I might use this program on different computers, so does anyone know a way to access device manager and working with it without mouseclicks? Or even better, is there some value I can change in the registry that will do the same thing?

Share this post


Link to post
Share on other sites
SmOke_N

ProcessClose() and Run()?


Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites
probedrone

ProcessClose() and Run()?

Can you go into more detail on how that works? I think it will close/run a program, not disable a device...

Share this post


Link to post
Share on other sites
Confuzzled

What is the device?

Share this post


Link to post
Share on other sites
Helge

The DevCon utility is a command-line utility that acts as an alternative to Device Manager.

Using DevCon, you can enable, disable, restart, update, remove, and query individual

devices or groups of devices. DevCon also provides information that is relevant to the

driver developer and is not available in Device Manager.

Link : http://support.microsoft.com/default.aspx?...b;EN-US;Q311272

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.