strange hotstring behavior
#1
Posted 17 August 2012 - 09:43 PM
:*:xxx::some text
these hotstrings have always worked perfectly. They erase the triggering string and replace it with the text without an ending character. Now, however, they all are doing the same strange thing. They type type all but the last characters of the triggering string and then erase the final characters of the replacement text, like this:
:*:xxx::this text
now produces this result:
xxthis te
or this:
:*:mygm::mymail@gmail.com
now gives:
mygmymail@gmail.
What in the world is going on! - help
#2
Posted 17 August 2012 - 11:32 PM
First question: what changed ? New computer ? New version of AHk?
question two: are you trying to use something on a remote computer ?
third question: have you tried closing all running ahk scripts and opening just this one ?
question four: have you tried rebooting your computer?
#3
Posted 18 August 2012 - 05:13 PM
First of all, I'm running the same version of autohotkey that I've always had and the same computer. I am only running one script and I have tried rebooting. The one thing that has been different since the hotstrings have been malfunctioning is that my computer was controlled remotely by a technician who was setting up our local network. We added a new computer and the AHK script doesn't return correct hotstrings on that computer either. I hope this helps. I really don't understand it.
#4
Posted 18 August 2012 - 07:33 PM
I'm not sure how that might affect your computer's operation.We added a new computer
The way AHk works for me is to use hotkeys and hotstrings on my local computer,
with the script running on my local computer.
Are you using Ahk in this same manner?
or are you trying to use it with a remote computer ?
At times I need to "log in" to a remote computer to edit files.
I have found that there is somewhat of a delay before keys, click and mousemoves are recognized.
I haven't tried, but don't think AHk would do well in this type of setup.
I've heard of systems where the local computer is primarily an interface,
All programs and data are "servered" from a main system that stores the applications and/or the data.
Is it possible that your system is something like this ?
Can you mak a copy of your original script and modify the hotstrings by removing the *
(so that an ending charcter is required) ?
Make sure only the modified version of the script is running and see what results you get.
#5
Posted 18 August 2012 - 08:47 PM
::*xy::printthis
result after typing the hot and an ending character:
*xyprintt
From the above, it looks like the B option is turned off ,but I also explicitly turned it on and it gave the same results.
#6
Guests
Posted 18 August 2012 - 09:05 PM
Other hotkey programs?
What if you write a new script (close all others) with just this:
::btw::by the way
#7
Posted 18 August 2012 - 10:59 PM
::btw::by the way
here is what I get when I type the triggering string and follow it with a line feed: btwby the w
I just don't get it. they have always worked great before.
#8
Posted 18 August 2012 - 11:16 PM
What version of AHk are you using?
Do you compile the script of just run the *.ahk version?
clipboard = version is %A_AhkVersion% msgbox version is %A_AhkVersion%
Based in the effort and tests done, it seems like it is time to go back to the technician and ask "what did you do?"
#9
Posted 19 August 2012 - 01:32 AM
#10
Guests
Posted 19 August 2012 - 05:59 AM
andMakes Send synonymous with SendInput or SendPlay rather than the default (SendEvent). Also makes Click and MouseMove/Click/Drag use the specified method.
Source: http://www.autohotke...ds/SendMode.htm
Sets the delay that will occur after each keystroke sent by Send or ControlSend.
Source: http://www.autohotke...SetKeyDelay.htm
If all else fails, you could try to use Clip() to simply paste texts instead of sending them (you will retain your current clipboard) <!-- m -->http://www.autohotke....html#clipboard<!-- m -->
#11
Posted 20 August 2012 - 02:15 PM




