Comments (15)
moveMouse works correctly, there's no need for negative values since the position is always positive.
I'm on Debian if that matters
from autopilot-deno.
Here we go
https://github.com/divy-work/autopilot-deno/releases/tag/v0.0.8
from autopilot-deno.
@tionis This is something I would want to implement. It would be hard for me to implement this as I don't use multi-displays. Although, I think .screenSize
should give the size of both the screens.
Could you try .screenSize
in a multi display env?
from autopilot-deno.
it returns the complete size - like if you made a screenshot of all screens at once at just got the size from it
from autopilot-deno.
I can verify this. This is also in line with the behaviour I experienced with other automation libraries
from autopilot-deno.
I think that's just how it was made. You would probably need to implement a different approach per system as I think win and linux will have a different system (in linux, you could probably just read xrandr config, don't know about windows)
from autopilot-deno.
Could you confirm moveMouse
on a multi display env? (Try setting negative values)
It's hard for me to support dual screen as I don't use them. Any PR is appreciated :)
from autopilot-deno.
Alright. So I guess there's no problem with Dual screens supporting autopilot. Just detecting it is an issue.
from autopilot-deno.
A nice think would be to have a method return array of screens (like with name, size etc)
from autopilot-deno.
But we don't actually have a way to do that. The low level C libs used don't provide that information.
from autopilot-deno.
I know you can get that info on linux from xrandr
(this works almost on every distro)
from autopilot-deno.
https://github.com/greshake/i3status-rust/blob/master/src/blocks/xrandr.rs
Yes! I think we could do something similar as here
from autopilot-deno.
So I've used xrandr
to get the number of monitors (in Linux).
For Win and Mac, It returns 1.
pilot.getMonitors();
This will be available in the next release.
from autopilot-deno.
Now, the challenge is to make it cross-platform. Any suggestions and PRs are welcomed.
from autopilot-deno.
https://github.com/divy-work/autopilot-deno/releases/tag/v0.1.1 makes it cross-platform (hopefully). It's quite unstable and would require to cross-check from Windows and Mac users. Closing this issue as the feature is implemented
from autopilot-deno.
Related Issues (20)
- CACHE env var is ignored HOT 2
- Can't start autopilot under windows HOT 11
- Cross: nothing happens for some programs HOT 2
- Benchmarks should be fair HOT 2
- A new logo HOT 1
- core: make all ops async
- compatibility with deno v1.3
- tests: integration tests HOT 1
- core: split into crates
- Update docs for 0.2.0 HOT 1
- Doesn't work in Deno 1.4.1 HOT 4
- Hotkey support HOT 6
- Can't type single quote symbol
- Question: Doesn't it support windows system? HOT 5
- core.setAsyncHandler is not a function HOT 2
- FFI HOT 2
- keyboard && mouse listener
- Modifier keys don't really seem to work
- `Uncaught SyntaxError: Identifier 'path1' has already been declared` when running bundled/compiled code (upstream) HOT 2
- Error at importing Autopilot with M1 Mac
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 autopilot-deno.