← Back to team overview

sikuli-driver team mailing list archive

[Question #258534]: if string wont read

 

New question #258534 on Sikuli:
https://answers.launchpad.net/sikuli/+question/258534

Another beginner question
I cannot get a trap out of a simple "if"
Here are a few lines where I am searching for a CAD file for a break point
I hover over the location where the "break" word will appear and copy it to the clipboard.


type('c', KEY_CTRL)# capture whatever text is there
end = Env.getClipboard()#bring it in
print(end)#outputs whatever is on the clipboard

if end == "break":
    print("found the break point")    #trap phrase
print(end) #just for kicks print it again
exit()

It will never printout the trap phrase when I am absolutely certain that end=="break"


-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.