← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #680738]: switchApp()

 

Question #680738 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/680738

Eric Jordan posted a new comment:
Hello,

I know this is a bug area, where do we go to just ask questions?

I do appreciate you helping me. There are so many forums that are so
toxic for beginners.

Since you  answered me here I will show you this and then continue in
the question area.

I used your example up top:

oldColor = Location(1901,1096).getColor()
rgb = oldColor.getRGB()
while True:
    newColor = Location(1901, 1096).getColor()
    if oldColor.getRGB() == newColor.RGB():
        popup("Color has changed")

I get this error:
[error] Error caused by: Traceback (most recent call last): File "C:\SikuliX\Sikuli 1.4\Scripts\WGT.sikuli\WGT.py", line 20, in <module> if oldColor.getRGB() == newColor.RGB(): TypeError: 'int' object is not callable

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.