Jump to content
  • Advertisement
Sign in to follow this  
Tispe

Mouse Input Synthesizes / Emulation

This topic is 2223 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement

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.


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 tongue.png

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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!