Sign in to follow this  
Tispe

Mouse Input Synthesizes / Emulation

Recommended Posts

Hi

Just for fun I thought I make a simple bot for a game I am developing. I have experimented with SendInput() and PostMessage(). Does SendInput work with RAW input and DirectInput also?

How can I detect if a user is "botting" this way?

Share this post


Link to post
Share on other sites
[quote]
How can I detect if a user is "botting" this way?
[/quote]
You cannot do this with 100% accuracy. The user could hook / modify the kernel, and you will never know.

I am not a Win32 programmer, so I cannot answer your other question.

Share this post


Link to post
Share on other sites
I don't think it works with direct input, but you can set it up to if you want to.

[quote name='iLoveGameProgramming' timestamp='1339516104' post='4948521']
Could you explain what library you'r using or language?if c++, you can try SDL llibrary, it detects mouse movement, position, and button clicks [img]http://public.gamedev.net//public/style_emoticons/default/tongue.png[/img]
[/quote]
LOL

Share this post


Link to post
Share on other sites
I'm not sure if this is legal but you could scan processes in search of ones utilizing SetCursorPos(), SetPhysicalCursorPos(), or SendMessage(WM_MOUSEMOVE)... The WM_MOUSEMOVE message would be the hardest to extract.

If you implemented this with a user-opted approach, like enabling punkbuster and being able to play on such servers (where users must give permission for the detection) then I'm sure that would be fine.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this