Versuche dies :
LAlt:: Send, Send, return LWin:: Send, Send, return
Als zwei separate Skripts funktionieren die Hotkeys wie erwartet. Die Hotkeys # ^ l und # ^ h funktionieren nicht mehr in einer Datei. Ist es eine Störung oder mache ich etwas falsch?
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. ; #Warn ; Enable warnings to assist with detecting common errors. SendMode Input ; Recommended for new scripts due to its superior speed and reliability. SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. LAlt::LWin LWin::LAlt CapsLock::LCtrl #^l::#^Right #^h::#^Left
Versuche dies :
LAlt:: Send, Send, return LWin:: Send, Send, return
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. ; #Warn ; Enable warnings to assist with detecting common errors. SendMode Input ; Recommended for new scripts due to its superior speed and reliability. SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. LAlt::LWin LWin::LAlt CapsLock::LCtrl ; LAlt+CapsLock+l ; switch to next virtual desktop #^l:: SendEvent ; LAlt+CapsLock+h ; switch to previous virtual desktop #^h:: SendEvent
https://autohotkey.com/docs/commands/Send.htm#SendEvent
Getestet unter Win10.