← Back to team overview

sikuli-driver team mailing list archive

[Bug 757028] 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.

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/757028

Title:
  [request] Want to change ALT+SHIFT+C to something else.

Status in Sikuli:
  New

Bug description:
  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...



References