_SCREENX - QB64Official/qb64 GitHub Wiki

The _SCREENX function returns the current column pixel coordinate of the program window on the desktop.

Syntax

positionX& = _SCREENX

Description

Example(s)

Clicks and opens program window header menu:


_SCREENMOVE _MIDDLE
_SCREENCLICK _SCREENX + 10, _SCREENY + 10
PRINT "Hello window!"

See Also