Adblock breaks this site

Need VB6 Hotkeys

Discussion in 'Archives' started by Teizhcial, May 10, 2007.

  1. Teizhcial

    Teizhcial Guest

    Referrals:
    0
    Need VB6 Hotkeys

    if anyone knows the code for VB6 hotkeys it would be greatly appreciated
    -.- I know this question may seem n00bish but I need alot of hoykey bugfixes
     
  2. nipplesandlicks

    nipplesandlicks Guest

    Referrals:
    0
    Need VB6 Hotkeys

    try google
     
  3. Covey

    Covey Creator of EliteSwitch
    Retired Sectional Moderator Visual Basic Programmers

    Joined:
    Sep 9, 2005
    Posts:
    4,510
    Referrals:
    9
    Sythe Gold:
    9
    Discord Unique ID:
    807246764155338833
    Discord Username:
    Covey#1816
    Need VB6 Hotkeys

    useless....

    this is an example of CTRL + T:
    Add this to your form:
    Code:
    Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vbKey As Long) As Integer
    Add this to a timer with an interval of at most 1000:
    Code:
    if GetAsyncKeyState(vbKeyCtrl) And GetAsyncKeyState(vbKeyT) then
        msgbox "yay"
    end if
     
  4. Teizhcial

    Teizhcial Guest

    Referrals:
    0
    Need VB6 Hotkeys

    Thank you Covey :)
     
  5. nphp20

    nphp20 Guest

    Referrals:
    0
    Need VB6 Hotkeys

    also you can use a user control called mclhotkey, its a control you drag onto a form, you can set the properties just like any other control (example, you can set ctrl, shift, alt, and windows logo to true or false and then change the main hotkey). This is the one i use for all of my projects.

    link is here: http://home.wanadoo.nl/dynamiel/mclhotkey/MCLHotkey.ocx

    Once you download the file, paste it into C:\WINDOWS\system32. Press Windows Logo Key + R and type "regsvr32 mclhotkey.ocx" into the box, then click ok.

    To use it, open up your VB project, right click on the toolbox and click components, then click "System Wide Hotkey".
     
< Selling 6 PBP pins! | Buying a acc >


 
 
Adblock breaks this site