Hotkeys and foot pedal support for programming with Netbeans

To save time and automate annoying standard keyboard commands and chains, I have one myself USB footswitch 3 Grope bought and am very happy.

This makes it possible to easily ShortKeys 3 To lay foot pedals.

I want to show in the following, how following sequence with Netbeans a key / one pedal can put:

  1. Save the file in Netbeans: CTRL S
  2. Switch to Firefox
  3. Updating Firefox: F5


To realize these complicated commands, must AutoHotKey werden.Damit installed free of charge it is to program sequences of instructions to own GUIs. It is recommended to allow the command to automatically create only with the included AutoScriptWriter beginning, To get a feel for the syntax.

For 3 Steps of Netbeans automation are required only following lines of code:

;Shortkey is on ALT+S:
;speichere Dokument: STRG+S
;aktiviere Firefox
WinActivate, ahk_class MozillaUIWindowClass ahk_class MozillaWindowClass
; Reload mit F5
send {F5}

When the shutter button is ALT S used. These scripts must be imported via File/edit script.

With the help of the very practical tool contained in AutoHotKey AutoIt3 Window Spy The class can easily be listed under more information about programs and their windows. That's how I found out, that ahk_class MozillaUIWindowClass the designation for the Firefox class is.

ahk_class MozillaUIWindowClass

Activate the foot pedals

Using the supplied software can now foot pedals with the hotkey ALT S are occupied.