The actual screen resolution can be got with sys_metrics(0) and sys_metrics(1), see http://www.conitec.net/beta/asys_metrics.htm