sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #10007
[Bug 985395] [NEW] unexpected behavior of env.isLockOn()
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
Follow ups
-
[Bug 985395] Re: unexpected behavior of env.isLockOn() --- Java problem
From: RaiMan, 2014-06-24
-
[Bug 985395] Re: unexpected behavior of env.isLockOn() --- Java problem
From: andrea, 2014-06-23
-
[Bug 985395] Re: unexpected behavior of env.isLockOn() --- Java problem
From: RaiMan, 2013-09-11
-
[Bug 985395] Re: unexpected behavior of env.isLockOn() --- Java problem
From: RaiMan, 2013-09-11
-
[Bug 985395] Re: unexpected behavior of env.isLockOn() --- Java problem
From: RaiMan, 2013-02-21
-
[Bug 985395] Re: unexpected behavior of env.isLockOn() --- Java problem
From: RaiMan, 2013-02-21
-
[Bug 985395] Re: unexpected behavior of env.isLockOn() --- Java problem
From: RaiMan, 2012-11-02
-
[Bug 985395] Re: unexpected behavior of env.isLockOn() --- Java problem
From: RaiMan, 2012-11-02
-
[Bug 985395] Re: unexpected behavior of env.isLockOn() --- Java problem
From: RaiMan, 2012-04-19
-
[Bug 985395] Re: unexpected behavior of env.isLockOn() --- Java problem
From: RaiMan, 2012-04-19
-
[Bug 985395] Re: unexpected behavior of env.isLockOn() --- Java problem
From: RaiMan, 2012-04-19
-
[Bug 985395] [NEW] unexpected behavior of env.isLockOn()
From: Jayanti Srivastava, 2012-04-19
References