Results 1 to 5 of 5
  1. #1
    Deus Ex's Avatar
    Join Date
    Sep 2011
    Gender
    male
    Posts
    20
    Reputation
    10
    Thanks
    1
    My Mood
    Amused

    HotKey Dont Work.!

    Hi i have a problem bout hotkeys, I already tried keydown event on form.
    it doesn't work this is my code

    if e.keycode = keys.insert then
    me.visible = true
    else
    me.visible = false
    end if
    or this code
    if keys.insert then

    me.visible = true
    else
    me.visible = false
    end if
    Those Code i put On Timer,keyDown Event but now luck!
    --
    I don't want to use GetAsyncKeyState. I hope you know what i mean

  2. #2
    master131's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Melbourne, Australia
    Posts
    8,858
    Reputation
    3438
    Thanks
    101,680
    My Mood
    Breezy
    The KeyDown event doesn't capture from other controls. You've got to set something on the Form_Load event but I can't remember what it was and I'm on my phone. It was: Me.Something = True.

    EDIT - It was Me.KeyPreview = True
    Last edited by master131; 09-16-2011 at 09:45 PM.

  3. #3
    Jason's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    /dev/null
    Posts
    5,704
    Reputation
    918
    Thanks
    7,676
    My Mood
    Mellow
    Set the "KeyPreview" property of your form to "true". All keypress messages will be sent to the form before they are sent to a specific control.

    Quote Originally Posted by Jeremy S. Anderson
    There are only two things to come out of Berkley, Unix and LSD,
    and I don’t think this is a coincidence
    You can win the rat race,
    But you're still nothing but a fucking RAT.


    ++Latest Projects++
    [Open Source] Injection Library
    Simple PE Cipher
    FilthyHooker - Simple Hooking Class
    CLR Injector - Inject .NET dlls with ease
    Simple Injection - An in-depth look
    MPGH's .NET SDK
    eJect - Simple Injector
    Basic PE Explorer (BETA)

  4. #4
    Leaf's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    the Netherlands.
    Posts
    2,059
    Reputation
    456
    Thanks
    417
    My Mood
    Cheerful
    Why aren't you just using GetASyncKeyState, i read your post, and saw you didn't want to, but why? afaik its the easiest way to do et.
    Ex-



    Previous Names: Leaf, Acinonyx, Fawkes.


  5. #5
    Jason's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    /dev/null
    Posts
    5,704
    Reputation
    918
    Thanks
    7,676
    My Mood
    Mellow
    Quote Originally Posted by Leaf View Post
    Why aren't you just using GetASyncKeyState, i read your post, and saw you didn't want to, but why? afaik its the easiest way to do et.
    because GAKS is an API call and uses unnecessary resources when you can just handle key events from your form.

Similar Threads

  1. Hotkey hack dont work
    By 1545 in forum Combat Arms Help
    Replies: 7
    Last Post: 07-18-2010, 08:30 PM
  2. My Hotkeys Dont Work!
    By ltkort213 in forum WarRock - International Hacks
    Replies: 3
    Last Post: 08-08-2007, 05:24 PM
  3. (NEW PATCH) Trainer dont work anymore
    By miregal in forum WarRock - International Hacks
    Replies: 19
    Last Post: 06-06-2007, 10:26 PM
  4. Hacks dont work
    By blackmarth in forum WarRock Korea Hacks
    Replies: 3
    Last Post: 06-03-2007, 09:35 AM
  5. all bypasses dont work?
    By theplayer45 in forum WarRock - International Hacks
    Replies: 18
    Last Post: 05-08-2007, 10:00 PM