Go next action until user type "enter"

Asked by Johnson

Since i have some special reason. I need to type some score/mark into the textbox from exam paper.

I using wait(5) so that sikuli wait me to type the score/mark and verify it.

sometimes those step is too slow.

Is there any method to do the action "Go next action until user type "enter"

here is my pseudo code and show as below:

# input 40 students score
for i in range (40):
    type("N", KeyModifier.CMD) #open a new record
    ... # some sikuli actions
    wait (user press "enter") <<<
    ...
    ... # some sikuli actions

Question information

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

sorry, no.

2 possibilities:

-- use input() to get the stuff from the user and paste() it to the field

-- observe the field until it does not change anymore for x seconds

Revision history for this message
Johnson (jsonchoilap) said :
#2

help so much ~ thanks you