Windows 10 Env.addHotkey Problem

Asked by Umut Can

Hello, I have a script which I was able to run on Windows 7 and Sikuli 1.0.1 flawlessly.
I have upgraded to Windows 10 64bit and I'm using sikuli 1.1.0 with it.

I use Env.addHotkey to call my function using hotkeys.

"Env.addHotkey(Key.F10, KeyModifier.ALT+KeyModifier.SHIFT, function)"

I have no errors with the script, it was working before. Still works except addhotkey feature. But now, as I understand it doesn't listen to hotkeys, or something is blocking it. I tried to run java binary with admin rights: no success. I tried to run sikuli jar as admin using command prompt: no success. What should I do to get hotkey feature to work again?

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

tested on Win10-64 with this script:

def function(evt):
  print "hotkey callback:", evt
Env.addHotkey(Key.F10, KeyModifier.ALT+KeyModifier.SHIFT, function)

while Mouse.at().y > 10:
  wait(1)

the script is stopped by moving the mouse to the top edge of the screen.

It works as expected.

Revision history for this message
Umut Can (umutcan15) said :
#2

Hello, which version of sikuli do you recommend? I want to try it again with old version v1.0.1.
And, can it happen because of java version?

Revision history for this message
RaiMan (raimund-hocke) said :
#3

I of course recommend 1.1.1 (http://sikulix.com)

I do not recommend 1.0.1, because of the crazy setup procedure and many bugs.

If you want to be sure:
purge everything belonging to the SikuliX package including the App Data folder and possible entry in system environment, before running a new setup.

Can you help with this problem?

Provide an answer of your own, or ask Umut Can for more information if necessary.

To post a message you must log in.