Trying to select text with mouse functions
Asked by
Maurice Richard
Originally I tried using OCR, but it's not as consistent as I need it to be.
So I'm trying to select a section of text on the page with mouse functions.
I've tried many variations, but I always get the same error:
"Invalid combination of button flags"
Here's a current snippet of the code:
regTheText = Region(XText, YText, XTextLength, YTextLength )
leftPoint = regTheText.
rightPoint = regTheText.
hover(
mouseDown(
wait(0.5)
mouseMove(
mouseUp(
It doesn't seem to like the mouseDown command.
Is my code incorrect? Or do I need to import something specific?
Any help is appreciated.
Thanks!
Maurice
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.