AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Need help with script to deal with Microsoft Word autotext

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
amz



Joined: 22 Oct 2009
Posts: 1

PostPosted: Mon Nov 02, 2009 10:24 pm    Post subject: Need help with script to deal with Microsoft Word autotext Reply with quote

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
Back to top
View user's profile Send private message
hugov



Joined: 27 May 2007
Posts: 2181

PostPosted: Mon Nov 02, 2009 10:39 pm    Post subject: Reply with quote

I think you are confusing:
http://www.autohotkey.com/docs/Hotstrings.htm
with
http://www.autohotkey.com/docs/Hotkeys.htm

You have a hotstring and you need a hotkey.

Also look at the http://www.autohotkey.com/docs/KeyList.htm and symbols you can use.
_________________
Tut 4 Newbies
TF : Text file & string lib, TF Forum
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group