Post Reply

Forums -> UltraMon™ -> Can UltraMon run a script when switching profiles?
sofakng   2011-07-08 03:50
I'm running Windows 7 and I'd like to have two display profiles: "Office" and "Living Room"

When I'm in the office, I want my two monitors connected via DVI to be enabled and sound to come through my speakers (3.5mm jacks).

When I'm in the living room, I want my HDMI monitor enabled (TV) and sound to play through the HDMI cable.

There is a tool (NirCmd.exe) that can switch my audio device so can UltraMon run a custom script when I switch profiles?
Christian Studer   2011-07-08 09:08
Not directly, but you could use a batch file to run NirCmd.exe as well as apply the display profile.

To apply the display profile from the batch file, you would need to add the following command:

"%ProgramFiles%\UltraMon\UltraMonShortcuts.exe" /l "C:\Users\<username>\AppData\Roaming\Realtime Soft\UltraMon\<version>\Profiles\<profile>.umprofile"

Christian Studer - www.realtimesoft.com
sofakng   2011-07-10 22:38
That would work... thanks!

One more question, I'm a minimalist and was actually hoping for a command-line to enable/disable monitors so that I wouldn't need UltraMon.

I'm not at all saying that UltraMon is bad in any way but I only want/need the monitor profile capability.

Can I disable the second monitor taskbar and all other features of UltraMon except for the display profile feature? I'm afraid that UltraMon will still have many hooks into the system even with all of the features disabled...

(I'm actually fooling around with the Win32 API for ChangeDisplaySettingsEx but am having some issues with the GTX400 series cards and the multiple monitors per display adapter)
Christian Studer   2011-07-11 09:42
That's no problem, to do this disable the following options:

- General tab: 'enable moving of maximized windows using the mouse' and 'preserve position of desktop icons'

- Smart Taskbar tab: 'use Smart Taskbar'

- Buttons and Menu Commands tab: 'add Move Window button', 'add Maximize to Desktop button', 'add Move Window command', 'add Maximize to Desktop command'

- Profiles and Shortcuts tab: 'enable shortcut extensions'

This way UltraMon will only add the system tray icon, no hooks will get installed.

If you have your own application, you could also use the UltraMon COM objects to make display configuration changes, see UltraMon Help > Scripting for more on this. I'm currently working on an updated SDK which will have full documentation for using the COM objects from C++, C#, VB and VBScript.

Christian Studer - www.realtimesoft.com
sofakng   2011-07-12 08:00
Thanks!

So far UltraMon is working really nice!

One last question - do I need to leave shortcut extensions enabled for hot-keys? (ie. shift-f12 to switch my display profile, etc)
Christian Studer   2011-07-12 08:14
That's not necessary, this option only controls whether UltraMon adds the UltraMon - Window and UltraMon - Display tabs to the properties of application shortcuts.

Christian Studer - www.realtimesoft.com
Forums -> UltraMon™ -> Can UltraMon run a script when switching profiles?

Post Reply