Send keys to Aion in C# menu

Shout-Out

User Tag List

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

    Send keys to Aion in C#

    Hi everyone.


    I try to send keys to the game aion (I guess you understand the reason ).

    To be able to do it in background, I'm using the Postmessage function and that's where things become weird.

    Keys that I send are received if I am in a chat window with the caret. Some keys are processed by the game if not in chat window but mains keys (movement, jump...) are discarded.

    I used Spy++ to log messages received by the game and there are no differences in those messages between the key I send (for instance space) and when I press the space bar in the game.

    Anyone has an idea ?

    Code used to send key:

    PostMessage(whandle, 0x100, 0x20, 0x390001);
    Thread.Sleep(150);
    PostMessage(whandle, 0x101,0x20, 0xC0390001);

    Here are the result of messages received by the application.

    With space bar in game

    <00001> 000A0834 P WM_KEYDOWN nVirtKey:VK_SPACE cRepeat:1 ScanCode:39 fExtended:0 fAltDown:0 fRepeat:0 fUp:0
    <00002> 000A0834 P WM_CHAR chCharCode:'32' (32) cRepeat:1 ScanCode:39 fExtended:0 fAltDown:0 fRepeat:0 fUp:0
    <00003> 000A0834 P WM_KEYUP nVirtKey:VK_SPACE cRepeat:1 ScanCode:39 fExtended:0 fAltDown:0 fRepeat:1 fUp:1



    With code above

    <00004> 000A0834 P WM_KEYDOWN nVirtKey:VK_SPACE cRepeat:1 ScanCode:39 fExtended:0 fAltDown:0 fRepeat:0 fUp:0
    <00005> 000A0834 P WM_CHAR chCharCode:'32' (32) cRepeat:1 ScanCode:39 fExtended:0 fAltDown:0 fRepeat:0 fUp:0
    <00006> 000A0834 P WM_KEYUP nVirtKey:VK_SPACE cRepeat:1 ScanCode:39 fExtended:0 fAltDown:0 fRepeat:1 fUp:1


    I tried to give the focus to the window first using
    SetForegroundWindow(whandle);

    Same result.

    All suggestions are welcome :wave:

    Send keys to Aion in C#
  2. #2
    h1pp0's Avatar Member
    Reputation
    3
    Join Date
    Jan 2009
    Posts
    27
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Edit: SHould of read the whole post first
    nvm

  3. #3
    Prodian0013's Avatar Corporal
    Reputation
    13
    Join Date
    Nov 2009
    Posts
    30
    Thanks G/R
    0/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

Similar Threads

  1. c# Send key to Gw2 to move characters
    By Ancitique in forum Guild Wars 2
    Replies: 2
    Last Post: 12-28-2018, 01:58 AM
  2. Sending Keys in C# to GW2
    By RazorDreamz in forum GW2 Bots and Programs
    Replies: 8
    Last Post: 09-09-2012, 04:47 PM
  3. Sending Keys
    By EmiloZ in forum Programming
    Replies: 5
    Last Post: 10-12-2008, 05:40 AM
  4. [Question] Send Keys to Window
    By TuFF in forum Programming
    Replies: 4
    Last Post: 10-09-2008, 05:55 PM
  5. Freebie method for sending keys to multiple WoW windows
    By tomit12 in forum World of Warcraft Guides
    Replies: 6
    Last Post: 03-03-2008, 10:49 AM
All times are GMT -5. The time now is 10:07 AM. 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