SikuliX1
SikuliX1 copied to clipboard
macOS/Linux: Env.isLockOn(Key.CAPS_LOCK) not implemented (always returns false)
Also: Launchpad: Linux: Key.isLockOn() not detecting state
Hi,
i got both false when i try to check my caps lock was on and off
I have also try to run this code and get the same answer
print(Env.isLockOn(Key.CAPS_LOCK)) keyDown(Key.CAPS_LOCK) print(Env.isLockOn(Key.CAPS_LOCK)) keyUp(Key.CAPS_LOCK)
mac OS catalina 10.15.7 SIkulix 2.0.4
Thanks for the pointer.
Env.isLockOn() currently only works on Windows.
... and using type(Key.CAPS_LOCK) does not do anything on Mac currently.
So I have to dig deeper.
WORKAROUND macOS
keyDown(Key.SHIFT)
type("dies ist ein test")
keyUp()
types: DIES IST EIN TEST