Results 1 to 5 of 5
  1. #1
    Cryptonic's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    United Provinces of Canada
    Posts
    1,313
    Reputation
    44
    Thanks
    190
    My Mood
    Bored

    Pressing a Hotkey

    On a timer that starts when the program starts, i put

    [highlight="vb.net"]SendKeys.Send("{HOME}")[/highlight]

    But nothing happends.

    I put

    [highlight="vb.net"]SendKeys.Send("{ENTER}")[/highlight]

    and that works.

    Using

    [highlight="vb.net"]SendKeys.Send(Keys.Home)[/highlight]

    Types 36.

    ...?

  2. #2
    GodHack2's Avatar
    Join Date
    May 2010
    Gender
    male
    Posts
    644
    Reputation
    38
    Thanks
    762
    My Mood
    Amused
    [highlight="vb.net"]SendKeys.Send("{HOME}")[/highlight]
    Should work just fine.

    And this explains the 36:
    https://msdn.microsof*****m/en-us/libr...(v=vs.71).aspx
    Last edited by GodHack2; 07-18-2011 at 01:46 PM.





    beat this bitches ^^^^^^^

    Current Stats : Bored :/


    Respect list :
    Crash !
    Gordon'
    Markoj

  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
    Quote Originally Posted by GodHack2 View Post
    [highlight="vb.net"]SendKeys.Send("{HOME}")[/highlight]
    Should work just fine.

    And this explains the 36:
    Keys Enumeration
    He just said that SendKeys.Send("{HOME}") didn't work, although it should.

    And SendKeys processes a string, Key.Home is just an integer for the Home key's keycode, so it's implicitly converted to the string "36".

    Try looking at the keybd_event API, I'm sure I released something using that ages ago (look up String Sender J-Deezy or something like that to find it) around that time there was a shitload of tuts on using keybd_event to send a keydown and keyup message to the computer.

    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. The Following User Says Thank You to Jason For This Useful Post:

    Cryptonic (07-22-2011)

  5. #4
    Blubb1337's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Germany
    Posts
    5,915
    Reputation
    161
    Thanks
    3,108
    Quote Originally Posted by Jason View Post


    He just said that SendKeys.Send("{HOME}") didn't work, although it should.

    And SendKeys processes a string, Key.Home is just an integer for the Home key's keycode, so it's implicitly converted to the string "36".

    Try looking at the keybd_event API, I'm sure I released something using that ages ago (look up String Sender J-Deezy or something like that to find it) around that time there was a shitload of tuts on using keybd_event to send a keydown and keyup message to the computer.

    https://www.mpgh.net/forum/33-visual-...ender-dll.html



  6. The Following 2 Users Say Thank You to Blubb1337 For This Useful Post:

    Cryptonic (07-22-2011),Jason (07-19-2011)

  7. #5
    Cryptonic's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    United Provinces of Canada
    Posts
    1,313
    Reputation
    44
    Thanks
    190
    My Mood
    Bored
    Well. I am using an AFK bot, and sometimes it just stops working, and the hotkey is home. If it stops working and You press home again, it will start working. I will try Jasons way and see if that works.

Similar Threads

  1. Cannot press Hotkey
    By kiraush in forum Combat Arms Help
    Replies: 2
    Last Post: 09-01-2010, 01:15 PM
  2. vb hotkeys
    By cjg333 in forum General Game Hacking
    Replies: 7
    Last Post: 07-23-2008, 01:08 PM
  3. Hotkeys in C++
    By Dave84311 in forum C++/C Programming
    Replies: 7
    Last Post: 09-07-2007, 07:13 AM
  4. Hotkeys for a VB trainer
    By scooby107 in forum Visual Basic Programming
    Replies: 10
    Last Post: 07-03-2007, 12:43 PM
  5. Warrock cant press on ok bottun? AMSWER HERE'!!
    By xcm123 in forum WarRock - International Hacks
    Replies: 23
    Last Post: 04-27-2007, 05:50 PM