Untitled

mail@pastecode.io avatar
unknown
plain_text
18 days ago
693 B
1
Indexable
Never
#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
#Persistent  ; Keep the script running
#SingleInstance Force  ; Ensures only one instance of the script is running

SetKeyDelay, 0  ; No delay between key presses

; Define a function to simulate pressing F2 and Enter
PressF2Enter() {
    Send {F2}
    Sleep 10  ; Small delay to ensure F2 is processed before Enter
    Send {Enter}
}

; Define the hotkey for Shift + Alt + A
<+!A::
    ; Call the function to press F2 and Enter
    PressF2Enter()
    return

; Set a timer to repeat the action every 1/3 second (333 milliseconds)
SetTimer, PressF2Enter, 333

; Press Esc to stop the script
Esc::ExitApp
Leave a Comment