Keyboard event injection menu

User Tag List

Results 1 to 7 of 7
  1. #1
    Zacharot's Avatar Private
    Reputation
    1
    Join Date
    Nov 2013
    Posts
    4
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Keyboard event injection

    Can someone point me in the direction of the method the bot creators are using to inject keyboard events into the game without it being active? I've written a fairly decent packet scanner in python, but certain events require game input, and I'm not a fan of any of the standard methods of game control. I see viper doing injections via dll, but I'm not sure how to replicate that. I can call an external dll without any issue using ctypes, so if anyone wants to build me one, i'd be forever appreciative. Any help would be appreciated!

    Edit: I found things.. that I'm unsure of being the correct route to go down, but I'm willing to learn, I'm just way out of my depth. I found a possibly helpful reference in this:

    fasm.AddLine("retn");
    fasm.AddLine("jmp 0x410000");
    fasm.AddLine("call 0x410000");
    byte[] a = fasm.Assemble();

    fasm.InjectAndExecute(hProcess, dwBaseAddress);
    fasm.Dispose();

    Which I take to mean there is a table of memory addresses for functions the game performs when keys are pressed, such as X maps to this function, and N to this function. I am however, again, way out of my depth. I get the jist of the asm that's being called (go back where you came from, go here instead, run this), and could probably compile the dll, but where would I even begin to look to find those addresses?

    And am I even looking in the right place?
    Last edited by Zacharot; 11-06-2013 at 06:41 PM. Reason: Clarification of nubbishness

    Keyboard event injection
  2. #2
    karnkore's Avatar Member
    Reputation
    7
    Join Date
    Sep 2012
    Posts
    130
    Thanks G/R
    1/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You can hook a function and change the game's code to do with input states, if they ever implement any client side anti-cheat then that will be quickly detected. If you want to be safe use non inject method with virtual keypress.

  3. #3
    Zacharot's Avatar Private
    Reputation
    1
    Join Date
    Nov 2013
    Posts
    4
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by karnkore View Post
    You can hook a function and change the game's code to do with input states, if they ever implement any client side anti-cheat then that will be quickly detected. If you want to be safe use non inject method with virtual keypress.
    Is there a method you know of to use a virtual keypress without the window being active? I've looked into keybd_event and SendMessage, but the former requires an active window and the latter isn't picked up.

  4. #4
    Valtharak's Avatar Master Sergeant
    Reputation
    51
    Join Date
    Feb 2011
    Posts
    105
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    theres definitly, a way

    in autoit with a quick script the ControlSend can send to window not in foreground. not sure about minimized but i could do something else while the window was in background.

  5. #5
    Zacharot's Avatar Private
    Reputation
    1
    Join Date
    Nov 2013
    Posts
    4
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Valtharak View Post
    theres definitly, a way

    in autoit with a quick script the ControlSend can send to window not in foreground. not sure about minimized but i could do something else while the window was in background.
    Edit: Was this for final fantasy, or a windows app? FFXIV has no controls. I ran an enumerator against it, nothing there to receive the ControlSend.
    Last edited by Zacharot; 11-07-2013 at 06:58 AM. Reason: Invalid reply

  6. #6
    JuJuBoSc's Avatar Banned for scamming CoreCoins Purchaser
    Reputation
    1019
    Join Date
    May 2007
    Posts
    922
    Thanks G/R
    1/3
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    From what I remember, SendMessage work just fine with this game.

  7. #7
    Zacharot's Avatar Private
    Reputation
    1
    Join Date
    Nov 2013
    Posts
    4
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks! Will delve it again and see if I didn't get something wrong the first time.

    Edit:

    Indeed I must have, I successfully got it working this time around, and appreciate the redirection!
    Last edited by Zacharot; 11-07-2013 at 05:58 PM. Reason: Followup

Similar Threads

  1. Paladin's Keyboard (IDEAL x-mas pressie!)
    By Toldorn in forum World of Warcraft General
    Replies: 12
    Last Post: 12-18-2006, 12:17 PM
  2. Gold Duping Event
    By Ensui in forum World of Warcraft General
    Replies: 1
    Last Post: 12-12-2006, 04:23 PM
  3. G15 keyboard profiles
    By pcomo in forum World of Warcraft Bots and Programs
    Replies: 5
    Last Post: 11-24-2006, 04:47 PM
  4. Keyboard Layout and PvP
    By husky003 in forum World of Warcraft Guides
    Replies: 10
    Last Post: 10-01-2006, 03:59 PM
  5. [Bot] Anti-AFK Bot (No Injection & Focus not Needed)
    By Cypher in forum World of Warcraft Bots and Programs
    Replies: 12
    Last Post: 09-10-2006, 11:14 AM
All times are GMT -5. The time now is 09:42 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