Text Expansion not working properly in some apps

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
deets
Posts: 43
Joined: 29 Mar 2022, 02:00

Text Expansion not working properly in some apps

Post by deets » 29 Mar 2024, 19:31

Simple expansion such as

Code: Select all

::mon::Monday
::tue::Tuesday
When I type mon in an app such as Todoist, it expands and gives me mMonday and tTuesday instead.

Is there any universal way to correct this behavior in certain apps?

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

Re: Text Expansion not working properly in some apps

Post by mikeyww » 29 Mar 2024, 21:34

Hello,

This might be caused by an auto-complete or type-ahead feature. You would probably need to try to disable it in your target program.

deets
Posts: 43
Joined: 29 Mar 2022, 02:00

Re: Text Expansion not working properly in some apps

Post by deets » 01 Apr 2024, 19:16

mikeyww wrote:
29 Mar 2024, 21:34
Hello,

This might be caused by an auto-complete or type-ahead feature. You would probably need to try to disable it in your target program.
Unfortunately that's not possible in most of these apps - Telegram, Todoist to name a few. Is there any workaround as such?

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

Re: Text Expansion not working properly in some apps

Post by mikeyww » 01 Apr 2024, 19:27

Settings ➤ General ➤ Smart date recognition ➤ Off

deets
Posts: 43
Joined: 29 Mar 2022, 02:00

Re: Text Expansion not working properly in some apps

Post by deets » 10 Apr 2024, 08:22

mikeyww wrote:
01 Apr 2024, 19:27
Settings ➤ General ➤ Smart date recognition ➤ Off
that only solves text expansion for dates but I have way more in my list.

E.g.
::exp::expand

and it will come out as "eexpand"

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

Re: Text Expansion not working properly in some apps

Post by mikeyww » 10 Apr 2024, 08:53

I have not looked in detail at the program. You could see whether there are other options to disable the type-ahead. Others here may have some additional ideas, but you have a situation where that program is doing the acting based on your script's output. You would either need to alter the program or have your script take action upon the program's action. For some programs, sending a Backspace, Esc, or other key can work, but I have not tested whether this would work here.

Post Reply

Return to “Ask for Help (v1)”