[request] Want to change ALT+SHIFT+C to something else. --- workaround

Bug #757028 reported by linuxovy otaku
8
This bug affects 1 person
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...

Tags: options
RaiMan (raimund-hocke)
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
Revision history for this message
niknah (hankin0) wrote : Re: [request] Want to change ALT+SHIFT+C to something else.

You can change it, it's just not in the preferences dialog.

Paste this into a new script...

import org.sikuli.ide as ide
import java.awt.event.KeyEvent as KeyEvent
import java.awt.Event as Event

ide.UserPreferences.getInstance().setStopHotkeyModifiers(Event.ALT_MASK+Event.SHIFT_MASK)
ide.UserPreferences.getInstance().setStopHotkey(KeyEvent.VK_R)

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:GetStopHotkeyModifiers()

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.

RaiMan (raimund-hocke)
summary: - [request] Want to change ALT+SHIFT+C to something else.
+ [request] Want to change ALT+SHIFT+C to something else. --- workaround
description: updated
Revision history for this message
linuxovy otaku (linuxovy-otaku) wrote :

Thanks.

RaiMan (raimund-hocke)
Changed in sikuli:
status: New → In Progress
assignee: nobody → RaiMan (raimund-hocke)
RaiMan (raimund-hocke)
tags: added: options
removed: alt+shift+c hardcoded
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.