Jump to content
Sign in to follow this  
matzew

Deactivate/Activate onboard Soundcard/Wired- and WirelessNetworkadapter

Recommended Posts

matzew

hi,

is it possible to make a script to deactivate the onboard soundcard and the wired and wireless networkadapter with one click?

of course to activate too

sorry but i am a newbe with autoit :)

best..

Share this post


Link to post
Share on other sites
matzew

of course is used the search function but my english ist not very well

probably my keywords are wrong or something..

i forgot, my os is windows 7

i found something but this seems not working..

http://www.autoitscript.com/forum/index.php?showtopic=104226

Edited by matzew

Share this post


Link to post
Share on other sites
somdcomputerguy

I ControlSend to a Windows app to enable/disable the wireless card in my laptop.

If Not WinExists("Windows Mobility Center") Then
 $VZExist = 0
 Run("mblctr.exe /open")
Else
 WinActivate("Windows Mobility Center")
EndIf
Sleep(500)
;ControlClick("Windows Mobility Center", "", "Button2")
ControlSend("Windows Mobility Center", "", "", "!t")
If $VZExist = 0 Then WinClose("Windows Mobility Center")

The Button/Alt-T is a toggle, so if it's on, it gets turned off, and vice-versa.

There is most probably a dozen ways to do this same thing, but this was simple to write, and it works for me..

Also, the particular app and whatever is clicked or sent may be different in Win7 than my OS, but the idea will probably work.


- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

Share this post


Link to post
Share on other sites
BrettF

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  

×