PxPlus User Forum

Main Board => Discussions => Language => Topic started by: Jeffrey Ferreira on August 20, 2019, 04:16:47 PM

Title: save control 0
Post by: Jeffrey Ferreira on August 20, 2019, 04:16:47 PM
Hello List,
we have always used the "save control 0" command as a print screen utility within our language. It takes an image of the active window and then we print it out. This worked fine for a long time.  But not on certain users screens instead of taking a snapshot of active window it is taking a snapshot of top left hand corner of screen.

Has anyone had any issues like this?
thanks in advance
jeff

Here is our environment:

- Windows 2016 (just switched to this)
- Terminal Services
- PxPlus 14.10 (just switched to this)

Title: Re: save control 0
Post by: Jeffrey Ferreira on August 20, 2019, 04:23:09 PM
I should have added that the reason we do this instead of using one of the many screen capture utilities is because it has worked quite well with our WinTerms (dumb terminals).
Title: Re: save control 0
Post by: Mike King on August 20, 2019, 05:08:53 PM
I suspect the user has a zoom factor applied to his display. 

This causes a misalignment between the co-ordinates we think the window is located versus the real desktop co-ordinates. 

The zoom logic in Windows basically converts the real desktop co-ordinates to 'fake' co-ordinates when reporting the information to us so, when we took the snapshot, the co-ordinates were off.

We addressed this in 2018 so you should find PxPlus 2018 Update 1 or PxPlus 2019 should work correctly.

PxPlus 2014 came out before the Windows versions you are using thus it would not have the logic to handle zoomed screens.

Title: Re: save control 0
Post by: Jeffrey Ferreira on August 21, 2019, 08:31:37 AM
Thank you Mike. Seeing how the text on all these workstations did look a bit bigger than I'm pretty sure this is it.