How to add space in hotsrings automatically ? Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
hancre
Posts: 248
Joined: 02 Jul 2021, 20:51

How to add space in hotsrings automatically ?

15 Oct 2021, 19:07

I hope that a space would be added in hotstrings automatically.

I have this following script. It works.

Code: Select all

:*:;t::
Send % "abc. "
Return


But I want to trim it.
The hotstrings with a space makes my file so long.

Make the usual hotstrings added a space. If necessary, a blank in the end is removed.
→ This style is also Ok.
hancre
Posts: 248
Joined: 02 Jul 2021, 20:51

Re: How to add space in hotsrings automatically ?

15 Oct 2021, 20:04

flyingDman wrote:
15 Oct 2021, 19:20

Code: Select all

Hotstring(":*:;t", ":abc. ")
Your script works.
When I run it independently by CodeQuickTest(ahk editor), your script works.
When I add it to my exisiting ahk file, it doesn't work. → I often get this problem.

anyway thanks a lot for your help. ^^;;
User avatar
flyingDman
Posts: 2817
Joined: 29 Sep 2013, 19:01

Re: How to add space in hotsrings automatically ?

15 Oct 2021, 20:20

I just added it to the autoexec portion of a long script that I have. And it works just fine.
14.3 & 1.3.7
hancre
Posts: 248
Joined: 02 Jul 2021, 20:51

Re: How to add space in hotsrings automatically ?

15 Oct 2021, 20:26

flyingDman wrote:
15 Oct 2021, 20:20
Yes, I've got the same problem when I combine the one and the others. I hope that they would be fixed when I change my notebook.

Thanks a lot for your help again.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Panaku, Rohwedder, roysubs and 326 guests