** Changed in: sikuli
Status: In Progress => Fix Committed
** Changed in: sikuli
Milestone: 1.1.1 => 2.0.0
** Summary changed:
- [1.1.0] isLockOn does not change until typing from the keyboard
+ [1.1.0] isLockOn does not change until typing from the keyboard --- will only
be fixed in version 2
** 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)
+ msg = "status:%s" % Env.isLockOn(Key.NUM_LOCK)
+ popup(msg)
+ type(Key.NUM_LOCK)
--
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 ---
will only be fixed in version 2
Status in Sikuli:
Fix Committed
Bug description:
********** 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)
To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1545428/+subscriptions
_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help : https://help.launchpad.net/ListHelp