| View previous topic :: View next topic |
| Author |
Message |
Laughing Man
Joined: 29 Apr 2005 Posts: 84 Location: Maryland
|
Posted: Thu Feb 22, 2007 5:14 am Post subject: Been out of it for a while but dual monitor related. |
|
|
I remember seeing scripts on here that wrapped the monitor in a way where if you went off to the left it would show up on the right. Kinda like going around in Earth. If you kept going West you'd wind up in the same point eventually.
Now that I have a dual monitor it's alot of screen space to cover. So I was wondering if there was a way to create or modify that script so that if I moved the script off my left side of my left monitor it'd show up on the right side of my right monitor.
That or some script that would auto jump the mouse cursor between the two monitors with the press of a keystroke. I'm guessing I could do this with assignments of x,y location points right?
Ideally it'd be the first method though. That way I could also drag applications across that way. _________________ "I thought what I'd do was I'd pretend I was one of those deaf-mutes" ~ Laughing Man - GITS:SAC |
|
| Back to top |
|
 |
jonny
Joined: 13 Nov 2004 Posts: 3004 Location: Minnesota
|
Posted: Thu Feb 22, 2007 5:41 am Post subject: |
|
|
| Quote: | | That or some script that would auto jump the mouse cursor between the two monitors with the press of a keystroke. I'm guessing I could do this with assignments of x,y location points right? |
| Code: | ;Set this to the width of a single screen
ScreenWidth := A_ScreenWidth
Insert::
MouseGetPos X
if (X > ScreenWidth)
MouseMove -%ScreenWidth%,,,R
else
MouseMove %ScreenWidth%,,,R
return |
If this works, it will also allow you to drag windows with it. |
|
| Back to top |
|
 |
Laughing Man
Joined: 29 Apr 2005 Posts: 84 Location: Maryland
|
Posted: Thu Feb 22, 2007 5:47 am Post subject: |
|
|
Thanks for the reply. I replaced what the ; indicated so it looked like this
| Code: |
;Set this to the width of a single screen
ScreenWidth := 1152
Insert::
MouseGetPos X
if (X > ScreenWidth)
MouseMove -%ScreenWidth%,,,R
else
MouseMove %ScreenWidth%,,,R
return
|
And I'm getting an error at line 7. It says "MouseMove" requires that parameter #2 be non-blank. _________________ "I thought what I'd do was I'd pretend I was one of those deaf-mutes" ~ Laughing Man - GITS:SAC |
|
| Back to top |
|
 |
jonny
Joined: 13 Nov 2004 Posts: 3004 Location: Minnesota
|
Posted: Thu Feb 22, 2007 9:06 am Post subject: |
|
|
| That's my bad, I hadn't tested it with only one parameter. Just put 0 in, so they both look (roughly) like this: MouseMove %%,0,,R |
|
| Back to top |
|
 |
Laughing Man
Joined: 29 Apr 2005 Posts: 84 Location: Maryland
|
Posted: Thu Feb 22, 2007 3:44 pm Post subject: |
|
|
Awesome! Thanks for the help. _________________ "I thought what I'd do was I'd pretend I was one of those deaf-mutes" ~ Laughing Man - GITS:SAC |
|
| Back to top |
|
 |
|