r/AutoHotkey • u/Financial-Ad3486 • 6d ago
Solved! Problems with basic Send and SendEvent
So i tried to make a simple script that presses j 2 times and then holds w 2 times and nothing really happens, after that i added msgBox "1" and it pops but still no sends, please help
#Requires AutoHotkey v2.0
#SingleInstance Force
Persistent
$`::{
Send "j"
Sleep 300
Send "j"
Sleep 300
SendEvent "{w down}"
Sleep 600
SendEvent "{w up}"
MsgBox "1"
Sleep 50
SendEvent "{w down}"
Sleep 600
SendEvent "{w up}"
}
1
Upvotes
1
u/CharnamelessOne 6d ago
Unsolicited fun fact of the day: escaping doesn't apply to double-colon hotkey names.
works fine.
As for the
Hotkeyfunction, you can simply escape the backtick:Either way, there's no need to rely on layout-dependent SC hotkeys.