Comments (7)
@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.
Thanks for the tip, I will check it out
from enigo.
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.
Has anyone investigated this yet? DirectInput support would be extremely helpful.
from enigo.
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.
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.
Can you give it a try and confirm if the issue was fixed for you?
from enigo.
Related Issues (20)
- Win: Is it necessary to set the MessageExtraInfo? HOT 1
- win: Use an array in `SendInput` to get rid of sleep HOT 2
- In some games, special keys can't be triggered HOT 13
- Reading key presses HOT 4
- win: Check if alt-gr works
- character sequence manual delay HOT 3
- Inconsistent number of newlines produced by `\n` in `key_sequence` HOT 1
- Is EnigoSettings Unavailable on Windows HOT 2
- Volume up / down doesn't work on MacOS HOT 6
- macOS: Use objc2 instead of objc HOT 3
- Invoking multiple keys at the same time does not seem to register HOT 4
- Selecting text isn't working HOT 3
- `text` seems to miss certain characters, consistently HOT 12
- Support BSDs HOT 4
- State of 0.2 releases HOT 6
- Mouse moves to the wrong coordinates HOT 4
- Choose between xdo and wayland at runtime HOT 1
- Doesn't work as expected in simulation “Ctrl+C" HOT 2
- Screenshot under window does not work HOT 1
- Special characters are not working with ShiftKey
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from enigo.