_SCREENY

From QB64 Wiki
Revision as of 02:09, 9 September 2017 by imported>SMcNeill (-)
Jump to navigation Jump to search

The _SCREENY function returns the current row pixel coordinate of the program window on the desktop.


Syntax

positionY& = _SCREENY


Description

  • Function returns the current program window's upper left corner row position on the desktop.
  • Use _DESKTOPWIDTH and _DESKTOPHEIGHT to find the current user's Windows desktop resolution to adjust the position with _SCREENMOVE.


Examples

Example: Clicks and opens program window header menu:

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


See also



Navigation:
Keyword Reference - Alphabetical
Keyword Reference - By Usage
Main Wiki Page