Dynamic Hotstrings
Re: Dynamic Hotstrings
Added a little status update to the thread. If anyone is interested, please pm me.
Re: Dynamic Hotstrings
Code: Select all
#include Hotstring.ahk
Hotstring("x(\d+)x", "comment", 3)
Return
comment:
id = % $1
FormatTime, TimeString,, LongDate
Send <Author> Teerees {End} `n<Date> %TimeString% {End} `n<Id> %id%
Return
Re: Dynamic Hotstrings
Code: Select all
#include Hotstring.ahk
Hotstring("x(\d+)x", "comment", 3)
Return
comment:
id := $.value(1)
FormatTime, TimeString,, LongDate
Send <Author> Teerees {End} `n<Date> %TimeString% {End} `n<Id> %id%
Return
Re: Dynamic Hotstrings
This library is seriously in need of a rewrite with all it's limitations. I think there are a couple of ideas flying around in this thread. If anyone is thinking of it, knock yourselves out.
As I'm a faithful Linux user now, you probably won't see me updating it anymore . . .
As I'm a faithful Linux user now, you probably won't see me updating it anymore . . .
Re: Dynamic Hotstrings
Found why... In original code, the following lines (near the end of Hotstring.ahk, lines 138-139)Guest wrote:The output of example Hotstring("i)colou?rs","$0 $0 everywhere!",3) ; Regex, Case insensitive is exactly that, $0 $0 everywhere! while it should be colours colours everywhere! - The other examples do work.
Loop, % local$.Count()
StringReplace, toSend,toSend,% "$" . A_Index,% local$.Value(A_index),All
should be:
Loop, % local$.Count() + 1 ; to include $0, not only $1, $2, etc.
StringReplace, toSend,toSend,% "$" . A_Index - 1,% local$.Value(A_index - 1),All
Author of freeware Quick Access Popup, the powerful Windows folders, apps and documents launcher!
Now working on Quick Clipboard Editor
The Automator's Courses on AutoHotkey
Now working on Quick Clipboard Editor
The Automator's Courses on AutoHotkey
Re: Dynamic Hotstrings
i've submitted some pull requests which fix some of the bugs mentioned, but they haven't been accepted. users might want to review them and make the appropriate changes:
https://github.com/menixator/hotstring/pulls
https://github.com/menixator/hotstring/pulls
Re: Dynamic Hotstrings
Is there a v2 rewrite somewhere?
Return to “Scripts and Functions (v1)”
Who is online
Users browsing this forum: No registered users and 178 guests