← Back to team overview

sikuli-driver team mailing list archive

[Bug 1545428] Re: [1.1.0] isLockOn does not change until typing from the keyboard --- fixed 1.1.1 2016-10-31

 

fixed the Java problem by not using the AWT Toolkit ;-)
Now the Windows API is directly accessed to get the key state.

** Summary changed:

- [1.1.0] isLockOn does not change until typing from the keyboard --- will only be fixed in version 2
+ [1.1.0] isLockOn does not change until typing from the keyboard --- fixed 1.1.1 2016-10-31

** Description changed:

- ********** comments
- 
- In the current shape of SikuliX, the problem cannot be solved.
- This is caused by a special Java situation in the context of Swing and AWT, which cannot be tackled in SikuliX currently without a greater effort.
- 
- A possible solution, is to directly access the Windows API
- (USER32/GetKeyState), but this has to be checked.
- 
- ----------------------------------------
- 
  I am sure this behavior by using the following code.
  When I click the OK button at the pop-up window, status does not change.
  When I type Enter-key at the pop-up window, status will change.
  (I tested on Windows7, Java 1.8.0, SikuliX1.1.0 .)
  
  while True:
      msg = "status:%s" % Env.isLockOn(Key.NUM_LOCK)
      popup(msg)
      type(Key.NUM_LOCK)

** Changed in: sikuli
   Importance: Medium => Critical

** Changed in: sikuli
    Milestone: 2.0.0 => 1.1.1

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1545428

Title:
  [1.1.0] isLockOn does not change until typing from the keyboard ---
  fixed 1.1.1 2016-10-31

Status in Sikuli:
  Fix Committed

Bug description:
  I am sure this behavior by using the following code.
  When I click the OK button at the pop-up window, status does not change.
  When I type Enter-key at the pop-up window, status will change.
  (I tested on Windows7, Java 1.8.0, SikuliX1.1.0 .)

  while True:
      msg = "status:%s" % Env.isLockOn(Key.NUM_LOCK)
      popup(msg)
      type(Key.NUM_LOCK)

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1545428/+subscriptions


References