[1.1.4] IDE: screens seen by sikulix when changing attached monitors --- restart IDE

Asked by matteoa

Hello,
I'm using 1.1.4-SNAPSHOT-#221-2019-03-05_11:49/Windows10.0/Java8(64)1.8.0_191-b12
I run and program it in a portable pc that is normally attached to a secondary screen
I routinely have the need to change the monitor to connect to another monitor with a different resolution.
I observed that when doing this Sikulix often seem as if it doesn't take into account the change of resolution of the monitor, and so sometime cuts the lower part of the screen (seen with matching preview of an image or capturing something from the screen) or see everything magnified.
When "seeing" the screen like this the scripts the parts that looks for images to click etcetc doesn't work anymore...causing some problem when demonstrating something to the bosses...;-)

Restarting the pc fixes everything.
There is a way to refresh the screen resolution seen by Sikulix and sikulix IDE without restarting the pc?
Thanks for the support and for your wonderful tool!!

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
RaiMan
Solved:
Last query:
Last reply:
Revision history for this message
Best RaiMan (raimund-hocke) said :
#1

The monitor setup is evaluated at IDE start.

If you change the monitor setup while the IDE is running, it will not be aware of the changes and will probably show up with strange behaviors.

Restarting the IDE will evaluate the changed setup and run as expected.

If you do not want to restart the IDE for whatever reason:
in an empty tab just run this one-liner:
reset()

this will try to re-evaluate the monitor setup on the fly.
BE AWARE: this is some kind of brute-force and might still leave you with some quirks somewhere.

conclusion: IDE restart is the better option.

Revision history for this message
matteoa (matteoa) said :
#2

Thanks RaiMan, that solved my question.