sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #16972
[Question #223694]: can you use OR with in a function?
New question #223694 on Sikuli:
https://answers.launchpad.net/sikuli/+question/223694
I wanted to know if Sikuli understood this:
rightClick("3-1.png" or "I-2.png", 20)
I have an item that appears in the system tray, there are no shortcuts that can invoke the pop up menu for it and I have to interact with it using Sikui
the problem is that the Icon has an element that changes color from blue or red depending on if a program is active..
this program is a time capture program and if another program is running, it turns to RED to let you know its tracking time.
I need to right click that icon but sometimes its red and sometimes it blue and its all about timing.
if its blue then my rightclick fail's and vice versa if its red.
when i use rightClick("3-1.png" or "I-2.png", 20)
this doesn't seem to help which i figured was along shot.
then i thought about this:
if exists("3-1.png") or exists("I-2.png"):
rightclick()
but again with that one I still have to define either the red or blue icon to right click.
any ideas to get around this?
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.