Difference between revisions of "SCREENY"

From QB64 Wiki
Jump to navigation Jump to search
imported>Clippy
m
imported>Clippy
m
Line 16: Line 16:
{{Cl|_SCREENCLICK}} {{Cl|_SCREENX}} + 10, {{Cl|_SCREENY}} + 10
{{Cl|_SCREENCLICK}} {{Cl|_SCREENX}} + 10, {{Cl|_SCREENY}} + 10


{{Cl|PRINT}} "Hello window!"
{{Cl|PRINT}} "Hello window!" '' ''
{{Cl|_SCREENPRINT}} {{Cl|CHR$}}(1) '' ''
{{CodeEnd}}
{{CodeEnd}}



Revision as of 21:13, 7 January 2016

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


Syntax

positionY& = _SCREENY


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


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