Adding a function to a Region Object
Asked by
Ned
Hello,
At the moment I have a function called clickLog that clicks on a supplied image and wraps a Try Except around the click function and takes a screenshot if the image cannot be found.
I cannot use this with a region and so have to use region.click
I am just wondering if it would be possible to call region.clickLog, that is to make that function available to all Region objects? I understand that in the future there will be the use() method, but am just curious if the above would be worth pursuing in the meantime?
Thank you,
Ned
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- RaiMan
- Solved:
- Last query:
- Last reply:
To post a message you must log in.