AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Been out of it for a while but dual monitor related.

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Laughing Man



Joined: 29 Apr 2005
Posts: 84
Location: Maryland

PostPosted: Thu Feb 22, 2007 5:14 am    Post subject: Been out of it for a while but dual monitor related. Reply with quote

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
View user's profile Send private message Yahoo Messenger
jonny



Joined: 13 Nov 2004
Posts: 3004
Location: Minnesota

PostPosted: Thu Feb 22, 2007 5:41 am    Post subject: Reply with quote

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
View user's profile Send private message
Laughing Man



Joined: 29 Apr 2005
Posts: 84
Location: Maryland

PostPosted: Thu Feb 22, 2007 5:47 am    Post subject: Reply with quote

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
View user's profile Send private message Yahoo Messenger
jonny



Joined: 13 Nov 2004
Posts: 3004
Location: Minnesota

PostPosted: Thu Feb 22, 2007 9:06 am    Post subject: Reply with quote

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
View user's profile Send private message
Laughing Man



Joined: 29 Apr 2005
Posts: 84
Location: Maryland

PostPosted: Thu Feb 22, 2007 3:44 pm    Post subject: Reply with quote

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
View user's profile Send private message Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group