can code these things for themselves, once you see a few examples of how this works, it will be
much easier for you to write more complicated triggers.
today someone asked me,
i am sick of having to type put x portable.hole
how do i make an alias that puts everything in my portable.hole when i type put x in portable.hole
warning, once u enable this alias every time you type ph in any line, it will not type the rest of the line behind it
so the syntax would be
put all.coin ph
regex:
Code: Select all
^(.*)ph$
Code: Select all
--echo(matches[2] .. "portable.hole\n") -- debug
send(matches[2] .. "portable.hole")
now this does have one problem, when you type l in ph, nyss has an alias that does l and it catches this, so maybe use caps when using it...
you can alternatively get much more complicated with your variables,
his could be set to bash target etc..
and do
regex:
Code: Select all
^(.*)ph(.*)$
and refer to this as
Code: Select all
--echo(matches[2] .. "portable.hole" .. matches[3]) -- debug
send(matches[2] .. "portable.hole" .. matches[3])
we may need to add spaces there, but thats what the debug is for
--echo(matches[2] .. " " .. "portable.hole" .. " " .. matches[3]) -- debug
send(matches[2] .. " " .. "portable.hole" .. " " .. matches[3]) -- debug