PDA

View Full Version : CSS Mouse hooking



Garfield
04-21-2009, 09:39 AM
Hello,

how can i set the cursorpos in a mouse gui without using detours? I think detours is detected, isn't it?

Yours faithfully,
Garfield

Unleased
04-21-2009, 10:00 AM
MS Detours is not detected if you mean that.

Hook SetCursorPos and GetCursorPos.

Garfield
04-21-2009, 10:13 AM
yes i mean ms detours! Thank you.

b2k5
04-21-2009, 10:50 AM
better do a vmt hook on vgui::input()->GetCursorPos

.D
05-24-2009, 01:54 PM
MS Detours is not detected if you mean that.

Hook SetCursorPos and GetCursorPos.

There's no need to do that, just call GetCursorPos and access the POINT struct.

SyntaxX
05-24-2009, 02:26 PM
There's no need to do that, just call GetCursorPos and access the POINT struct.

nope, the mouse will stay in the middle of the crosshair.
just do it like b2k5

Greetz

v3n0m4
05-24-2009, 09:18 PM
well then handle the mouse position as you do with the keyboard(same place),
and let steam gameoverlay freezing the mouse,
just open the ingame chat to make sure you have the mouse frooze...

s0beit
05-26-2009, 05:43 AM
better do a vmt hook on vgui::input()->GetCursorPos

That, or hook SetViewangles in the engine, and do the mouse that way (and use a simple SetWindowLong hook to handle the mouse when your player is not alive, because your angles are set all willy-nilly when you are not alive)

http://forum.gamedeception.net/showthread.php?t=365&highlight=gui+mouse