New question #200442 on Sikuli:
https://answers.launchpad.net/sikuli/+question/200442
I am trying to get the Env.isLockOn(Key.SCROLL_LOCK) to work for me, but it
seems that it only works if you manually press the numlock key to start. What I
mean is if you have sikuli press the NumLock key, and then check to see the
change using the Env method it will always return what happened before sikuli
pressed it.
Run this to see what I mean:
t=Env.isLockOn(Key.SCROLL_LOCK)
print t
if t==False:
type(Key.SCROLL_LOCK)
else:
pass
t=Env.isLockOn(Key.SCROLL_LOCK)
print t
t=None
if t==False:
type(Key.SCROLL_LOCK)
else:
pass
If num lock has been manually set to on is will always show true(which is
good), but if you turn off num lock manually, and run the program, it will
always show false, even though sikuli does turn on and off numlock.
If I am doing this wrong please let me know.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.
_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help : https://help.launchpad.net/ListHelp