Skip to main content

Is it possible to compute the screen size in pixels?

  • May 11, 2021
  • 1 reply
  • 0 views

We have an anti-fraud request from HMRC to supply the current screen size in pixels.

How do we do this?

Thanks

1 reply

Claudio Contardi
Forum|alt.badge.img+2

We have an anti-fraud request from HMRC to supply the current screen size in pixels.

How do we do this?

Thanks

Good morning, MBurPin

Try the following syntax:

ACCEPT TERMINAL-ABILITIES FROM TERMINAL-INFO

You will find the information you need in the fields USABLE-SCREEN-HEIGHT, USABLE-SCREEN-WIDTH, PHYSICAL-SCREEN-HEIGHT and PHYSICAL-SCREEN-WIDTH.

Find more information in the Documentation for the ACCEPT statement, Format 3, bullet-point 8: 
https://bit.ly/3o4IoDT

Best Regards.

Claudio Contardi
Product Support Engineer, Senior
Micro Focus