when determine NUM_LOCK, sikuli stoped

Asked by Ju1+i-我. on 2017-12-14

hi ,all
i'm using sikuli 1.1.1, when I wrote:
......
if Env.isLockOn(Key.NUM_LOCK) == True:
    type(Key.NUM_LOCK)
type(Key.END,Key.SHIFT),

sikuli will exit when that is done

I don't know why

Question information

Language:
English Edit question
Status:
Solved
For:
Sikuli Edit question
Assignee:
No assignee Edit question
Solved by:
Ju1+i-我.
Solved:
2017-12-20
Last query:
2017-12-20
Last reply:
2017-12-15
RaiMan (raimund-hocke) said : #1

Before saying it is a bug you should ask a question.
Wether it is a bug or not is my decision. Thanks.

RaiMan (raimund-hocke) said : #2

I will have a look.

RaiMan (raimund-hocke) said : #3

tested on Win 10 64-Bit with Java 8 latest:
works, no problems.

Ju1+i-我. (1ju2+i-a.) said : #4

sorry,I originally wanted to ask questions, but clicked bug,it's my mistake.
here is my code:
type(Key.HOME,Key.SHIFT)
wait(1)
if Env.isLockOn(Key.NUM_LOCK) == True:
            type(Key.NUM_LOCK)
            wait(1)
        type(Key.END,Key.SHIFT)
        #wait(1)
        paste("Date:" + self.systemDate[0:4] + "/" + self.systemDate[4:6] + "/" + self.systemDate[6:8] + ' ' + "Time:" + self.systemDate[8:13])
        wait(1)
        type(Key.ENTER)
        wait(1)
it doesn't work after type(Key.HOME,Key.SHIFT)
could you please help me to see where the problem is ?
many thanks

Ju1+i-我. (1ju2+i-a.) said : #5

sorry ,it's type(Key.HOME,Key.CTRL) not type(Key.HOME,Key.SHIFT)

RaiMan (raimund-hocke) said : #6

on what system?

RaiMan (raimund-hocke) said : #7

run the script from command line :

runsikulix.cmd -d 3 -r <path-to-your-script>

and paste the debug output.

Ju1+i-我. (1ju2+i-a.) said : #8

many thanks,
it's been solved