The script works.

When you install mIRC, it sets the width to 1920 from the //echo

I installed Windows 8 and does the same with DisplayPort, when you turn off the monitor, Windows disconnects it and changes the resolution to 1024x768, and changes back to 2560x1440 when you turn the monitor back on.

I have ordered a new graphics card to get off DisplayPort.