Dismiss Notice
Want to Shorten Your Long URL? Check out our sister website Tiniurl to solve your needs!

[SOLVED] Simulating mouse click on Direct Input

Discussion in 'C/C++' started by toxxic458, Jan 8, 2016.

  1. toxxic458

    toxxic458

    Messages:
    34
    Likes Received:
    6
    Joined:
    Jan 2, 2016
    Hello,

    I'm having a problem with sending a mouse click to a D3D9 window which uses DirectInput for mouse and keyboard access.

    I've tried:
    Postmessage
    Sendmessage
    SendInput

    Now I've read that SendInput will not work unless you provide a scan code, but I have no idea how to send mouse input using that (only keyboard input).

    Any help will be appreciated.

    Thanks in advance
     
  2. ARH.

    ARH. ✮ Moderator | Developer of ARH Modz ✮ Staff Member GzP Underground

    Messages:
    463
    Likes Received:
    13
    Joined:
    Dec 16, 2010
    Hello!

    You can try hooking the DInput Module within the game client.

    Just scan when you click the mouse and when you unclick.

    You should find a static address.

    But I suppose that depends on what game you are trying to simulate the mouse click in.
     

Share This Page