mirror of
https://github.com/QB64-Phoenix-Edition/QB64pe.git
synced 2024-09-28 11:17:46 +00:00
30 lines
No EOL
775 B
Text
30 lines
No EOL
775 B
Text
{{DISPLAYTITLE:_SCREENX}}
|
|
The '''_SCREENX''' function returns the current column pixel coordinate of the program window on the desktop.
|
|
|
|
|
|
{{PageSyntax}}
|
|
:: positionX& = [[_SCREENX]]
|
|
|
|
|
|
* Function returns the current program window's upper left corner column 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:
|
|
{{CodeStart}}{{Cl|_SCREENMOVE}} {{Cl|_SCREENMOVE|_MIDDLE}}
|
|
|
|
{{Cl|_SCREENCLICK}} {{Cl|_SCREENX}} + 10, {{Cl|_SCREENY}} + 10
|
|
|
|
{{Cl|PRINT}} "Hello window!" '' ''
|
|
{{CodeEnd}}
|
|
|
|
|
|
''See also:''
|
|
* [[_SCREENIMAGE]]
|
|
* [[_SCREENCLICK]]
|
|
* [[_SCREENPRINT]]
|
|
* [[_SCREENMOVE]]
|
|
* [[_SCREENY]]
|
|
|
|
|
|
{{PageNavigation}} |