Giter VIP home page Giter VIP logo

Comments (7)

Multirious avatar Multirious commented on June 18, 2024 1

@Iamhere345 and any other people that want a simple script to make this work quick,
yall can take a look at my little code here.
Some significant functions you will find is mouse_move_to and any other variant of it. They should be working.
May need a little bit of modification because it's part of a project I'm working on, kemuler.
If you have the time, you could also check that out!

Update:
Here's a standalone code snippet

from enigo.

pentamassiv avatar pentamassiv commented on June 18, 2024

Thanks for the tip, I will check it out

from enigo.

Multirious avatar Multirious commented on June 18, 2024

Also, the simulated mouse move is a bit weird.
I have a work around where I used SetCursorPos to move the mouse to my expected position and use this MOUSEEVENTF to move x by -1 and 1 so the game actually detect the mouse input in the right position.

I haven't do things around with keyboard input.

My (experimental) crate has a switchable input back end. So, I just change around how do I want my input to be simulated which is convenient. ( Enigo is the default ☜(゚ヮ゚☜) )

from enigo.

Iamhere345 avatar Iamhere345 commented on June 18, 2024

Has anyone investigated this yet? DirectInput support would be extremely helpful.

from enigo.

Multirious avatar Multirious commented on June 18, 2024

I wonder how AutoHotKey and AutoIt did it.
I've tested my above code; it's good but not good enough. Some game is, still, doesn't want to detect the input.

from enigo.

pentamassiv avatar pentamassiv commented on June 18, 2024

I personally don't use Windows so I don't play any games on it. Could you tell me, which games did not work without using MOUSEEVENTF_MOVE, which games started working when using it and which games still do not work? Preferably free games/programs so that I can test them myself in a VM.

from enigo.

pentamassiv avatar pentamassiv commented on June 18, 2024

Can you give it a try and confirm if the issue was fixed for you?

from enigo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.