duyminh1998 / pycmo

Command Modern Operations Learning Environment
Other
54 stars 24 forks source link

Cannot enter scenario on computers with smaller screens #62

Open duyminh1998 opened 10 months ago

duyminh1998 commented 10 months ago

Describe the bug MoveMouseEnterScenario.ps1 does not work on computers with a screen resolution smaller than 1920x1080 (e.g. a laptop). Thus, we cannot enter the scenario when we restart

To Reproduce Steps to reproduce the behavior:

  1. Run PyCMO on a laptop with a screen size smaller than 1920x1080.
  2. See error

Expected behavior We can use the MoveMouseEnterScenario.ps1 script on any system (regardless of screen size) to enter the scenario.

Screenshots If applicable, add screenshots to help explain your problem.

Additional context As a temporary fix, users can edit lines 78-79 of the MoveMouseEnterScenario.ps1 script:

$MOVEMENTSIZEY = 600
$MOVEMENTSIZEX = 500

These values are the xy distance from the top of the "Side selection and briefing" to the "Enter scenario" button.