AutoHotkey Community

It is currently May 27th, 2012, 6:59 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: February 12th, 2012, 8:00 am 
Offline

Joined: September 19th, 2009, 10:16 pm
Posts: 31
I tried to accelerate the auto-replace code writing.
For that purpose I wrote the following code:
::ar::
Send, {Home}
Send ::^{Right}{BS}::{Home}{Right}
Return

UNFORTUNATELY, the {Home} command does not move cursor to the beginning of the line within SciTE4AutoHotkey. But, it moves it in Notepad.
So, to walk around the problem, I had to change my code to:
::ar::
Send, +{Home}
Send, {Left}
Send ::^{Right}{BS}::{Home}{Right}
Return

Now (as an example), let's imagine you type in SciTE4AutoHotkey
rel relativity ar (and press Space)
YOU WILL GET:
::rel::relativity
(And, your cursor will be in the position to add the suitable auto-replace option. This code accelerates the process of adding new hotstrings.)

QUESTION: Why the {Home} command does not move cursor to the beginning of the line within SciTE4AutoHotkey?
Is it a bug?
Or, Am I doing something wrong here?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 13th, 2012, 2:39 am 
Offline

Joined: July 20th, 2009, 6:01 am
Posts: 166
Location: Amsterdam
Have you tried do it with actual key pressed with your fingers on your keyboard? You will see that autocomplete gets activated as you type "ar" (it suggests "Array" and other things), and the pressing Home goes to the first command in the autocomplete list. So perhaps instead of "ar" try a letter combination that doesn't occur anywhere else, like "aqq".


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: Google [Bot], migz99, sjc1000 and 73 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