sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #30766
[Question #263007]: Detecting a right-click
New question #263007 on Sikuli:
https://answers.launchpad.net/sikuli/+question/263007
Is it possible to detect a right-click using Sikuli?
For example:
if rightClick():
do Something
When I do the above, it just right clicks rather than detects a right-click. Just like the developers have developed a way to use hotkeys to perform actions, it would be nice for "hot clicks" to perform actions as well.
Also, I tried this:
def clickAndHold(event):
mouseDown(Button.LEFT)
sleep(0.29)
mouseUp(Button.LEFT)
Env.addHotkey(Key.CAPS_LOCK, KeyModifier.SHIFT, clickAndHold)
keyDown(Key.SHIFT)
When I do this, I'm not sure what happens to be quite honest. The Sikuli IDE window disappears and then reappears. When I try the hotkey, it doesn't perform the desired action (which is a simple click and hold for 0.29 seconds).
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.