[Help] C# Pressing a Key in a game which will make my program click 'Start' menu

User Tag List

Results 1 to 8 of 8
  1. #1
    Deathyaw's Avatar Contributor
    Reputation
    241
    Join Date
    Feb 2009
    Posts
    421
    Thanks G/R
    62/31
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Help] C# Pressing a Key in a game which will make my program click 'Start'

    Hello there , i am currently doing a program which will Announce and Countdown from example lets say 5 minutes , So when you press 'Start' Button it will count down from 5 minutes to 0,

    The thing that i would like to have is this:

    If i am in a Fullscreened Game For Example WoW , League of Legends ye any game with fullscreen

    And i press 'Numpad 8' i want the Program to click start on Button 1.

    This should be possible since i've seen it before but i dont know how to.

    Please reply ASAP doing this for a C# Project in school

    [Help] C# Pressing a Key in a game which will make my program click 'Start'
  2. #2
    spitfire21's Avatar Member
    Reputation
    2
    Join Date
    Oct 2009
    Posts
    100
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    First off I haven't programmed in c# in a while so this may not be an easy solution and not really a viable one.
    Go look up keycodes for numpad 8 I believe its like 68 or sometihng.

    To make your program work what you could do (AND DO NOT DO THIS ONLINE) you could hoook your program into the games so if you click the numpad your game would recieve the input. The reason you shouldn't try this online is because warden may see that you hooked onto the process and ban you. I really can't remember other ways of doing this maybe so programming guru will help, but this is all I remember from my 3 months of programming in c#.

  3. #3
    DarkLinux's Avatar Former Staff
    CoreCoins Purchaser Authenticator enabled
    Reputation
    1584
    Join Date
    May 2010
    Posts
    1,829
    Thanks G/R
    188/531
    Trade Feedback
    16 (100%)
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    You will need to hook the keyboard. Just Google windows keyboard hook and you should find what you are looking for. I don't think you want to press a button, you really want to do is start a function. Its the same thing in a way. But if you have never done this before it can be a little hard.

  4. #4
    spitfire21's Avatar Member
    Reputation
    2
    Join Date
    Oct 2009
    Posts
    100
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Be aware hooking your keyboard may also trigger anti-virus to go off. But it's a good way to go.

  5. #5
    Deathyaw's Avatar Contributor
    Reputation
    241
    Join Date
    Feb 2009
    Posts
    421
    Thanks G/R
    62/31
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for the gr8 replys and quick ones

    I will try them out and i found 0x48 as Numpad 8 in league of legends


    I will use it online since League of Legends does currently not have any type of Warden ( Known )

  6. #6
    DarkLinux's Avatar Former Staff
    CoreCoins Purchaser Authenticator enabled
    Reputation
    1584
    Join Date
    May 2010
    Posts
    1,829
    Thanks G/R
    188/531
    Trade Feedback
    16 (100%)
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Well even wow's Warden cant detect most keyboard hooks. So I would think you are more then safe with League of Legends.

  7. #7
    Deathyaw's Avatar Contributor
    Reputation
    241
    Join Date
    Feb 2009
    Posts
    421
    Thanks G/R
    62/31
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ye tho the only problem is that i cant seem to get this to work

    Code:
            private void buttonbaron_KeyDown(object sender, KeyEventArgs e)
            {
                if (KeyDown +=new KeyEventHandler(Keys.NumPad*8);
    I need to Add an event so when the key Numpad*8 is pressed use buttonbaron

  8. #8
    spitfire21's Avatar Member
    Reputation
    2
    Join Date
    Oct 2009
    Posts
    100
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Write an event handler for button baron.

Similar Threads

  1. Help Server just stays at <Logging Into game server>
    By pennybox in forum World of Warcraft Emulator Servers
    Replies: 31
    Last Post: 03-06-2008, 06:01 PM
  2. Help needed with losing items in the game
    By kitkatz in forum World of Warcraft Emulator Servers
    Replies: 5
    Last Post: 12-09-2007, 09:57 PM
  3. Spugnort's Outland keying guide (in game)
    By dark_chief in forum World of Warcraft Guides
    Replies: 2
    Last Post: 10-30-2007, 05:58 PM
  4. Trading my Glider Key for US Game Card
    By Alkhara Majere in forum Members Only Accounts And CD Keys Buy Sell
    Replies: 0
    Last Post: 08-01-2007, 01:30 AM
All times are GMT -5. The time now is 06:34 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search