Press a keyboard hotkey or write words.
- Key modifiers:
- Shift:
+- Control:
^- Alt:
!
!> Avoid using hotkeys with key modifiers, since they have higher chance of failing/causing keyboard input interference.
Pressionar uma hotkey do teclado ou escrever palavras.
- Key modifiers:
- Shift:
+- Control:
^- Alt:
!
!> Evite usar hotkeys com key modifiers, pois eles tem maior chance de falhar/causar interferencia de keyboard input.
presskey(key, repeat*, delay*)
- Parameters
key:name of the key, must be the same as in the AutohHotkey's Key list.repeat:optional param; times to press, default is 1.delay:optional param; the interval delay in miliseconds after each key press, default is 250.
Return Value
Nothing.
Examples
- Press Down arrow key
3times, wait400ms after each press.
presskey(Down, 3, 400)- Press F1 key holding
Shiftonce.
presskey(+F1)- Press F1 key holding
Ctrlonce.
presskey(^F1)- Write "oldbot rocks".
presskey(oldbot rocks)