SCREENX: Difference between revisions
Jump to navigation
Jump to search
Navigation:
Main Page with Articles and Tutorials
Keyword Reference - Alphabetical
Keyword Reference - By usage
Report a broken link
(Created page with "{{DISPLAYTITLE:_SCREENX}} The _SCREENX function returns the current column pixel coordinate of the program window on the desktop. {{PageSyntax}} : {{Parameter|positionX&}} = _SCREENX {{PageDescription}} * Function returns the current program window's upper left corner column position on the desktop. * Use _DESKTOPWIDTH and _DESKTOPHEIGHT to find the current 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 column position on the desktop. | * Function returns the current program window's upper left corner column position on the desktop. | ||
* Use [[_DESKTOPWIDTH]] and [[_DESKTOPHEIGHT]] to find the current Windows desktop resolution to adjust the position with [[_SCREENMOVE]]. | * Use [[_DESKTOPWIDTH]] and [[_DESKTOPHEIGHT]] to find the current Windows desktop resolution to adjust the position with [[_SCREENMOVE]]. | ||
* [[ | * '''[[Keywords currently not supported by QB64#Keywords_not_supported_in_Linux_or_macOS_versions|Keyword not supported in Linux or macOS versions]]''' | ||
Latest revision as of 02:21, 24 January 2023
The _SCREENX function returns the current column pixel coordinate of the program window on the desktop.
Syntax
- positionX& = _SCREENX
Description
- Function returns the current program window's upper left corner column position on the desktop.
- Use _DESKTOPWIDTH and _DESKTOPHEIGHT to find the current Windows desktop resolution to adjust the position with _SCREENMOVE.
- Keyword not supported in Linux or macOS versions
Examples
Example: Clicks and opens program window header menu:
_SCREENMOVE _MIDDLE _SCREENCLICK _SCREENX + 10, _SCREENY + 10 PRINT "Hello window!" |
See also