F3 sends a key such as x

Get help with using AutoHotkey and its commands and hotkeys
Darkspectro
Posts: 16
Joined: 05 May 2018, 22:35

F3 sends a key such as x

19 Jan 2021, 15:59

I need a script in which pressing F3 sends a key such as x.
and that all that is sent in the shortest possible time I did this but it is slow I think

Code: Select all

F3:: sendinput x{enter}x{enter}x{enter}x{enter}x{enter}x{enter}
User avatar
mikeyww
Posts: 5341
Joined: 09 Sep 2014, 18:38

Re: F3 sends a key such as x

19 Jan 2021, 18:27

It was quite fast when I tested it.
User avatar
boiler
Posts: 6868
Joined: 21 Dec 2014, 02:44

Re: F3 sends a key such as x

20 Jan 2021, 06:03

Perhaps this is the issue:
If a script other than the one executing SendInput has a low-level keyboard hook installed, SendInput automatically reverts to SendEvent (or SendPlay if SendMode InputThenPlay is in effect). This is done because the presence of an external hook disables all of SendInput's advantages, making it inferior to both SendPlay and SendEvent.
Source: SendInput documentation

Return to “Ask For Help”

Who is online

Users browsing this forum: alexsu, mikeyww, payaAHK, Plikis and 53 guests