[TuT] Internet Tapper + Hotkeys
First, get 2 buttons
one disconnect and one connect
Double click on the form itself and put in...
Code:
Private Declare Function GetAsyncKeyState Lib "user32.dll" (ByVal vKey As System.Int16) As Int16 'so its x64 bit compatible
put it right above the word private sub (form).
Now double click on the disconnect button and put in...
Code:
Shell("Net STOP DHCP")
and double click on the connect button and put in...
Code:
Shell("NET START DHCP")
Now get a timer.
First edit the properties, make enabled = true.
and now double click on timer1 and put in...
Code:
Dim StartHotkey As Integer
StartHotkey = GetAsyncKeyState(116)
If StartHotkey <> 0 Then
Shell("Net STOP DHCP")
End If
Dim StopHotkey As Integer
StopHotkey = GetAsyncKeyState(117)
If StopHotkey <> 0 Then
Shell("NET START DHCP")
End If
Disconnect = F5
Connect = F6
123--F12
122--F11
121--F10
120--F9
119--F8
118--F7
117--F6
116--F5
115--F4
114--F3
113--F2
112--F1