Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Right now, when toggling the wireless network, I press Win+X. Then the Windows Mobility Center appears. I click Turn Wireless On/Off like in screen shot.

image

I scoured the Internet to find an AutoHotkey script for toggling the wireless network, but my efforts were vain. I want Win+Z to be the shortcut. Can anyone help me?

share|improve this question

migrated from stackoverflow.com Jan 9 '13 at 4:38

This question came from our site for professional and enthusiast programmers.

    
How about this ahk thread and also wirelessautoswitch which suggested by a user their. But I think its not completely free. –  avirk Jan 9 '13 at 7:35
    
Those two are related to LAN. The script I want shouldn't be related to LAN. –  Michael Dy Jan 9 '13 at 14:48
add comment

1 Answer

up vote 3 down vote accepted

How about ....

SetTitleMatchMode, 2

#z::
Run %windir%\system32\mblctr.exe /open
WinWait, Windows Mobility Center
Sleep, 300
Send, !t
Sleep, 1000
WinClose, A
Return

Alternatively you can look here.. http://wlanbook.com/enable-disable-wireless-card-command-line/

share|improve this answer
    
It works, thanks. –  Michael Dy Jan 9 '13 at 17:57
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.