How do I make a script activate when a sentence is typed?

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Houuse
Posts: 2
Joined: 19 Jun 2021, 16:59

How do I make a script activate when a sentence is typed?

19 Jun 2021, 17:06

Hi all,

I was wondering how I could make a shortcut activate when something like "enable_hotkeys(enter)" is typed.
I've tried:

Code: Select all

T & E & S & T & I & N & G::
send, You did it!
return 
but that seems to only work with two keys.
Can someone please help me out here? I'm new to AHK and any help will be appreciated.
gregster
Posts: 9020
Joined: 30 Sep 2013, 06:48

Re: How do I make a script activate when a sentence is typed?

19 Jun 2021, 17:09

Use hotstrings, not hotkeys:

Code: Select all

:*:testing::
send, You did it!
return 
Houuse
Posts: 2
Joined: 19 Jun 2021, 16:59

Re: How do I make a script activate when a sentence is typed?

19 Jun 2021, 17:12

Thank you! I really appreciate the help. :D

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Google [Bot], gsxr1300, HiSoKa and 267 guests