find

find <image>

find the image on the screen

Sikuli

All Sikuli commands are run through the vision command from within TagUI.

Command Usage

  1. In TagUI, the find command is usually used in combination with the click command:
  2. vision click(find('C:/apps/scripts/img/test1.png'))
    • This clicks the image in the location: C:/apps/scripts/img/test1.png
    • Note that you need to specify the full path to the image. Contrast this with the TagUI click command, which takes in relative path.
    • For windows, DO NOT use the backslash for the path separator. Replace all backslash (\) with forward slash (/)
  3. You can also use find, in combination with the offset command, to shift the point to the desired location:
  4. vision click(find('C:/apps/scripts/img/test1.png').offset(60, 40))
    • The above will offset the found image by x=60 and y=40
    • As in (1), you need to specify the full path to the image. Contrast this with the TagUI click command, which takes in relative path.
    vision dragDrop(find('K:/download/Dropbox/download/rpa/tagui/vision1/gif/google1.png').offset(118, 0), find('K:/download/Dropbox/download/rpa/tagui/vision1/gif/google1.png').offset(118, 512))

Comments (0)

There are no comments posted here yet

Leave your comments

Posting comment as a guest. Sign up or login to your account.
Attachments (0 / 3)
Share Your Location