programmieren:autohotkey
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| programmieren:autohotkey [2025/06/16 17:36] – [Mausrad kippen um Übersicht der Fenster aufzurufen / zum letzten Fenster wechseln] felix | programmieren:autohotkey [2025/10/30 17:21] (current) – [Mausrad kippen um Übersicht der Fenster aufzurufen / zum letzten Fenster wechseln] felix | ||
|---|---|---|---|
| Line 36: | Line 36: | ||
| <code autohotkey> | <code autohotkey> | ||
| ; das Such-Programm " | ; das Such-Programm " | ||
| - | #s:: | + | #s:: { |
| - | Run, %ProgramFiles%\Everything\Everything.exe | + | Run("%ProgramFiles%\Everything\Everything.exe") |
| - | Return | + | } |
| </ | </ | ||
| Everything wurde in der Standardinstallation als Service installiert (Optionen im Installationsdialog wie vorgegeben auswählt lassen). | Everything wurde in der Standardinstallation als Service installiert (Optionen im Installationsdialog wie vorgegeben auswählt lassen). | ||
| - | |||
| - | <code autohotkey> | ||
| - | #c:: | ||
| - | Run, C: | ||
| - | Return | ||
| - | </ | ||
| - | |||
| - | |||
| ==== Mausrad kippen um Übersicht der Fenster aufzurufen / zum letzten Fenster wechseln ==== | ==== Mausrad kippen um Übersicht der Fenster aufzurufen / zum letzten Fenster wechseln ==== | ||
| Line 62: | Line 54: | ||
| </ | </ | ||
| + | AHK v2-kompatibler Code: | ||
| <code autohotkey> | <code autohotkey> | ||
| + | ; Mausrad links/ | ||
| + | |||
| + | isWheelLeftOnCooldown := false | ||
| + | |||
| WheelLeft:: | WheelLeft:: | ||
| { | { | ||
| + | global isWheelLeftOnCooldown | ||
| + | |||
| + | if isWheelLeftOnCooldown | ||
| + | return | ||
| + | |||
| + | isWheelLeftOnCooldown := true | ||
| Send(' | Send(' | ||
| + | |||
| + | ; | ||
| + | |||
| + | SetTimer(() => isWheelLeftOnCooldown := false, -500) ; 500 ms Sperre | ||
| } | } | ||
| + | |||
| + | |||
| + | lastWheelRightTime := 0 | ||
| WheelRight:: | WheelRight:: | ||
| { | { | ||
| - | | + | |
| - | } | + | |
| + | if (currentTime - lastWheelRightTime < 500) | ||
| + | return | ||
| + | |||
| + | lastWheelRightTime := currentTime | ||
| + | Send('# | ||
| + | } | ||
| </ | </ | ||
programmieren/autohotkey.1750088170.txt.gz · Last modified: by felix
