Giter Club home page Giter Club logo

Comments (15)

danbulant avatar danbulant commented on May 19, 2024 1

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.

littledivy avatar littledivy commented on May 19, 2024 1

Here we go
https://github.com/divy-work/autopilot-deno/releases/tag/v0.0.8

from autopilot-deno.

littledivy avatar littledivy commented on May 19, 2024

@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.

danbulant avatar danbulant commented on May 19, 2024

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.

tionis avatar tionis commented on May 19, 2024

I can verify this. This is also in line with the behaviour I experienced with other automation libraries

from autopilot-deno.

danbulant avatar danbulant commented on May 19, 2024

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.

littledivy avatar littledivy commented on May 19, 2024

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.

littledivy avatar littledivy commented on May 19, 2024

Alright. So I guess there's no problem with Dual screens supporting autopilot. Just detecting it is an issue.

from autopilot-deno.

danbulant avatar danbulant commented on May 19, 2024

A nice think would be to have a method return array of screens (like with name, size etc)

from autopilot-deno.

littledivy avatar littledivy commented on May 19, 2024

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.

danbulant avatar danbulant commented on May 19, 2024

I know you can get that info on linux from xrandr (this works almost on every distro)

from autopilot-deno.

littledivy avatar littledivy commented on May 19, 2024

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.

littledivy avatar littledivy commented on May 19, 2024

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.

littledivy avatar littledivy commented on May 19, 2024

Now, the challenge is to make it cross-platform. Any suggestions and PRs are welcomed.

from autopilot-deno.

littledivy avatar littledivy commented on May 19, 2024

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)

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.