Post Reply

Forums -> UltraMon™ SDK -> Detached monitor is not exactly detached.
Subramanya N   2008-10-29 15:21
Hi,
I have dual monitor set-up.The secondary monitor is to be used for digital signage.Using the sample VBscript for detached monitor, I was able to to get Windows Media player open and play a video file in full screen mode.but the media player exits fullscreen mode whenever the mouse is clicked on the primary monitor. Any help would be appreciated.Thanks.The script is

Const SHOWSTATE_MAXIMISED = 3

Set indDisp = CreateObject("UltraMon.IndDisp")
indDisp.DetachMonitors(Array(2))

procID = indDisp.DetachedApps.LaunchAndAdd("C:\wmplayer.exe /fullscreen /play C:\clock.avi",2)
Setwnd = CreateObject ("UltraMon.Window")
If wnd.GetAppMainWindow(procId, 0) = True Then
wnd.ShowState = SHOWSTATE_MAXIMIZED
wnd.ApplyChanges 0
End If

MsgBox "Press OK to attach monitor2."
indDisp.AttachMonitors
Christian Studer   2008-10-30 10:43
Make sure you're using a recent version of Windows Media Player, earlier versions (6 if I remember correctly) wouldn't stay in fullscreen mode if they lost the focus.

Christian Studer - www.realtimesoft.com
Forums -> UltraMon™ SDK -> Detached monitor is not exactly detached.

Post Reply