MAC Shift Tab

Asked by Jeff_Vallis

IMAC Intel OS X Yosemite version 10.10.3
Processor Name: Intel Core 2 Duo
Processor Speed: 3.06 GHz

SikulixIDE 1.1.0
Build 2015-05-25_01:00nightly

Bug report

type(Key.TAB + KeyModifier.SHIFT)
Result
error] TypeError ( cannot concatenate 'unicode' and 'int' objects )

type(Key.TAB | KeyModifier.SHIFT)
Result
[error] TypeError ( unsupported operand type(s) for |: 'unicode' and 'int' )

source
http://doc.sikuli.org/keys.html

The modifier constants can be combined to the modifier parameter by either using “+” or “|”, if more than one key modifier is needed.

type(Key.ESC, KeyModifier.CTRL + KeyModifier.ALT)
# or equivalent
type(Key.ESC, KeyModifier.CTRL | KeyModifier.ALT)
They should only be used in the modifiers parameter with functions like type(), rightClick(), etc.

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:

This question was originally filed as bug #1462243.

Revision history for this message
RaiMan (raimund-hocke) said :
#1

wrong usage

Revision history for this message
RaiMan (raimund-hocke) said :
#2

the docs clearly says:

type(Key.TAB, Key.SHIFT)

or

type(Key.TAB, KeyModifier.SHIFT)

Revision history for this message
Jeff_Vallis (vallis-pj) said :
#3

Tried above and it failed but this time I know why - I was back tabbing before box appeared
added
wait(0.5) before trying to backtab and all was fine

This comment added incase others look up this page

Can you help with this problem?

Provide an answer of your own, or ask Jeff_Vallis for more information if necessary.

To post a message you must log in.