SCREENY: Difference between revisions

From QB64 Phoenix Edition Wiki
Jump to navigation Jump to search
(Created page with "{{DISPLAYTITLE:_SCREENY}} The _SCREENY function returns the current row pixel coordinate of the program window on the desktop. {{PageSyntax}} : {{Parameter|positionY&}} = _SCREENY {{PageDescription}} * 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. * Keywords_currently...")
 
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 10: Line 10:
* Function returns the current program window's upper left corner row position on the desktop.
* 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]].
* Use [[_DESKTOPWIDTH]] and [[_DESKTOPHEIGHT]] to find the current user's Windows desktop resolution to adjust the position with [[_SCREENMOVE]].
* [[Keywords_currently_not_supported_by_QB64#Keywords_Not_Supported_in_Linux_or_MAC_OSX_versions|Keyword not Supported in Linux or MAC versions]]
* '''[[Keywords currently not supported by QB64#Keywords_not_supported_in_Linux_or_macOS_versions|Keyword not supported in Linux or macOS versions]]'''




Line 17: Line 17:
{{CodeStart}}{{Cl|_SCREENMOVE}} {{Cl|_SCREENMOVE|_MIDDLE}}
{{CodeStart}}{{Cl|_SCREENMOVE}} {{Cl|_SCREENMOVE|_MIDDLE}}
{{Cl|_SCREENCLICK}} {{Cl|_SCREENX}} + 10, {{Cl|_SCREENY}} + 10
{{Cl|_SCREENCLICK}} {{Cl|_SCREENX}} + 10, {{Cl|_SCREENY}} + 10
{{Cl|PRINT}} "Hello window!" '' ''
{{Cl|PRINT}} "Hello window!"
{{CodeEnd}}
{{CodeEnd}}



Latest revision as of 02:21, 24 January 2023

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


Syntax

positionY& = _SCREENY


Description


Examples

Example: Clicks and opens program window header menu:

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


See also



Navigation:
Main Page with Articles and Tutorials
Keyword Reference - Alphabetical
Keyword Reference - By usage
Report a broken link