AutoHotkey Community

It is currently May 26th, 2012, 11:53 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: November 12th, 2009, 9:53 pm 
Offline

Joined: November 12th, 2009, 9:37 pm
Posts: 8
Hi,
I am new to AHK, but already looking for an improvement. :)
As far as I know, it allows to expand a short term that is entered by the user.
I would like to know if it could be used to expand a short term that already exists in the text ? For example, let's say I have a document open that already contains the word "PC" and that "PC" expanded form is alrealy
defined as "Personal Computer". Would there be a way to
expand "PC" into "Personal Computer" in this situation? I think the solution would be for the user to place the cursor at the right of the short term and let AHK select it and replace it with its expanded form.


Regards.

Chris

[Moved from Wish List forum. ~jaco0646]


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 12th, 2009, 9:56 pm 
very possible. check the manual and search the forum.

mod, please move to Ask Fro Help forum.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 13th, 2009, 1:52 am 
Offline

Joined: October 7th, 2006, 4:50 pm
Posts: 3157
Location: MN, USA
Triggering hotstrings via text selected in a window?
Scan and correct text


Report this post
Top
 Profile  
Reply with quote  
PostPosted: November 13th, 2009, 5:29 pm 
Offline

Joined: November 12th, 2009, 9:37 pm
Posts: 8
Hi jaco0646,
Thank you for the references.
"Triggering hotstrings via text selected in a window" is very helpful.
However "scan and correct text" is too complex in my case. What I need instead is a script that selects the word -whatever its length- that is immediately at the left of the cursor (the same way as "Ctrl+Shift+Left" acts in Word).
Is it possible to have AHK do this operation ?
Thank you for you help.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 13th, 2009, 5:39 pm 
Offline

Joined: May 27th, 2007, 9:41 am
Posts: 4999
Yes,
Code:
Send, ^+{Left}^c
should copy the word LEFT of the caret, ^x will cut it.

_________________
AHK FAQ
TF : Text files & strings lib, TF Forum


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Problem solved
PostPosted: November 13th, 2009, 7:50 pm 
Offline

Joined: November 12th, 2009, 9:37 pm
Posts: 8
Hi HugoV & jaco0646,
My problem is solved. Thank you for your great help and responsiveness.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: hyper_, Leef_me, patgenn123, Pulover, rbrtryn, tidbit, XstatyK and 21 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group