Jump to content

Python Mouse And Pixel Recognition Module


danielbrthwt
 Share

Recommended Posts

I'm looking for a module that would allow me to write a program in python that can move the cursor and also left click.

I'm also looking for a module that can tell the color of pixels at specified locations

Can anyone help ?

Link to comment
Share on other sites

Sure, I'll help you write an aim-bot in python! </sarcasm>

But seriously, you're gonna have to scrape the screen, run the image through processing to put the pixels in an array, I'd recommend chunking it to lighten the load. After that you can search each array for whatever it is you're looking for.

In regards to moving the mouse, not sure. You could generate input and dump it through the mouse port I'm sure. Would be easier on Linux than Windows I would assume, but I haven't looked into it. Outside of that, I know of no modules for moving the mouse to position x,y and clicking.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...