Very slow & hanging hotstring Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
omareg94
Posts: 94
Joined: 27 Jun 2016, 22:46

Very slow & hanging hotstring

Post by omareg94 » 10 Oct 2023, 05:41

I have a hotstring defined as following:

Code: Select all

:*XP1:cdm<::
  SendInput, "Heyy"
return
After a while of using my PC, on Windows 11, many times, when I type `cdm<` hotstring on any notepad window, it becomes so slow or hanging to continue typing/sending input until I press any keyboard button to make it continue.

This video shows how it behaves on a notepad window:
https://youtu.be/H7NmC1kmS8I
Many times the hotstring hangs & doesn't continue until I press a button.

Other Notes:
- Defining hotstring as the following also still shows the issue.

Code: Select all

:*:cdm<::
  SendInput, "Heyy"
return
- My cpu & memory usage is on normal level when this issue happens:
image.png
image.png (13.92 KiB) Viewed 339 times
- Most of the time this issue is fixed by restarting PC, but it re-appears again.

- On other text input windows, the hotstring is very fast & doesn't have the issue.
Example:
ahk_class Chrome_WidgetWin_1
ahk_exe chrome.exe

- The window/class info of notepad:
ahk_class Notepad
ahk_exe Notepad.exe

- I added Autohotkey to antivirus exceptions

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

Re: Very slow & hanging hotstring  Topic is solved

Post by mikeyww » 10 Oct 2023, 05:44

Notepad on Windows 11 has an issue with SendInput in AutoHotkey, so use SendEvent instead.

Code: Select all

#Requires AutoHotkey v1.1.33

:SEK10*:cdm<::Heyy

omareg94
Posts: 94
Joined: 27 Jun 2016, 22:46

Re: Very slow & hanging hotstring

Post by omareg94 » 10 Oct 2023, 06:08

Thank you a lot this solved the problem.

Post Reply

Return to “Ask for Help (v1)”