Public bug reported: 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)) keyDown(Key.CAPS_LOCK) keyUp(Key.CAPS_LOCK) print str(Env.isLockOn(Key.CAPS_LOCK)) kindly let me know if we are using isLockOn() incorrectly, or is this a bug ? ** Affects: sikuli Importance: Undecided Status: New -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/985395 Title: unexpected behavior of env.isLockOn() Status in Sikuli: New Bug description: 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)) keyDown(Key.CAPS_LOCK) keyUp(Key.CAPS_LOCK) print str(Env.isLockOn(Key.CAPS_LOCK)) kindly let me know if we are using isLockOn() incorrectly, or is this a bug ? To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/985395/+subscriptions _______________________________________________ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp