Cannot send keystroke to Wildstar menu

User Tag List

Results 1 to 2 of 2
  1. #1
    Mike1786's Avatar Member
    Reputation
    2
    Join Date
    Feb 2012
    Posts
    18
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Cannot send keystroke to Wildstar

    Hi

    Maybe someone can help me, i am trying to send a keystroke to Wildstar but it will not work, attached some code i use to do this:

    Code:
    [DllImport("user32.dll")]
    private static extern IntPtr PostMessage(IntPtr hWnd, uint msg, IntPtr wParam, IntPtr lParam);
    
    var proc = Process.GetProcessesByName("WildStar32");
    
    GV.WSHandle = proc[0].MainWindowHandle;
    
    PostMessage(GV.WSHandle, 0x100, (IntPtr)Keys.D1, IntPtr.Zero);
    PostMessage(GV.WSHandle, 0x101, (IntPtr)Keys.D1, IntPtr.Zero);
    Thx Mike

    These ads disappear when you log in.

  2. #2
    z0yb3r's Avatar Member
    Reputation
    3
    Join Date
    Jan 2011
    Posts
    38
    Thanks G/R
    2/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    PostMessage(bl.WindowHandle, 0x100, (int)MicrosoftVirtualKeys.V, CreateLParam(MicrosoftVirtualKeys.V, false));
    PostMessage(bl.WindowHandle, 0x101, (int)MicrosoftVirtualKeys.V, CreateLParam(MicrosoftVirtualKeys.V, false));

    private static int CreateLParam(MicrosoftVirtualKeys key, bool extended = false)
    {
    uint num = MapVirtualKey((uint)key, 0);
    uint num2 = 1 | (num << 0x10);
    if (extended)
    {
    num2 |= 0x1000000;
    }
    return (int)num2;
    }
    Last edited by z0yb3r; 07-05-2014 at 03:44 PM.

Similar Threads

  1. [Visual Basic derp] Send keystroke through SendMessage/PostMessage
    By myojinyahiko in forum WoW Memory Editing
    Replies: 10
    Last Post: 02-04-2013, 08:37 AM
  2. Send keystrokes/clicks to minized window?
    By wootpeng in forum Diablo 3 Memory Editing
    Replies: 16
    Last Post: 06-19-2012, 06:22 AM
  3. [Help][C#] Sending keystrokes to WoW
    By wowhackz0r in forum Programming
    Replies: 13
    Last Post: 11-11-2010, 08:44 PM
  4. How to Send Keystrokes to a DirectX Game in C#?
    By luciferc in forum WoW Memory Editing
    Replies: 19
    Last Post: 10-09-2008, 02:01 AM
  5. Sending keystrokes to AoC window in background
    By Ghazban in forum Age of Conan Exploits|Hacks
    Replies: 1
    Last Post: 07-01-2008, 04:18 AM
All times are GMT -5. The time now is 03:36 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2020 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2020 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search