Looking for a script to switch control between dual screens

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
floridafraze
Newbie
Posts: 4
Joined: Wed Sep 21, 2005 1:46 pm
Location: Kennedy Space Center

Looking for a script to switch control between dual screens

Post by floridafraze » Tue Aug 08, 2006 4:28 pm

Ideally I'd like to have a script to run in the background, waiting for one of two keystroke sequences....CTRL-1 & CTRL-2, for example, that would move control into either the primary or secondary monitor/screen areas (maybe by just jumping the cursor (hidden) between the two screen areas).

This would simplify running dual presentations (PowerPoint, for example) from a single laptop (I'm using a great little SEE2 adapter from Tritton.com) without having to move the cursor back n' forth between screens (each time running the risk of having the cursor appear in a presentation's view).

Any help/suggestions would be greatly appreciated. Thank you in advance.

floridafraze

User avatar
support
Automation Wizard
Posts: 1450
Joined: Sat Oct 19, 2002 4:38 pm
Location: London
Contact:

Post by support » Tue Aug 08, 2006 5:07 pm

Just use MouseMove to move the mouse to the required position. E.g. a negative X value will move to the left secondary monitor. However, it's not possible to hide the mouse cursor.
MJT Net Support
[email protected]

floridafraze
Newbie
Posts: 4
Joined: Wed Sep 21, 2005 1:46 pm
Location: Kennedy Space Center

Post by floridafraze » Tue Aug 08, 2006 5:24 pm

Yes, I had originally intended to:

GetActiveWindow>Width,height

and intelligently MouseMove accordingly with that info received.

I was just looking for thoughts on script to read/act upon keystroke input
(i.e., CTRL-1 / CTRL-2 or something similar) to carry out that mouse move (which incidently normally doesn't disrupt a PowerPoint presentation/slideshow....'more significant' mouse motion normally is reqd. to make the cursor actually appear.

Thanks
floridafraze

User avatar
Marcus Tettmar
Site Admin
Posts: 7380
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Tue Aug 08, 2006 5:28 pm

Create two scripts. One to move to screen A and another to move to screen B and then assign each a hot key (Macro Properties/Hot Key).
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts