added OnOffToggle parameter
https://github.com/8LWXpg/RegExHotstring/releases/tag/v4.1
RegExHotstring - dynamic RegEx Hotstrings
Re: RegExHotstring - dynamic RegEx Hotstrings
If it can support '# IfWin' and '# HotIf', it will be more powerful and practical. Eagerly anticipating。
Re: RegExHotstring() dynamic RegEx Hotstrings
Hello,
I can't trigger the RegEX if it containts more than one word.
for exemple I want to tringer it when ever I type @Robot commande param1 param2 , it shoud execute the commande function with param1, param2
@8LWXpg , can you help make it work?
Thank your for your support.
I can't trigger the RegEX if it containts more than one word.
for exemple I want to tringer it when ever I type @Robot commande param1 param2 , it shoud execute the commande function with param1, param2
Code: Select all
RegExHotstring("@Robot\s(commande)\s(param1)\s(param2) /t}", commande , "C*") ; the trigger can be space or tabulation.
Thank your for your support.
8LWXpg wrote: ↑23 Feb 2023, 08:35current work around is to make two separate hotstrings, one take "[.,;:]" at the end and use "*" option, another doesn't.frabjous wrote: ↑20 Feb 2023, 16:25This script is excellent but I am having trouble creating a dynamic hotstring which is triggered by either a space or a punctuation mark at the end of the entered text. I thought I could do this with the recently added "no end key" option and including the punctuation marks in the hotstring (along the lines "[.,;: ]") but then I cannot make it work when a space is typed. Am I missing something?
Re: RegExHotstring() dynamic RegEx Hotstrings
as said in the readme, it's unable to match white space characters.fmoon wrote: ↑09 Feb 2024, 12:28Hello,
I can't trigger the RegEX if it containts more than one word.
for exemple I want to tringer it when ever I type @Robot commande param1 param2 , it shoud execute the commande function with param1, param2
@8LWXpg , can you help make it work?Code: Select all
RegExHotstring("@Robot\s(commande)\s(param1)\s(param2) /t}", commande , "C*") ; the trigger can be space or tabulation.
Thank your for your support.
-
- Posts: 13
- Joined: 09 Jan 2019, 16:52
Re: RegExHotstring - dynamic RegEx Hotstrings
is there an option to cancel the replacement on a condition in the callback?
for example
for example
Code: Select all
rand(match) {
if (match[0] != 'aaa') {
; cancel and don't replace and return
}
static char := "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
static char_len := StrLen(char)
loop match[1] {
r := Random(1, char_len)
str .= SubStr(char, r, 1)
}
SendText(str)
}
Re: RegExHotstring - dynamic RegEx Hotstrings
You have two ways:AladdinMhemed wrote: ↑25 Feb 2024, 00:48is there an option to cancel the replacement on a condition in the callback?
- Catch the trigger string and send it back.
- Use the B0 option to suppress the trigger string remove, then send backspace characters equal to the length of the trigger string, followed by the replace string.
Re: RegExHotstring - dynamic RegEx Hotstrings
Alright, Ladies and Gents: how's everyone using this? Great function, by the way!
Re: RegExHotstring - dynamic RegEx Hotstrings
Remove SendLevel in script, now users need to decide where to change SendLevel.
https://github.com/8LWXpg/RegExHotstring/releases/tag/v5.0
And new doc added
https://github.com/8LWXpg/RegExHotstring?tab=readme-ov-file#how-to-trigger-regular-hotstring-in-the-same-script
https://github.com/8LWXpg/RegExHotstring/releases/tag/v5.0
And new doc added
https://github.com/8LWXpg/RegExHotstring?tab=readme-ov-file#how-to-trigger-regular-hotstring-in-the-same-script
Return to “Scripts and Functions (v2)”
Who is online
Users browsing this forum: No registered users and 40 guests