sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #11787
Re: [Question #203053]: Text comparison then if loop
Question #203053 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/203053
Status: Open => Answered
RaiMan proposed the following answer:
Ok, then if your GUI supports selecting a cell content somehow using the
mouse (e.g. double-clicking into a cell), this is rather easy to
accomplish.
An example: http://sikuli.org/blog/2010/05/06/extract-text-with-
clipboard/
e.g.
col1 = find("image of col header.png")
doubleClick(col1.getCenter().below(35)
type("c", KeyModifier.CTRL) # text to clipboard
currJob = Env.getClipboard()
print currJob
It might be necessary to "clean" the clipboard content to compare it
with your given job name.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.