sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #59702
Re: [Question #822318]: keyDown not working in 1.1.2 in windows server 2022 and Java 8
Question #822318 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/822318
Status: Open => Answered
Vishwanath Tiwari proposed the following answer:
This issue happens because Windows Server 2022 is stricter with
simulated keyboard input than 2012, and SikuliX 1.1.2 is very old. A few
things you can try:
1. Make sure the target window is focused before sending keys:
```python
App.focus("Notepad")
type("a", Key.CTRL) # safer than raw keyDown()
```
2. Don’t run SikuliX as a service or background task – it only works in
an interactive desktop session.
3. Temporarily disable UAC or test in an RDP console session to rule out
security blocking input.
4. If possible, upgrade to SikuliX 2.0.6 – it has much better support
for Windows 10/11/2022.
In short: focus the app, prefer type() over keyDown(), and consider
upgrading SikuliX.
--
You received this question notification because your team Sikuli Drivers
is an answer contact for SikuliX.