How to send a WM_LBUTTONDOWN to another window

Discussion in 'C++' started by CodyOebel, Sep 8, 2010.

  1. CodyOebel

    CodyOebel New Member

    Joined:
    Sep 8, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Ok here is what I am doing! I got a game that I am hacking\creating auto healing macro. *I am using DEVC++ by BloodShed \ Also have CodeBlocks and Visual c++
    *Using windows 32 API framework

    I understand some basics of windows API, and getting handles, and device contexts and so forth. What I am trying to do is the following.

    - Grab current coordinates of the mouse in the game window which I have the hwnd to.
    - Send a mouse click to those coordinates, and if possible send a mouse click to those coordinates without the mouse having to actually go to those coordinates on the games screen.



    PROBLEMS: The issue I am finding is no mouse functions to send to an exact coordinate. If at all possible I would like a mouse click to be sent at a particular coordinate without the mouse on that window actually moving to the coordinate.


    Any help would be appreciated!
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice