hotkey for disconnect from Internet.

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
ashab02
Posts: 1
Joined: 14 Jan 2017, 18:08

hotkey for disconnect from Internet.

14 Jan 2017, 18:31

Hello guys I wanna create a hotkey for disconnecting from my Internet but I have no experience with autohotkey or with scripts can you help me .
enter8
Posts: 102
Joined: 05 May 2016, 16:48

Re: hotkey for disconnect from Internet.

17 Jan 2017, 19:16

Could you expand on what you mean by 'disconnecting' from your internet? If you disable your network adapter, that will prevent traffic from flowing inside and out, ie, you won't be able to load any websites and/or get email, but, if, say, you have DSL, your internet service will still be active.

If you want to disable your network adapter, you can do it via command line:
http://superuser.com/a/466011/626174

You can open a command prompt in Windows by clicking on the Start Menu button, then run, then typing cmd and then pressing enter.

Lastly, once you have a command that you're happy with, you can, if you want to use a hotkey to trigger it, you can create a script like this:

Code: Select all

^d::
run command
return
replacing the word 'command' with the actual command you want to run.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Google [Bot], scriptor2016 and 257 guests