Post Reply

Forums -> UltraMon™ -> script control of mirroring
Ken Schafer   2002-11-15 02:10
We have a 4 monitor setup in a conference room that needs to be set up in various configurations, depending on the the presentation. I'd like to set up scripts or profiles for each configuration, so that the less technically savvy users won't have to think, just click the appropriate icon, and they are all set. I can't seem to figure out how to preconfigure the mirroring options (ie, profile A would enable monitor 1 and 2. Profile B would enable monitors 1,2 and 3, and mirror monitor 1 on monitor 3, etc).

Any ideas?

Thanks!
Christian Studer   2002-11-15 02:47
There is no direct way to do this at the moment, but it can be done with a batch file.

The mirror settings are stored in the registry, under the key 'HKEY_CURRENT_USER\Software\Realtime Soft\UltraMon\Mirroring'. For each configuration you want to use, configure the settings using the mirror settings dialog, click OK to apply them, then export the mirroring registry key to a .reg file (regedit.exe, File\Export menu option).

In the batch file, you can then first load the display profile you want to use, load the mirroring settings, then start mirroring:

d:
cd "\program files\ultramon"
start /wait ultramonshortcuts.exe /l D:\Documents and Settings\Christian\...\MyDisplayProfile.umprofile
start /wait %windir%\regedit.exe /s "d:\temp\MyMirrorConfig.reg"
ummirrorclient.exe /start


The first two lines change to the UltraMon directory. The 3rd line applies the display profile, the 4th line loads the mirroring configuration to the registry, and the last line starts mirroring.

I guess you would like to be able to set mirror settings directly in a display profile? I'll consider this for one of the next releases.

Christian Studer - www.realtimesoft.com
Ken Schafer   2003-05-15 02:45
Is there a way to control the mirroring programatically? I've looked through the SDK but I can't locate any references to the mirroring options.

Thanks!
-Ken
Christian Studer   2003-05-15 10:53
There is no API for mirroring at the moment. For command-line options for UMMirrorClient.exe, see Help > Scripting > Command-line arguments.

BTW, mirroring isn't included in the Developer Edition.

The monitor preview feature can be controlled fully from the command line, using the /w option.

Christian Studer - www.realtimesoft.com
Ken Schafer   2003-05-16 02:48
OK, so the best route would be to sit at the machine, setup the various combinations, save the profile and export the reg key. The setup a batch file for each configuration as detailed above. Then have the user run the appropriate batch file for whatever config they wish.
Phew!
Ken Schafer   2003-05-16 02:49
Incidentally, this is the best support I've ever seen for a piece of software... THANKS!
Christian Studer   2003-05-16 11:25
Yes, unfortunately .reg and .bat files is the only solution at the moment.

I will most likely add some support for storing mirroring configurations in a future release, either by adding mirroring options to display profiles or by adding support for saving mirroring configurations to a file.

Christian Studer - www.realtimesoft.com
Michael   2011-06-11 18:45
The .reg key seems a bit different in the latest files. Was the "adding mirroring options to display profiles" feature ever implemented, or is the .reg & .bat method still the only choice?
Christian Studer   2011-06-12 10:23
Hasn't been added yet. Mirroring settings are now stored under HKEY_CURRENT_USER\Software\Realtime Soft\UltraMon\<version>\Mirroring, and could also be manipulated directly from a script.

What are you trying to do?

Christian Studer - www.realtimesoft.com
Michael   2011-06-12 16:32
I want to run my monitor at 1920x1200 and have my HDMI connected amp on for the sound. I don't care what's on the secondary monitor, but I need it enabled for audio. I use mirroring so my cursor doesn't disappear onto the other 'invisible' extended desktop.

My monitor does 1920x1200, but my amp only reports 1920x1080, so when I try to clone it in hardware with the video card, it won't go above 1080p.

My way around this limitation is to use ultramon's mirroring which lets you clone 1920x1200.

When I do use the amp for video on the secondary monitor, I disable mirroring and disable the primary display.

So:
1200p with mirroring on D1/D2
720p with mirroring off D2

I've made two profiles with hotkeys, but the mirroring isn't remembered for each profile. I hope that makes sense.

Perhaps there's a way to clone D1 in hardware that I'm unaware of, which would negate the need for remembered mirror states.
Cheers.
Christian Studer   2011-06-13 09:00
There's a better solution for this, you could either tell UltraMon to ignore the second monitor, or position it so that you can't accidentally move the mouse to it.

To ignore the monitor, go to UltraMon Options > Ignored Monitors, check 'ignore this monitor' and 'ignore enabled monitors'. This way most UltraMon features are disabled because UltraMon only sees a single monitor, and UltraMon will prevent the mouse and applications from getting moved to the second monitor.

The other option would be to change the monitor arrangement via UltraMon menu > Display Settings. If you move the second monitor to the right and below the primary, so that it only touches the primary monitor in the primary's bottom-right corner, the mouse will only get moved to the second monitor if you move it through the bottom-right corner of the primary.

I would recommend testing both solutions, once you know which works best for you let me know and I'll send you a script which switches between the two configurations.

Christian Studer - www.realtimesoft.com
Michael   2011-06-14 14:42
"To ignore the monitor, go to UltraMon Options > Ignored Monitors, check 'ignore this monitor' and 'ignore enabled monitors'."

I found this to be the best option as I seem to use the corners to automatically 'brake' my mouse movement when heading for the show desktop corner, My Computer, Start and Close Window corners.

I'd love a script to automate the process, thank you, as I'm having trouble with Windows and icons resizing when ignoring/enabling the 2nd display.
Christian Studer   2011-06-16 00:57
I've sent you a script which does this by e-mail, SwitchConfig.vbs.

What kind of issues did you have with the icons? On my system the icons got moved to the new primary monitor automatically, I tested on 64-bit Windows 7.

Christian Studer - www.realtimesoft.com
Forums -> UltraMon™ -> script control of mirroring

Post Reply