← Back to team overview

sikuli-driver team mailing list archive

[Bug 985395] Re: unexpected behavior of env.isLockOn() --- Java problem

 

** Tags added: fkt-type

-- 
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() --- Java problem

Status in Sikuli:
  In Progress

Bug description:
  **** strange behavior on Mac Lion too:
  The states are reported correctly, but have no influence at all neither for Robot actions nor the outside world.

  --------------------------------------------

  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


References