Sign in to follow this  
Followers 0
confucion

move mouse cursor to different screens

12 posts in this topic

Hi, can AutoIt command the mouse cursor to jump to different screens? As a tri-screen user, (video stereo 2.1), it's cumbersome to drag from the furthest right monitor to the furthest left monitor. I can't even imagine how some people can stand using 4 monitors!

Share this post


Link to post
Share on other sites



with more monitors you move the mouse to the left or rigth side of screen and he wipe to the next?

if you do this he shall be wape to the next window , maby you must look with au3info on a other screen what he says ..

sorry i cant test it , i got only 1 ...


-jaenster

Share this post


Link to post
Share on other sites

jaenster has got a point if you move the mouse to 1024:x (screen res 1024*768) you automatically switch to the next screen, but how can you detect which monitor is in use?

maybe (haven't tried it yet but i will later on) you can try using

mousemove (1500, 300); if the screen goes through
mousemove (300, 300)

i gotta try would be nice to know

Share this post


Link to post
Share on other sites

you want detect it ?


-jaenster

Share this post


Link to post
Share on other sites

Just one screen a resolution can mousemove, is not work out resolution!

Look a test code au3

MsgBox(0,"Resolution Real",@DesktopWidth& " x "&@DesktopHeight)

It's maximu your resolution of monitor


Programmer PHP, ASP, CGI, Perl, Delphi, JScript, ......... :)

Share this post


Link to post
Share on other sites

and you can then detect on what desktop you are


-jaenster

Share this post


Link to post
Share on other sites

Yeah thats treu , but i dont know how it works , how autoIT works with more monitors , just ask some mod


-jaenster

Share this post


Link to post
Share on other sites

you can do it via hotkeys

hotkeyset ("a", "leftscreen"); i say its 1st screen
hotkeyset ("b", "middlescreen")
hotkeyset ("c", "rightscreen")

func leftscreen()
mousemove (300, 300)
endfunc

func middlescreen()
mousemove (1300, 300)
endfunc

func rightscreen()
mousemove (2400, 300)
endfunc

this should work, you just have to change the hotkeys as needed

Share this post


Link to post
Share on other sites

Thanks Nuffilein805! Seems like you figured it out. Since you don't use negative values, I'm assuming that the 1st left-most monitor starts with X-axis of 0 and then the 3rd right-most monitor ends with X-axis of 3072 when all 3 monitors are using a resolution of 1024x768?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0