Post Reply

Forums -> UltraMon™ -> Scripts for 8 monitors
Joseph   2015-11-24 10:42
I have Ultramon and I have an 8 monitor set up. I am looking to have web browsers open up in specific windows. I have 4 chrome browsers, 1 IE browser that spans 2 monitors and 1 monitor with firefox. The other monitor runs a program called fonality. Does anyone have scripts to place these with one click of the applications themselves?

Thank you kindly,
Joseph
Christian Studer   2015-11-24 14:16
You could do this with the MultiInstanceFirefox and IeDesktopMaximized scripts, the MultiInstanceFirefox script will also work fine with the current version of Chrome.

You could then use a batch file to launch the scripts.

Let me know if you have any questions about setting this up.

Christian Studer - www.realtimesoft.com
joseph   2015-11-25 07:56
I figured out how to edit the scripts so that I get the correct sites on which monitors but how do I install it in ultramon?
Will I have to run a .bat at start up? Sometimes I am not restarting the machine, sometimes I just shut off the monitors and leave the machine running. When I do that all of the webpages move to the main monitor and I have to put them back in their proper place when I turn the monitors back on.
Christian Studer   2015-11-25 08:45
The easiest solution would probably be a launcher script which first closes existing browser instances, then runs the 3 other scripts. This way you could use the launcher script both at system startup and when you turn on the monitors again.

If you're interested in this let me know and I'll post sample code which does this.

Christian Studer - www.realtimesoft.com
joseph   2015-11-25 09:10
That would be great, thanks!
Christian Studer   2015-11-25 11:22
The following script will terminate running browsers, then run one or more scripts. You'll need to copy the code into a text file with a .vbs extension, and place it into the same folder as the 3 other scripts:

APPS = Array("chrome.exe", "firefox.exe", "iexplore.exe") 'list of application executables which should get terminated SCRIPTS = Array("IeDesktopMaximized.vbs", "MultiInstanceChrome.vbs", "MultiInstanceFirefox.vbs") 'list of scripts which should get launched Const DELAY_SCRIPT_LAUNCH = 3 'number of seconds to wait between terminating and relaunching browsers Set sh = CreateObject("WScript.Shell") Set wnd = CreateObject("UltraMon.Window") For Each w In wnd.GetAppWindows(False) exe = "" exeName = "" On Error Resume Next exe = w.ProcessExe On Error Goto 0 If exe <> "" Then pos = InStrRev(exe, "\") If pos > 0 Then exeName = Mid(exe, pos + 1) End If End If If exeName <> "" Then For i = 0 To UBound(APPS) If StrComp(exeName, APPS(i), 1) = 0 Then w.Close Exit For End If Next End If Next WScript.Sleep DELAY_SCRIPT_LAUNCH * 1000 For i = 0 To UBound(SCRIPTS) sh.Run SCRIPTS(i) Next

Christian Studer - www.realtimesoft.com
Forums -> UltraMon™ -> Scripts for 8 monitors

Post Reply