summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorstmayer <stmayer@b9310e46-f624-0410-8ea1-cfbb3a30dc96>2008-04-19 20:51:27 +0000
committerstmayer <stmayer@b9310e46-f624-0410-8ea1-cfbb3a30dc96>2008-04-19 20:51:27 +0000
commit8b32ba034507c84d5b049e2a76d4e64b614307ed (patch)
tree0b6cb37aea2115a8970501811f5beec1b7ad982b
parente2f211796cf6d05a2c146fdc944583e20ef714bc (diff)
ahk: systray-menu
neo_portable: Startabfrage Neo starten git-svn-id: https://svn.neo-layout.org@490 b9310e46-f624-0410-8ea1-cfbb3a30dc96
-rw-r--r--windows/2K_XP_Vista/autohotkey/neo20-all-in-one.ahk103
-rw-r--r--windows/2K_XP_Vista/autohotkey/neo20-all-in-one.exebin221652 -> 222462 bytes
-rw-r--r--windows/2K_XP_Vista/neo_portable.zipbin216871 -> 442716 bytes
3 files changed, 98 insertions, 5 deletions
diff --git a/windows/2K_XP_Vista/autohotkey/neo20-all-in-one.ahk b/windows/2K_XP_Vista/autohotkey/neo20-all-in-one.ahk
index 07c0656..2e84447 100644
--- a/windows/2K_XP_Vista/autohotkey/neo20-all-in-one.ahk
+++ b/windows/2K_XP_Vista/autohotkey/neo20-all-in-one.ahk
@@ -2,7 +2,7 @@
Titel: NEO 2.0 beta Autohotkey-Treiber
$Revision$
$Date$
- Autor: Stefan Mayer <stm@neo-layout.org>
+ Autor: Stefan Mayer <stm (at) neo-layout.org>
Basiert auf: neo20-all-in-one.ahk vom 29.06.2007
TODO: - ausgiebig testen...
@@ -34,12 +34,12 @@
; Quelltext kann eingerückt werden,
; msgbox ist trotzdem linksbündig
-SendMode Input
SetTitleMatchMode 2
+SendMode InputThenPlay
-;name = NEO 2.0
-;enable = Aktiviere %name%
-;disable = Deaktiviere %name%
+name = Neo 2.0
+enable = Aktiviere %name%
+disable = Deaktiviere %name%
; Überprüfung auf deutsches Tastaturlayout
; ----------------------------------------
@@ -70,6 +70,29 @@ if inputlocale <> 00000407
exitapp
}
+; Menü des Systray-Icons
+; ----------------------
+
+menu, tray, nostandard
+menu, tray, add, Öffnen, open
+ menu, helpmenu, add, About, about
+ menu, helpmenu, add, Autohotkey-Hilfe, help
+ menu, helpmenu, add
+ menu, helpmenu, add, http://&autohotkey.com/, autohotkey
+ menu, helpmenu, add, http://www.neo-layout.org/, neo
+ menu, tray, add, Hilfe, :helpmenu
+menu, tray, add
+menu, tray, add, %disable%, togglesuspend
+menu, tray, default, %disable%
+menu, tray, add
+menu, tray, add, Edit, edit
+menu, tray, add, Reload, reload
+menu, tray, add
+menu, tray, add, Nicht im Systray anzeigen, hide
+menu, tray, add, %name% beenden, exitprogram
+menu, tray, tip, %name%
+
+
/*
Variablen initialisieren
*/
@@ -3103,3 +3126,73 @@ EncodeInteger(ref, val)
*/
+pause::suspend
+
+; ------------------------------------
+
+togglesuspend:
+ if state <>
+ {
+ state =
+ menu, tray, rename, %enable%, %disable%
+ }
+ else
+ {
+ state = : Deaktiviert
+ menu, tray, rename, %disable%, %enable%
+ }
+
+ menu, tray, tip, %name%%state%
+ suspend
+return
+
+
+help:
+ Run, %A_WinDir%\hh mk:@MSITStore:autohotkey.chm
+return
+
+
+about:
+ msgbox, 64, %name% – Ergonomische Tastaturbelegung,
+ (
+ %name%
+ `nDas Neo-Layout ersetzt das übliche deutsche
+ Tastaturlayout mit der Alternative Neo,
+ beschrieben auf http://neo-layout.org/.
+ `nDazu sind keine Administratorrechte nötig.
+ `nWenn Autohotkey aktiviert ist, werden alle Tastendrucke
+ abgefangen und statt dessen eine Übersetzung weitergeschickt.
+ `nDies geschieht transparent für den Anwender,
+ es muss nichts installiert werden.
+ `nDie Zeichenübersetzung kann leicht über das Icon im
+ Systemtray deaktiviert werden. `n
+ )
+return
+
+
+neo:
+ run http://neo-layout.org/
+return
+
+autohotkey:
+ run http://autohotkey.com/
+return
+
+open:
+ ListLines ; shows the Autohotkey window
+return
+
+edit:
+ edit
+return
+
+reload:
+ Reload
+return
+
+hide:
+ menu, tray, noicon
+return
+
+exitprogram:
+ exitapp
+return \ No newline at end of file
diff --git a/windows/2K_XP_Vista/autohotkey/neo20-all-in-one.exe b/windows/2K_XP_Vista/autohotkey/neo20-all-in-one.exe
index af2f090..31a37b5 100644
--- a/windows/2K_XP_Vista/autohotkey/neo20-all-in-one.exe
+++ b/windows/2K_XP_Vista/autohotkey/neo20-all-in-one.exe
Binary files differ
diff --git a/windows/2K_XP_Vista/neo_portable.zip b/windows/2K_XP_Vista/neo_portable.zip
index dd23c3a..ccf3666 100644
--- a/windows/2K_XP_Vista/neo_portable.zip
+++ b/windows/2K_XP_Vista/neo_portable.zip
Binary files differ