Scratchbook

Das Leben ist immer anders als die Realität.

ControlSpace

Claude, 25. Oktober 2007, 22:41 Uhr

Warning: Use of undefined constant ri_rand_compare - assumed 'ri_rand_compare' (this will throw an Error in a future version of PHP) in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/random-image-widget/random_image.php on line 129 Warning: Use of undefined constant ri_rand_compare - assumed 'ri_rand_compare' (this will throw an Error in a future version of PHP) in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/random-image-widget/random_image.php on line 130 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match_all(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 700 Warning: Invalid argument supplied for foreach() in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 707 Warning: preg_match_all(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 700 Warning: Invalid argument supplied for foreach() in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 707

controlspace-logo.png

Jetzt etwas für diejenigen unter euch, welche mit wenig Aufwand viel erreichen wollen.

Während den Einführungstagen in meiner neuen Firma habe ich nebenbei ein nützliches Tool geschrieben, welches mir täglich wie ein Butler zu Diensten steht. Es ist schon fast ein kleines Framework, mit dem man sehr schnell Sachen automatisieren kann. Es wird Zeit, es endlich mal der Öffentlichkeit vorzustellen.

Ich komme oft an folgende Situation: Ein simpler Arbeitsablauf muss 100x ausgeführt werden. Shell-Skripts sind tabu, da man z.B. hundert Vorlagen von einer Website herunterladen, anpassen und wieder hochladen muss. Also muss AutoIt ran.

Neues Skript erstellen, Hotkey definieren, los geht’s. Praktisch. Jedem Programm sein Skript. Aber: Der Systray droht zu überlaufen, und die Hotkeys gehen langsam aus… Wäre es nicht praktisch, EINEN Hotkey für alle Programme zu haben?

Jetzt kommt ControlSpace. Ich drücke CTRL und SPACE, und im PuTTY wird der Scrollback gelöscht. Bin ich im Texteditor, werden alle Umlaute ersetzt (Beispiel). So sind die Aktionen pro Fenster definierbar.

Was aber, wenn ich mehrere Skripts pro Fenster will? Dann werden eben Buttons eingeblendet, und ich kann wahlweise draufklicken oder die entsprechende Zahl auf dem Numpad drücken. Und damit man nicht immer den Source neu kompilieren und umständliche Abfragen erstellen muss, werden alle Aktionen in Kurzform in einer Konfigurationsdatei, der space.control, definiert:

spacecontrol.png

Das erzeugt dann folgendes Menü, wenn man im Firefox CTRL+SPACE betätigt:

sc-buttons.png

Simpel – aber verdammt mächtig… 😉

Und wenn man draufklickt – naja, dann geht’s ab! Ich habe mir Aktionen definiert, wo das aktuell markierte Wort gleich in der Wikipedia nachgeschlagen wird, oder im LEO übersetzt wird…

Aktuell stehen Kommandos zum Tasten senden, Programme starten, Text ersetzen und für verschiedene Fenstermanipulationen zur Verfügung. Einfach mal runterladen und starten, die Konfigurationsdatei ist dokumentiert 😉

controlspace.zip

Wer mehr Funktionen braucht: Einfach reinhacken. Der Source steht unter der GPL und ist gleich mitgeliefert.

Aber es ist erstaunlich, wie weit man nur schon mit diesen Kommandos kommt. Wenn nun solche Routinearbeiten kommen, drücke ich CTRL+ALT+SPACE, Notepad geht auf mit dem Config-File, Skript reinschreiben, fertig. Sobald das Fenster geschlossen wird, ist die neue Konfiguration aktiv.

Das rockt!

rakudave

yeah, nice… mues das den moll teschte…

rakudave

hmm… nit schlächt, vorallem dr parser, boah… *schulterklopf*

allerdings giz no zwei problem:
– wenn me am rand isch, verschwinde d buttons
– wenn me sich „ver-ctrl-spaced“ het, wird me die knöpf nümm loos

Longneck

messi! isch au es mega kopfzerbräche gsi, bis i dä so anebecho ha… 🙂

das mit em rand muess i no usprobiere, aber das mit em ver-ctrl-space isch sit hüt nomidaag gfixt! has gmerkt wone kolleg s testet het. jetzt chasch sooft space wie de wotsch, s blibt immer nur ei button-liste offe.

eifach nomol abelade.

crakkstuh

kenneder launchy? -> http://www.launchy.net

super tool mit alt + space

Longneck

kenni, hani installiert^^

isch aber nur e programmstarter wie quicksilver.. aber mit controlspace chasch no viel meh als nur progrämmli starte 😉

Claude

ControlSpace ist jetzt auf Github: https://github.com/claudehohl/ControlSpace

Warning: count(): Parameter must be an array or an object that implements Countable in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/themes/scratchbook/navigation_bar_bottom.php on line 1