programmieren:autohotkey
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| programmieren:autohotkey [2025/10/30 17:20] – [Tastenkombination startet Programm] felix | programmieren:autohotkey [2025/10/30 17:21] (current) – [Mausrad kippen um Übersicht der Fenster aufzurufen / zum letzten Fenster wechseln] felix | ||
|---|---|---|---|
| Line 56: | Line 56: | ||
| AHK v2-kompatibler Code: | 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.1761841226.txt.gz · Last modified: by felix
