| View previous topic :: View next topic |
| Author |
Message |
thomasl
Joined: 16 Jun 2005 Posts: 92
|
Posted: Thu Nov 24, 2005 10:18 am Post subject: sending a|a |
|
|
Sending the sequence a|a produces aa\. (The character between the a's is ASCII 124.)
This happens with both hotstrings and the Send command.
thomasl
PS: Win2K SP4, 1.40.08 |
|
| Back to top |
|
 |
mario_a
Joined: 12 Dec 2004 Posts: 51
|
Posted: Thu Nov 24, 2005 8:02 pm Post subject: |
|
|
Nope, works fine here.
Sometimes such behaviour is caused by the editor you are using.
Try sending the keys to Notepad to verify this. |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10474
|
Posted: Fri Nov 25, 2005 11:40 am Post subject: |
|
|
| If you use multiple languages or keyboard layouts, it could also be due to the corresponding item in the FAQ. |
|
| Back to top |
|
 |
thomasl
Joined: 16 Jun 2005 Posts: 92
|
Posted: Fri Nov 25, 2005 2:14 pm Post subject: |
|
|
No, single language.
But I have found the problem. I have this:
+\:: Send, \
and this:
^+\:: Send, |
What happens (not entirely illogical but also not entirely what I would have expected) is that the sent | triggers the first hotkey (ie +\).
Nevertheless, something fishy must be going on because once I changed the second definition to
^+\:: Send, a|a
I received aa\. I now understand why there is a \ but I do not understand why it comes up *after* the second a. |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10474
|
Posted: Sat Nov 26, 2005 9:16 pm Post subject: |
|
|
That happens due to the following sequence:
1) Pressing the hotkey causes the Send command to trigger another hotkey (as you know).
2) The Send command is designed to be uninterruptible, so its triggering of another hotkey waits until the Send finishes.
3) The second hotkey runs and sends its character.
This issue can be solved by putting a $ prefix before any hotkey you don't want triggerable by the Send command. This makes it into a hook hotkey. For example: $+\:: Send, \ |
|
| Back to top |
|
 |
|