Hot string # problem Topic is solved

Get help with using AutoHotkey and its commands and hotkeys
User avatar
PuzzledGreatly
Posts: 858
Joined: 29 Sep 2013, 22:18

Hot string # problem

04 Jan 2020, 21:58

I have two hotstrings:

Code: Select all

:*?:###::#ifwinactive
:*?:mmm::msgbox, 4096, OK, 
mmm returns "msgbox, 4096, OK, " as expected but ### returns "ifwinactive". Why is this and is there a fix? Thanks.
User avatar
Masonjar13
Posts: 1514
Joined: 20 Jul 2014, 10:16
GitHub: Masonjar13
Location: Не Россия

Re: Hot string # problem  Topic is solved

04 Jan 2020, 22:15

Code: Select all

:*?T:###::#ifwinactive
:*?:###::+3ifwinactive
By default, hotstrings are interpreted like send. Modifiers are able to be used. T doesn't use modifiers, just sends raw, so that's what I would recommend using here.
OS: Windows 10 Pro | Editor: Notepad++
My Personal Function Library | Old Build - New Build
User avatar
PuzzledGreatly
Posts: 858
Joined: 29 Sep 2013, 22:18

Re: Hot string # problem

05 Jan 2020, 08:04

Thanks for the explanation and the solution. using T works.

Return to “Ask For Help”

Who is online

Users browsing this forum: barbaque, barbudo2005, Bing [Bot], burque505, colt, Getfree, Google [Bot], HotKeyIt, seamoon and 173 guests