Vision static windowed mode

Is it possible to launch vision in windowed mode without allowing the user to move the window?

We launch our HMI with 2 programs at the same time. Part of the monitor is assigned to one program and the other part needs to be assigned to Vision, preferably without overlapping the two.

No, that would require an external, custom desktop. Tiling window managers for Linux likely could do this.

Thanks for the quick response. We're using Windows, if anyone has a solution for Windows, that would be great.

Something something AutoHotKey? Would rely on AHK being installed and running (or being launched by the Vision client) on each client computer.

1 Like

It is indeed doable from AHK. Thanks for that idea.
I run ignition in full screen mode and then execute this AHK script:

WinSetRegion "0-0 3840-0 3840-162 3180-162 3180-2000 0-2000", "ahk_class SunAwtFrame"

That causes the window to show up like this:

3 Likes

I found another way to do this within Ignition itself.
In the client startup script add.

from java.awt.Window import getWindows
from java.awt.geom import GeneralPath

window1 = getWindows()
window2 = window1[0]

ourShape = GeneralPath()
ourShape.moveTo(0,0)
ourShape.lineTo(1920,0)
ourShape.lineTo(1920,81)
ourShape.lineTo(1590,81)
ourShape.lineTo(1590,1063)
ourShape.lineTo(0,1063)
ourShape.closePath()
window2.setShape(ourShape)
1 Like