Results 1 to 10 of 10
  1. #1
    Dreamcast's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    In the data center.
    Posts
    307
    Reputation
    11
    Thanks
    39
    My Mood
    Relaxed

    Adding Hotkeys to VB Projects.

    Hello. I'm making a tapper. And a multi-tool soon. I need to know the code to make a hotkey to represent a "Shell "DHCP STOP"" or any control for that matter.
    -Thanks in advance.
    Last edited by Dreamcast; 01-29-2010 at 05:26 PM.

  2. The Following User Says Thank You to Dreamcast For This Useful Post:

    gangraz (02-05-2010)

  3. #2
    TheBigBoy's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    texas
    Posts
    160
    Reputation
    19
    Thanks
    115
    this should help you i think if not post what you really want help with. GetAsyncKeyState Function ()

  4. #3
    Samueldo's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Meh
    Posts
    1,023
    Reputation
    29
    Thanks
    348
    My Mood
    Inspired
    Code:
    Public Class Form1
        Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vkey As Long) As Integer
        Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
            Dim StartHotkey As Integer
            StartHotkey = GetAsyncKeyState(120)
            If StartHotkey <> 0 Then
                Shell("NET STOP DHCP")
            End If
            Dim StopHotkey As Integer
            StopHotkey = GetAsyncKeyState(121)
            If StopHotkey <> 0 Then
                Shell("NET START DHCP")
            End If
        End Sub
        Private Sub LinkLabel1_LinkClicked(ByVal sender As System.Object, ByVal e As System.Windows.Forms.LinkLabelLinkClickedEventArgs) Handles LinkLabel1.LinkClicked
            Process.Start("https://www.mpgh.net")
        End Sub
    End Class
    That's the way to do it. Press thanks remember!!!
    Quote Originally Posted by Grim View Post
    glad to be an inspiration
    Minions rule. /endof

    InjectPlz Refresh - download v1.0 now!

  5. The Following 3 Users Say Thank You to Samueldo For This Useful Post:

    Dreamcast (01-30-2010),remixdvd (02-15-2010),sinan239 (02-11-2010)

  6. #4
    Dreamcast's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    In the data center.
    Posts
    307
    Reputation
    11
    Thanks
    39
    My Mood
    Relaxed
    Thanks.

  7. #5
    Samueldo's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Meh
    Posts
    1,023
    Reputation
    29
    Thanks
    348
    My Mood
    Inspired
    No problem. Just make sure the timer interval is about 500 and don't hold down the hotkey.
    Quote Originally Posted by Grim View Post
    glad to be an inspiration
    Minions rule. /endof

    InjectPlz Refresh - download v1.0 now!

  8. The Following User Says Thank You to Samueldo For This Useful Post:

    Dreamcast (01-30-2010)

  9. #6
    fly777's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    15
    Reputation
    10
    Thanks
    4
    then F9 = 120

    F10 = 121???


    StartHotkey = GetAsyncKeyState(120)

    StopHotkey = GetAsyncKeyState(121)
    ??

  10. #7
    Samueldo's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Meh
    Posts
    1,023
    Reputation
    29
    Thanks
    348
    My Mood
    Inspired
    Quote Originally Posted by fly777 View Post
    then F9 = 120

    F10 = 121???


    ??
    Yep, that's it.

    I just read up those numbers somewhere and it confuses leeching choobs. XD
    Quote Originally Posted by Grim View Post
    glad to be an inspiration
    Minions rule. /endof

    InjectPlz Refresh - download v1.0 now!

  11. #8
    Dreamcast's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    In the data center.
    Posts
    307
    Reputation
    11
    Thanks
    39
    My Mood
    Relaxed
    Or
    GetAsyncKeyState (Keys.F9)
    Instead of Key Numbers.

  12. #9
    mooga88's Avatar
    Join Date
    Nov 2009
    Gender
    male
    Posts
    1
    Reputation
    10
    Thanks
    0
    thank you too much

  13. #10
    Samueldo's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Meh
    Posts
    1,023
    Reputation
    29
    Thanks
    348
    My Mood
    Inspired
    No problemo. But it would help if you pressed the button too, then I can do more of this.
    Quote Originally Posted by Grim View Post
    glad to be an inspiration
    Minions rule. /endof

    InjectPlz Refresh - download v1.0 now!

Similar Threads

  1. [Detected] Play2Hack Project 2.1.0 (Ads Removed)
    By Lunatic in forum Battlefield Play4Free Hacks
    Replies: 54
    Last Post: 08-03-2011, 04:47 AM
  2. [Release] PublicNgkV2 | Version 2.0 | Added No recoil | Working Hotkeys | NO D/C
    By Nubzgetkillz in forum Combat Arms Hacks & Cheats
    Replies: 29
    Last Post: 10-14-2010, 04:40 PM
  3. [Release] Updated Unlimited Respawn (Self-Bypassing) (Hotkey Added)
    By randomnamekabe in forum Combat Arms Hacks & Cheats
    Replies: 62
    Last Post: 11-25-2009, 06:58 PM
  4. The Uptime Project
    By Dave84311 in forum General
    Replies: 14
    Last Post: 10-09-2009, 04:16 PM
  5. Hotkeys in C++
    By Dave84311 in forum C++/C Programming
    Replies: 7
    Last Post: 09-07-2007, 07:13 AM

Tags for this Thread