and trying to get the current state of CAPS LOCK key - using isLockOn().
But surprisingly it does not seem to work - at least as I expected.
It works correctly for the first time - but the second call returns whatever was returned by it for the first time.
For example, if caps lock is on, then first isLockOn() returns True, but thereafter if the capslock state changes to off, then still isLockOn() returns True.
Hi,
I am using sikuli X-1.0rc3, windows xp 32 bit
and trying to get the current state of CAPS LOCK key - using isLockOn().
But surprisingly it does not seem to work - at least as I expected.
It works correctly for the first time - but the second call returns whatever was returned by it for the first time.
For example, if caps lock is on, then first isLockOn() returns True, but thereafter if the capslock state changes to off, then still isLockOn() returns True.
for this I used the following code, in sikuli ide
print str(Env. isLockOn( Key.CAPS_ LOCK)) Key.CAPS_ LOCK) CAPS_LOCK) isLockOn( Key.CAPS_ LOCK))
keyDown(
keyUp(Key.
print str(Env.
kindly let me know if we are using isLockOn() incorrectly, or is this a bug ?