Post Reply

Forums -> UltraMon™ -> Execute Script when switching from Single to Dual monitor Setup
ironhead65   2010-08-09 23:58
I have been using UltraMon for about 3 years. Love it!

I have a Dual Monitor setup.
I also use remote desktop.
When I use remote desktop Windows Forces my PC to a single monitor mode. UltraMon "knows" that I am now in a single screen mode (indicated by the Icon). When I then re-log in locally, UltraMon is set back to Dual Monitor mode.

Can I have UltraMon execute a script when it is switching? I found that in order to have TaskbarShuffle work properly with the "second" UltraMon taskbar each time I switch back and forth, I need to close and restart TaskbarShuffle after I am in the next configuration state. I would like this to be done automatically (scripted).

It seems like I'm missing something, as UltraMon KNOWS what mode it is in, automatically, so, I think it's possible to have UltraMon execute a script based on that.

If not, I know I can hack something that can poll UltraMon's status, but that seems cheesy, as I'll have an infinite loop of just looking for a change, just to close and reopen taskbarshuffle.exe.

Any incite is appreciated!
Christian Studer   2010-08-10 08:55
That's not supported, currently there is no support for running scripts in response to display configuration changes.

A script which checks the number of enabled monitors periodically would work fine, but I agree that this isn't an ideal solution (would use almost no CPU/memory though). If you want to do this, you can use the System object's NumActiveMonitors property to check how many monitors are enabled. See UltraMon Help > Scripting for more on this.

Christian Studer - www.realtimesoft.com
ironhead65   2010-08-11 01:08
Done. Is this something I can "give" to the community? Or should I just chalk it up to a "niche" need?

Thanks!
Christian Studer   2010-08-11 08:21
You can send me the script to support@realtimesoft.com, I'll be happy to add it to the scripts page.

Christian Studer - www.realtimesoft.com
ironhead65   2010-08-18 05:28
ok, so, I've cleaned up the script, I just need to figure out how to cleanup the notification icons, as when you kill taskbar shuffle, it leaves an icon behind.

I think I am on the trail to getting a solution, so When that's ready, I'll re-send to your account for submission.

Thanks!
Forums -> UltraMon™ -> Execute Script when switching from Single to Dual monitor Setup

Post Reply