I use AutoHotkey for all sorts of texts that I use often, so among signatures or often used mail texts I also store some code snippets there for quick usage.
Some of those hotstrings work fine in editors like wordpad or ultraedit but in eclipse (my version is 3.6.1) they do not remove the hotstring correctly.
Very simple example:
- I type #echo
- I get a variable prompt
- I provide the string $myVar
- The string is inserted in the current file
As said, this works fine in lots of editors, but not in eclipse, where parts of the hotstring - e.g. #ec - remain in front of the output, the hotstring is not removed completely. The strange thing is, sometimes it leaves 1 letter, sometimes 3, without any obvious logic.
In my AutoHotkey file foo.ahk I have some code like this:
::#echo::
InputBox, VAR, User input, Please enter the variable VAR., , 320, 130
SendInput,
(
<?php echo(%VAR%); ?>
)
Return
As a newbie with AutoHotkey I had some other problems before, which I could solve, so they should not be the source of the described problem.
- Scripts with special characters like German Umlauts have to be encoded in UTF8
- Scripts or compiled scripts have to be run as administrator
I have no idea what the reason for the eclipse problem could be, any hint is appreciated.