New question #275381 on Sikuli:
https://answers.launchpad.net/sikuli/+question/275381
Hi
"How to find the text from the screen and that text should be assigned to the
variable, then the assigned text should be searched again in the another window
of the screen. if there is a match in another window, that text should be
selected by clicking".
I have written a code as below :
=======================================================
click (img ) #click the image which has the text format in 1st window.
type ('a',KeyModifier.CTRL )
type('c', KeyModifier.CTRL)
selection = App.getClipboard()
click (img2) # which click the image of drop down in another window, there the
text which is copied from the 1st window will be displayed in the drop down.
text = selection
match = find(text)
click (match)
==========================================================================================
Output :
[error] Env.getClipboard: IOException: system clipboard data unavailable
[error] Image: Image not valid, creating empty Image
[error] script [ demo ] stopped with error in line 21
[error] FindFailed ( Region: doFind: Image not loadable: )
=================================================
Its basically throwing error for the code " match = find(text) " in line no 21.
I'am stuck with this problem, Not able to load the text into the variable and
to find that text in another window.
So, can you please do the needful.
Regards,
Krishna.
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.
_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help : https://help.launchpad.net/ListHelp