confucion Posted February 6, 2006 Posted February 6, 2006 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!
jaenster Posted February 6, 2006 Posted February 6, 2006 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
Nuffilein805 Posted February 6, 2006 Posted February 6, 2006 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 my little chatmy little encryption toolmy little hidermy unsafe clickbot
Nuffilein805 Posted February 6, 2006 Posted February 6, 2006 hey, this really works my res: 1024:768 if i move to 1025:x i am on the second screen, but only if my second screen is to the right gotta try it with left side tried it: if its on the left side use negative values to go to the other screen my little chatmy little encryption toolmy little hidermy unsafe clickbot
Sandro Alvares Posted February 6, 2006 Posted February 6, 2006 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, ......... :)
jaenster Posted February 6, 2006 Posted February 6, 2006 and you can then detect on what desktop you are -jaenster
Nuffilein805 Posted February 6, 2006 Posted February 6, 2006 maybe you have to do some calculating, but it works if you use values higher or lower your usual screen res works as well if your 2nd screen is above or below the other just change the y-value my little chatmy little encryption toolmy little hidermy unsafe clickbot
jaenster Posted February 6, 2006 Posted February 6, 2006 Yeah thats treu , but i dont know how it works , how autoIT works with more monitors , just ask some mod -jaenster
Nuffilein805 Posted February 6, 2006 Posted February 6, 2006 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 my little chatmy little encryption toolmy little hidermy unsafe clickbot
confucion Posted February 6, 2006 Author Posted February 6, 2006 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?
Nuffilein805 Posted February 6, 2006 Posted February 6, 2006 yes, just tried it this way and it works fine glad i could help my little chatmy little encryption toolmy little hidermy unsafe clickbot
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now