SCREENCLICK: Difference between revisions

From QB64 Phoenix Edition Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 12: Line 12:
* Optional {{Parameter|button%}} can be used to specify left button (1, default), right button (2) or middle button (3) (available with '''build 20170924/68''').
* Optional {{Parameter|button%}} can be used to specify left button (1, default), right button (2) or middle button (3) (available with '''build 20170924/68''').
* Coordinates can range from 0 to the [[_DESKTOPWIDTH]] and [[_DESKTOPHEIGHT]]. The desktop image acquired by [[_SCREENIMAGE]] can be used to map the coordinates required.
* Coordinates can range from 0 to the [[_DESKTOPWIDTH]] and [[_DESKTOPHEIGHT]]. The desktop image acquired by [[_SCREENIMAGE]] can be used to map the coordinates required.
* '''[[Keywords_currently_not_supported_by_QB64#Keywords_not_supported_in_Linux_or_macOS_versions|Keyword not supported in Linux or macOS versions]]'''
* '''[[Keywords currently not supported by QB64#Keywords not supported in Linux or macOS versions|Keyword not supported in Linux or macOS versions]]'''





Revision as of 02:34, 23 January 2023

The _SCREENCLICK statement simulates clicking on a pixel coordinate on the desktop screen with the left mouse button.


Syntax

_SCREENCLICK column%, row%[, button%]


Description

  • column% is the horizontal pixel coordinate position on the screen.
  • row% is the vertical pixel coordinate position on the screen.
  • Optional button% can be used to specify left button (1, default), right button (2) or middle button (3) (available with build 20170924/68).
  • Coordinates can range from 0 to the _DESKTOPWIDTH and _DESKTOPHEIGHT. The desktop image acquired by _SCREENIMAGE can be used to map the coordinates required.
  • Keyword not supported in Linux or macOS versions


See also



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