Type multi Key.TAB

Asked by JamesPanteleone

I need to tab though a ton of selections, how can i repeat type(Key.TAB) in short hand without doing "type(Key.TAB) + type(Key.TAB)......"?

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

for i in range(x): type(Key.TAB)

where x has to be substituted by the number of the repeats.

you might even make this shorter using a def()

the definition somewhere in the beginning of the script:
def doTab(n):
   for i in range (n=1):
      type (Key.TAB)

and later the usage:
doTab(3)
....
doTab(5)
...
doTab() # tab one time

Can you help with this problem?

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

To post a message you must log in.