amz
Joined: 22 Oct 2009 Posts: 1
|
Posted: Mon Nov 02, 2009 10:24 pm Post subject: Need help with script to deal with Microsoft Word autotext |
|
|
I am new to Autohotkey and did not see anything applicable in these forums. I want to create a script to help with problems with autotext in Microsoft Word. The problem with Word’s function is that it includes both text to the left of the cursor and text to the right, and I often am editing with old text to the right of the cursor. so when I hit F3 after typing the text I wish to replace, it instead parses the whole text to both sides of the cursor and doesn't recognize it (the late, and in my case, lamented Word for DOS looked only to the left when evaluating an autotext entry when you hit F3).
I tried the following script, thinking it would capture the F3 without requiring a space or other character afterwards, then send a space, move the cursor back left (so that it was positioned at the end of the text I had typed before F3), and then send a command to Word that does the same as F3, namely ctrl alt v. However, it apparently isn’t capturing the F3, because I get a message from Word that it doesn’t recognize the autotext entry, which means it received the F3. What am I doing wrong? (I wouldn't be surprised if there are other problems with this script, but at least initially, I have to deal with the F3 going to Word rather than to AutoHotkey.) Thank you for any help you can provide.
:*::F3::{space}left ctrl alt v |
|