; I use an autohiding bar on all of the computers I use and it appears
; in the same location on each. So if I use a remote desktop
; connection in full screen mode, bumping the side of the screen shows
; both bars with the local bar over the top of the remote bar, rendering
; the bar on the remote computer unusable. (Changing the Remote Desktop
; to non-fullscreen is one workaround, but who wants to do that
; every time?)
;
; This script disables the bar named "Bar" on the local computer
; while connected to a remote computer via Remote Desktop, which
; allows the bar on the remote desktop to be usable.
;
; Add an item to PowerPro's "monitor" command list that runs this
; script. Enable it in:
; Command Lists > Setup > Special Lists > "Run monitor..."
;
static disableBar
if (activewindow("*Remote Desktop*")) do
if ( not (disableBar) ) do
disableBar = 1
Bar.Close("Bar")
endif
else
if (disableBar eq 1) do
disableBar = 0
Bar.Show("Bar")
; the Remote Desktop clipboard seems to interfere with the
clipboard chain
Clip.Reattach
endif
endif