[request] Want to change ALT+SHIFT+C to something else. --- workaround
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SikuliX |
In Progress
|
Wishlist
|
RaiMan |
Bug Description
**** for the workaround see comment #1
-------
I want to be able to change combination to quit script to something else then ALT+SHIFT+C combination. ALT+SHIFT is used for switching languages. If I change it to something else, like CTRL+SHIFT for switching languages, then ALT+SHIFT+C stops script. It is annoying to temporarily change it just because one application. I use KDE4. Why is it possible to change capture screen shortcut, but not this one? It sucks and I had hard time stopping unsaved script. It is a serious and annoying bug, if I wanted recommend this application someone, then they would not change their habits (ALT+SHIFT for keyboard switching) just because of one application. There are people who have hard time remember ALT+SHIFT another language. While typing this, I accidentaly changed language, and instinctively pressed ALT+SHIFT...
summary: |
- Cannot change ALT+SHIFT+C to something else. + [request] Want to change ALT+SHIFT+C to something else. |
Changed in sikuli: | |
importance: | Undecided → Wishlist |
summary: |
- [request] Want to change ALT+SHIFT+C to something else. + [request] Want to change ALT+SHIFT+C to something else. --- workaround |
description: | updated |
Changed in sikuli: | |
status: | New → In Progress |
assignee: | nobody → RaiMan (raimund-hocke) |
tags: |
added: options removed: alt+shift+c hardcoded |
You can change it, it's just not in the preferences dialog.
Paste this into a new script...
import org.sikuli.ide as ide event.KeyEvent as KeyEvent
import java.awt.
import java.awt.Event as Event
ide.UserPrefere nces.getInstanc e().setStopHotk eyModifiers( Event.ALT_ MASK+Event. SHIFT_MASK) nces.getInstanc e().setStopHotk ey(KeyEvent. VK_R)
ide.UserPrefere
Run it and then restart sikuli, this will change it to alt-shift-r. (change VK_R to VK_C or whatever letter you want)
But there is a typo in sikuli, in the function UserPreferences .java:GetStopHo tkeyModifiers( )
It should be STOP_HOTKEY_ MODIFIERS instead of GET_HOTKEY....
I have another issue with stopping a script, that is that java uses up >=100% of the cpu after I press the stop key sometimes, but this belongs in a separate report.