Step 1
Add 2 timer's to your project
Step 2
Copy and paste source
Step 3
Press Thanks button
Code:
Public Class Form1
Public Declare Function GetAsyncKeyState Lib "User32" (ByVal vKey As Long) As Integer
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Timer1.Enabled = True
Timer2.Enabled = True
End Sub
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
Dim Hotkey1 As Boolean
Hotkey1 = GetAsyncKeyState(Keys.F11)
If Hotkey1 = True Then
Timer1.Enabled = True
Shell("NET START DHCP")
End If
End Sub
Private Sub Timer2_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer2.Tick
Dim Hotkey2 As Boolean
Hotkey2 = GetAsyncKeyState(Keys.F10)
If Hotkey2 = True Then
Timer2.Enabled = True
Shell("NET STOP DHCP")
End If
End Sub
End Classl
Alredy knows this ^^, but nice tut to every1 who doesn´t!
Originally Posted by hejsan1
Alredy knows this ^^, but nice tut to every1 who doesn´t!
yeah. most choobs couldn't figure this out to save their lives. they should be able to make one now though since they have a source code right in front of their face
Originally Posted by stevethehacker
yeah. most choobs couldn't figure this out to save their lives. they should be able to make one now though since they have a source code right in front of their face
Can you please edit your code or there will be millions of tappers in combat arms section....... Just remove some words so it give them a lot of errors!
Originally Posted by hejsan1
Can you please edit your code or there will be millions of tappers in combat arms section....... Just remove some words so it give them a lot of errors!
Perfect Plot! Mu-Haw-Haw
Thanks very much for this
lol thanks for this... it really eazy but for some ppl who wunt to lern... its a good start..
thanks for this!
can i have some help? this doesnt work at all because it asks me if i want to yes or no in a cmd prompt box and if i try this with hotkeys it does nothing so how do u force it?
also when i use other pplz they still ask me yes or no
OS? use the -silent code in the shell. then no cmd will pop up at all I believe
Originally Posted by guza44_44
can i have some help? this doesnt work at all because it asks me if i want to yes or no in a cmd prompt box and if i try this with hotkeys it does nothing so how do u force it?
also when i use other pplz they still ask me yes or no
What OS u running? This is for 32bit users!
yeah this should on work for 32 bit but I think the -silent code might fix it.
nobody had done the third step--xD
Originally Posted by krellooo
nobody had done the third step--xD
yes I give people source code. they copy and paste. then don't thank me and post their program on another website. thats how it goes
Originally Posted by stevethehacker
yes I give people source code. they copy and paste. then don't thank me and post their program on another website. thats how it goes
That´s why u don´t should post the FULL code! Make it like time!r1.enabled blablabla!
Originally Posted by hejsan1
That´s why u don´t should post the FULL code! Make it like time!r1.enabled blablabla!
yeah I even added a code so that they didn't have to go to all those mouse clicks to enable both timers. The choobs that copied and pasted it probably don't know how to enable the timers
Originally Posted by stevethehacker
yeah I even added a code so that they didn't have to go to all those mouse clicks to enable both timers. The choobs that copied and pasted it probably don't know how to enable the timers