Problem with hotstrings including "!" Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
d_romeo
Posts: 26
Joined: 23 Dec 2020, 12:18

Problem with hotstrings including "!"

Post by d_romeo » 05 Feb 2023, 11:38

The following two hotstrings

Code: Select all

:SE,K1:dnn::display: none!important;
:SE,K1:!!!::!important
produces this result:
display: nonemportant;
mportant
I tried with both latest version ahk v1 and v2, both are not working properly.
Tested on an empty script and with no other active scripts.


[Mod action: Moved topic from “Bug Reports”, which is meant for identifying potential bugs with AHK itself, not for help with bugs in your script]
Last edited by d_romeo on 27 Feb 2023, 16:02, edited 2 times in total.

swagfag
Posts: 6222
Joined: 11 Jan 2017, 17:59

Re: Bug con hotstring che includono "!"  Topic is solved

Post by swagfag » 05 Feb 2023, 12:46

use ::T::ext-mode hotstrings.
! is send-format speak for "press Alt"

gregster
Posts: 8990
Joined: 30 Sep 2013, 06:48

Re: Bug con hotstring che includono "!"

Post by gregster » 05 Feb 2023, 12:50

Or

Code: Select all

:SEK1:dnn::display: none{!}important;
:SEK1:!!!::{!}important
(btw, there shouldn't be commas between different options, at least according to the docs - but perhaps they get ignored anyway 🤷‍♂️)

PS: Please use topic names in English when posting in the general forums. Thank you!

d_romeo
Posts: 26
Joined: 23 Dec 2020, 12:18

Re: Bug con hotstring che includono "!"

Post by d_romeo » 27 Feb 2023, 15:59

Thanks it worked.
gregster wrote:
05 Feb 2023, 12:50
PS: Please use topic names in English when posting in the general forums. Thank you!
Sorry, I forgot to translate it.

Post Reply

Return to “Ask for Help (v1)”