programmieren:autohotkey
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| programmieren:autohotkey [2023/03/26 12:54] – [Mausrad kippen um ganz runter zu scrollen] felix | programmieren:autohotkey [2025/10/30 17:21] (current) – [Mausrad kippen um Übersicht der Fenster aufzurufen / zum letzten Fenster wechseln] felix | ||
|---|---|---|---|
| Line 9: | Line 9: | ||
| ===== Nützliche Skripte ===== | ===== Nützliche Skripte ===== | ||
| ==== Windows 10: Virtuelle Desktops wechseln ==== | ==== Windows 10: Virtuelle Desktops wechseln ==== | ||
| - | <file autohotkey | + | <code autohotkey> |
| ; angenehmere Shortcuts um in Windows 10 die Desktops zu verwalten | ; angenehmere Shortcuts um in Windows 10 die Desktops zu verwalten | ||
| ; Strg+Win+A (links) | ; Strg+Win+A (links) | ||
| Line 22: | Line 22: | ||
| ^#w::^#F4 | ^#w::^#F4 | ||
| Return | Return | ||
| - | </file> | + | </code> |
| Line 32: | Line 32: | ||
| </ | </ | ||
| - | ==== Einfg drücken bewirkt Ende ==== | + | |
| - | <code autohotkey> | + | |
| - | ; beim Druecken von Einfg wird tatsaechlich Ende ausgefuehrt | + | |
| - | Insert:: | + | |
| - | Return | + | |
| - | </ | + | |
| ==== Tastenkombination startet Programm ==== | ==== Tastenkombination startet Programm ==== | ||
| <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 67: | Line 54: | ||
| </ | </ | ||
| + | AHK v2-kompatibler Code: | ||
| + | <code autohotkey> | ||
| + | ; Mausrad links/ | ||
| + | |||
| + | isWheelLeftOnCooldown := false | ||
| + | |||
| + | WheelLeft:: | ||
| + | { | ||
| + | global isWheelLeftOnCooldown | ||
| + | |||
| + | if isWheelLeftOnCooldown | ||
| + | return | ||
| + | |||
| + | isWheelLeftOnCooldown := true | ||
| + | Send(' | ||
| + | |||
| + | ; | ||
| + | |||
| + | SetTimer(() => isWheelLeftOnCooldown := false, -500) ; 500 ms Sperre | ||
| + | } | ||
| + | |||
| + | |||
| + | lastWheelRightTime := 0 | ||
| + | |||
| + | WheelRight:: | ||
| + | { | ||
| + | global lastWheelRightTime | ||
| + | currentTime := A_TickCount | ||
| + | |||
| + | if (currentTime - lastWheelRightTime < 500) | ||
| + | return | ||
| + | |||
| + | lastWheelRightTime := currentTime | ||
| + | Send('# | ||
| + | } | ||
| + | </ | ||
programmieren/autohotkey.1679828060.txt.gz · Last modified: by felix
