Hotkeys without focus menu

Shout-Out

User Tag List

Results 1 to 4 of 4
  1. #1
    Araredon's Avatar Contributor
    Reputation
    89
    Join Date
    Feb 2009
    Posts
    141
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Hotkeys without focus

    How can i make a program respond to hotkeys without it having focus. Im trying to make a bot to spam my friends on msn (actually this fag thats really annoying) and i want my bot to stop when i push ESC. Im aware of the keydown event but how do I do that when my program doesnt have focus?
    Dont read this. It has nothing to do with you. Are you still reading? Why are you still reading? I told you not to read. It doesnt have anything to do with you. Are you happy now? You just wasted atleast 5 seconds of your life reading nothing.

    Hotkeys without focus
  2. #2
    suicidity's Avatar Contributor
    Reputation
    207
    Join Date
    Oct 2006
    Posts
    1,439
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    GetAsyncKeyState() is one of the cheap functions of checking a key's current state; Could be used like..

    Code:
    if (GetAsyncKeyState(Keys.Escape) <> 0)
        STATE = States.Stopped;
    The only thing is that would you would have to put that in something like an update thread; But that would probably be one of your routes because it doesn't sound like it would affect the outcome of your project very much.


  3. #3
    T1B's Avatar Elite User
    Reputation
    369
    Join Date
    Apr 2006
    Posts
    656
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Google after "keyboardhook" =]

  4. #4
    Araredon's Avatar Contributor
    Reputation
    89
    Join Date
    Feb 2009
    Posts
    141
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks Teh
    Dont read this. It has nothing to do with you. Are you still reading? Why are you still reading? I told you not to read. It doesnt have anything to do with you. Are you happy now? You just wasted atleast 5 seconds of your life reading nothing.

Similar Threads

  1. Replies: 4
    Last Post: 12-18-2009, 08:48 AM
  2. Simulate mouse without focus
    By JuJuBoSc in forum Programming
    Replies: 10
    Last Post: 03-07-2009, 12:22 PM
  3. Run Through Tunnel without Dismounting
    By Matt in forum World of Warcraft Exploits
    Replies: 14
    Last Post: 11-15-2006, 05:42 PM
  4. Enter SM cathedral, without key
    By Matt in forum World of Warcraft Exploits
    Replies: 1
    Last Post: 08-16-2006, 08:28 AM
  5. I'm flying without wings! FOR 20 SECONDS WHOAZERZ!
    By janzi9 in forum World of Warcraft Exploits
    Replies: 7
    Last Post: 05-17-2006, 08:00 PM
All times are GMT -5. The time now is 11:23 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search