I have a laptop, and it comes with a utility to switch between single monitor (undocked) and multi-monitor (docked) operation, so that's great, but it doesn't remember the offset for screen #2. So every time I switch between one display and two displays, I have to go in to the Display control panel and re-set the offset manually, using the mouse. It's time consuming, fairly imprecise and easily forgotten.
Is it possible to create an app that would automatically re-set the screen offset to a specified value? This would be helpful for other laptop users, and probably also for people who frequently change the resolution of any of their multiple monitors.
My laptop's utility lets me specify an app to run after the switch to 2 monitors occurs, and coding snack that could set these values would clean things up nicely. I checked the AHK docs, and I did see some functions in SysGet (GetSys?) that return screen metric info, but I didn't see any way to set these values, so I thought I'd ask the expert. Thanks!








Logged












