In the light of the recent announcement that V1 is "deprecated", I am trying to move to V2. But I have some useful dynamic hotstrings (using regex) which depend on "#Include Hotstring.ahk", using the file at https://github.com/menixator/hotstring. (There is another such script, which I think achieves something similar, at https://www.autohotkey.com/board/topic/114764-regex-dynamic-hotstrings/)
But is there anything compatible with V2 which has this functionality? I would try to update it myself if I understood it!
Many thanks!
AutoHotkey V2: dynamic hotstrings with regex
Re: AutoHotkey V2: dynamic hotstrings with regex
I'm not sure, but if you are starting to code in v2, you can probably convert the first one yourself. The script is short.
HasKey becomes Has.
Count() becomes Length for arrays.
Use the "&" syntax in RegExMatch, which now returns objects instead of pseudoarrays.
IsUpper instead of upper.
When you finish, you will know a lot more about v2, so your future coding will proceed more quickly.
You can then also post the result for others to use.
HasKey becomes Has.
Count() becomes Length for arrays.
Use the "&" syntax in RegExMatch, which now returns objects instead of pseudoarrays.
IsUpper instead of upper.
When you finish, you will know a lot more about v2, so your future coding will proceed more quickly.
You can then also post the result for others to use.
Re: AutoHotkey V2: dynamic hotstrings with regex
Haven't tried it, but there is also viewtopic.php?f=83&t=104637&p=505789#p464798
But you can use v1 along with v2...
But you can use v1 along with v2...