41333members
184398posts

Check number of configured heads in mimic script

Highlighted
Ensign

Check number of configured heads in mimic script

I have a navigation script that is failing on a particular ViewX client because the script is calling App.OpenWindowOnHead on Head 3, but that particular client only has 2 heads configured (one less monitor than all the other clients).

 

I'm trying to get around it by getting the script to return the max number of heads configured on the client and fall back to using that max number if the desired head number is greater than it.

 

I thought it would be a simple thing to do but I cannot find such a function at all in the help files.

 

Can what I proposed be done or is there another way to get around this issue?

1 REPLY 1
Highlighted
Ensign

Re: Check number of configured heads in mimic script

This should do it

 

On Error Resume Next

OpenOnHead3


If Err.Number <> 0 Then
OpenOnHead2
End IF