Before :
After :
One-press “scanning mode” on an XP-Pen pen display (Revo Metro)
If you run Revo Metro on an XP-Pen pen display as a secondary screen, you’ve probably hit this: the app’s interface only lays out correctly on your primary monitor. Drop it on the pen display and panels overlap, buttons get clipped. And the XP-Pen driver always maps the pen to whatever monitor is primary — so making the pen display primary fixes it, but then your whole desktop lives on the little tablet, and every new window opens there.
I got tired of shuffling primaries by hand, so I wrote an AutoHotkey script that does the whole dance in one shot. I’m sharing it in case it helps other reverse-engineering / sculpting folks with the same setup.
What it does — one trigger and:
- makes the pen display primary,
- launches the app so it’s born correct on that screen,
- flips your main monitor back to primary,
- re-pins the pen to the tablet anyway,
- leaves you with: main monitor primary, pen active on the tablet, app perfectly laid out. New windows still open on your main screen where they belong.
The tablet-button part (the good bit)
Bind it to a key on the pen display itself. Press one button on the tablet → Revo Metro opens ready to work, pen live on it, no fiddling. A real “enter scanning mode” button.
What you need
- AutoHotkey v2 — https://www.autohotkey.com/
- MultiMonitorTool (NirSoft), v2.15+ — Enable/disable/configure multiple monitors on Windows (needed to switch the primary monitor; older builds fail on Win11 24H2)
- the script itself — link at the bottom of this post
Setup
A few minutes: fill in your monitor IDs and your tablet’s mapping values, then assign a pen/tablet button to run it. Everything — the why, the how, and step-by-step setup — is documented in the header of the script itself, so read that first.
Good to know
- Any display change while it runs (monitor sleep, remote desktop, resolution change) resets the pen to the primary — just press the button again.
- One quick driver restart per launch (tray icon blinks, pen drops ~1-2 s).
- It edits only the pen-mapping line and keeps a timestamped backup of your driver config, so your button/pressure/calibration settings are untouched.
The script
Full source, with all the setup docs in the header:
One-press launcher for Revo Metro on an XP-Pen pen display · GitHub
Open it, click Raw, and save as pen-display-launcher.ahk (the Raw view copies cleanly — no forum reformatting).
Tested on Windows 11 24H2, Artist 13 (2nd Gen), two monitors + one pen display. Adapt the config block to your own kit. Questions welcome.

