i want the software to press the buttons shown on the screen, but i dont know how

Asked by Nali Rebwar Abdulla

i am trying to automate pressing the buttons in a game, when i used it i did the 'if exists("key on the screen"): type(Key."key"). I i really am not sure how this software works i need help

Question information

Language:
English Edit question
Status:
Expired
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

if exists("key on the screen"):
   click()

exists returns a match-region if the image is found on screen.
click() clicks in the middle of the last found match.

Read the docs and/or look for tons of examples in the net.

Revision history for this message
RaiMan (raimund-hocke) said :
#2

no reaction