User Tools

Site Tools


programmieren:autohotkey

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
programmieren:autohotkey [2025/10/30 17:20] – [Tastenkombination startet Programm] felixprogrammieren: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/rechts kippen auf "Alt+Tab" und "Win+Tab" setzen
 +
 +isWheelLeftOnCooldown := false
 +
 WheelLeft:: WheelLeft::
 { {
 +    global isWheelLeftOnCooldown
 +
 +    if isWheelLeftOnCooldown
 +        return
 +
 +    isWheelLeftOnCooldown := true
     Send('!{Tab}') ; Alt + Tab     Send('!{Tab}') ; Alt + Tab
 +
 + ;SoundBeep(2000, 100)        ; Debug-Sound: 1000 Hz für 100 ms
 +
 +    SetTimer(() => isWheelLeftOnCooldown := false, -500) ; 500 ms Sperre
 } }
 +
 +
 +lastWheelRightTime := 0
  
 WheelRight:: WheelRight::
 { {
-    Send('#{Tab}') ; Win + Tab +    global lastWheelRightTime 
-}+    currentTime := A_TickCount
  
 +    if (currentTime - lastWheelRightTime < 500)
 +        return
 +
 +    lastWheelRightTime := currentTime
 +    Send('#{Tab}' ; Win + Tab
 +}
 </code> </code>
programmieren/autohotkey.1761841226.txt.gz · Last modified: by felix

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki