Using VM's: Get ScreenResolution when no monitor is present --- not possible

Asked by Chetan on 2021-02-23

we are currently using logInfo(showMonitors()) to get the resolution
however when we run our test on vms then no monitor is attached and we are not able to get the resolution with ShowMonitors() as it returns empty
is there a way to get the resolution of vm?

Usage:
this would help us in getting resolution as per the vm. once we have it we can set the same on our laptop and then take screenshot as test teams does not have access to the vms

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
2021-02-23
Last reply:
2021-02-24
RaiMan (raimund-hocke) said : #1

You have to create some own command script or program, that evaluates the VM's resolution and run it from within a SikuliX script.

Can you help with this problem?

Provide an answer of your own, or ask Chetan for more information if necessary.

To post a message you must log in.