Setting Screen Resolution

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
Tourless
Pro Scripter
Posts: 69
Joined: Wed Jun 14, 2017 1:53 am
Location: NY

Setting Screen Resolution

Post by Tourless » Thu Feb 22, 2024 3:37 pm

Hi Folks.

I have a dedicated machine that runs 90% of my macros, but it's headless (no monitor). With that, windows occasionally and without warning decides to dumb down the resolution to a standard minimum of 1024 X 768. This, of course, messes up all my macros that rely on coorinates to point and click various elements on the screen.

Can MacroScheduler set the screen resolution to let's say 1920 X 1080?

User avatar
Grovkillen
Automation Wizard
Posts: 1131
Joined: Fri Aug 10, 2012 2:38 pm
Location: Bräcke, Sweden
Contact:

Re: Setting Screen Resolution

Post by Grovkillen » Thu Feb 22, 2024 4:12 pm

No but you would probably want to insert a dummy HDMI plug or similar to be sure that the resolution stays the same.
Let>ME=%Script%

Running: 15.0.27
version history

Tourless
Pro Scripter
Posts: 69
Joined: Wed Jun 14, 2017 1:53 am
Location: NY

Re: Setting Screen Resolution

Post by Tourless » Thu Feb 22, 2024 6:32 pm

I don't know why I never thought of that. Good idea, thank you,

User avatar
JRL
Automation Wizard
Posts: 3526
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Re: Setting Screen Resolution

Post by JRL » Thu Feb 22, 2024 7:07 pm

I have a similar issue because I use an 8 port KVM. If the monitor is off or the KVM isn't pointing at a PC as it reboots (think automatic updates) I also drop back to 1990's resolution. Its really just an irritation, None of my scripts will fail, but if anyone has a solution I'd like to hear it.

jonathangoss
Newbie
Posts: 7
Joined: Fri Sep 07, 2012 8:41 am
Location: Bournemouth

Re: Setting Screen Resolution

Post by jonathangoss » Thu Feb 29, 2024 2:59 pm

hi there
we include this in our scripts:

Macro code is:
Let>RP_WAIT=1
Run>"%SCRIPT_DIR%\qres" /x:1920 /y:1080
Let>RP_WAIT=0

using qres.exe
Hope that helps!
Jonathan

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts