QB64.com

QB64 is a modern extended BASIC programming language that retains QBasic/QuickBASIC 4.5 compatibility and compiles native binaries for Windows, Linux, and macOS.

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