Posted by member 316614 on 2006-09-09 10:33:36
ok, I wanted to write a short script which googles a word or phrase I copied. So I would copy followed by a hotkey or button to search google (or wiki, or whatever).
Seems easy enough:
*script bang !google
*script exec !textappend @c:\\temporary.rc@ @evar \c@
*script exec !mzLoadVarFile c:\temporary.rc
*script exec !command ? %{evar:line}
*script exec !textdel @c:\\temporary.rc@ @.@
*script ~bang
...and works well so far, but somehow it always delets or alters the last letter of the copied text. Any idea how I have to change the syntax around '\c@ to remedy that?
Seems easy enough:
*script bang !google
*script exec !textappend @c:\\temporary.rc@ @evar \c@
*script exec !mzLoadVarFile c:\temporary.rc
*script exec !command ? %{evar:line}
*script exec !textdel @c:\\temporary.rc@ @.@
*script ~bang
...and works well so far, but somehow it always delets or alters the last letter of the copied text. Any idea how I have to change the syntax around '\c@ to remedy that?