Send key and text by pressing a Function Key

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
OlivierCesar
Posts: 1
Joined: 14 Jun 2021, 07:06

Send key and text by pressing a Function Key

Post by OlivierCesar » 14 Jun 2021, 07:55

Hi,

I just took a look at AHK and it looks like it is what I need.

In fact I would like that when I press by example the F1 key, the $ key to be sent.
Then, after that, a line of text then enter.

Reading the doc I could do it like that (and correct me if wrong):

F1::Send {$},command-on{enter}
!F1::Send {$},command-off{enter}

Could this work?

Many thanks

User avatar
mikeyww
Posts: 26891
Joined: 09 Sep 2014, 18:38

Re: Send key and text by pressing a Function Key

Post by mikeyww » 14 Jun 2021, 08:58

Sure, but try it and see if it works at your end, too. I had no trouble with it.

Post Reply

Return to “Ask for Help (v1)”