mirror of
https://github.com/QB64Official/qb64.git
synced 2024-08-31 07:40:17 +00:00
30 lines
No EOL
841 B
Text
30 lines
No EOL
841 B
Text
{{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]].
|
|
|
|
|
|
{{PageExamples}}
|
|
''Example:'' Clicks and opens program window header menu:
|
|
{{CodeStart}}{{Cl|_SCREENMOVE}} {{Cl|_SCREENMOVE|_MIDDLE}}
|
|
{{Cl|_SCREENCLICK}} {{Cl|_SCREENX}} + 10, {{Cl|_SCREENY}} + 10
|
|
{{Cl|PRINT}} "Hello window!" '' ''
|
|
{{CodeEnd}}
|
|
|
|
|
|
{{PageSeeAlso}}
|
|
* [[_SCREENIMAGE]]
|
|
* [[_SCREENCLICK]]
|
|
* [[_SCREENPRINT]]
|
|
* [[_SCREENMOVE]]
|
|
* [[_SCREENX]]
|
|
|
|
|
|
{{PageNavigation}} |