| View previous topic :: View next topic |
| Author |
Message |
dnsi0 I post too much
Reputation: 0
Joined: 04 Jan 2007 Posts: 2674
|
Posted: Sat Jun 21, 2008 9:57 am Post subject: Moving Mouse With PostMessageA? |
|
|
| So is it possible to move the "Invisible mouse in a minimized application and click on something but not moving the actual mouse? I know that you can send a clikc with PostMessageA but can you move the mouse to say where the click is without moving the real mouse.
|
|
| Back to top |
|
 |
DeletedUser14087 I post too much
Reputation: 2
Joined: 21 Jun 2006 Posts: 3069
|
Posted: Sat Jun 21, 2008 10:03 am Post subject: |
|
|
It's impossible to use minimized mouse events, even with PostMessage, and about your question.
If you're using C/++, use MAKELPARAM @ lParam.
If you're using Delphi, use MAKELONG@ lParam.
Example:
PostMessage(.., MAKELPARAM(P.X,P.Y);
|
|
| Back to top |
|
 |
lurc Grandmaster Cheater Supreme
Reputation: 2
Joined: 13 Nov 2006 Posts: 1900
|
Posted: Sat Jun 21, 2008 10:09 am Post subject: |
|
|
Sending a click - WM_LBUTTONDOWN / WM_LBUTTONUP (MSDN)
Moving the mouse - WM_MOUSEMOVE (MSDN)
You can try using those, but im not sure if they will work.
_________________
|
|
| Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8588 Location: 127.0.0.1
|
Posted: Sat Jun 21, 2008 10:42 am Post subject: |
|
|
If the game uses DirectInput you can hook the mouse interface and move the in-game mouse with that.
_________________
- Retired. |
|
| Back to top |
|
 |
|