AutoHotkey Community

It is currently May 27th, 2012, 2:30 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 8 posts ] 
Author Message
PostPosted: February 11th, 2010, 12:55 pm 
Offline

Joined: February 11th, 2010, 12:50 pm
Posts: 4
Hi!

I cann't seem to get a very simple script to work. Namely to get control - left arrow to give the 'Home' command, control-right arrow the 'End' etc


i.e
^Left::Home
^Right::End
^Up::PgUp
^Down::PgDn

The first 2 lines result in page up/down instead of home/end and the last two lines don't seem to do anything..

tnx!!


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 11th, 2010, 1:15 pm 
Offline

Joined: May 17th, 2007, 12:07 pm
Posts: 1004
Location: Germany - Deutschland
For me it works.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 11th, 2010, 1:40 pm 
Offline

Joined: June 18th, 2008, 8:36 am
Posts: 4923
Location: AHK Forum
Try it that way
Code:
^Left::Send {Home}
^Right::Send {End}
^Up::Send {PgUp}
^Down::Send {PgDn}

_________________
AHK_H (2alpha) AHF TT _Struct WatchDir Yaml _Input ObjTree RapidHotkey DynaRun :wink:


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 11th, 2010, 1:42 pm 
Offline

Joined: February 11th, 2010, 12:50 pm
Posts: 4
@HotKeyIt

That works for me! Thanks a lot for your help


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 16th, 2010, 1:33 pm 
Offline

Joined: February 11th, 2010, 12:50 pm
Posts: 4
New question if I may,

I am afraid I can not seem to get the same combination working with the shift button down to make a selection. i.e.
From
^Left::Send {Home}
To something like this
^+Left::Send {LShift & Home}

So I basically want it to select everything on a line from the current cursor position to home

tnx


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 16th, 2010, 2:05 pm 
Offline

Joined: May 27th, 2007, 9:41 am
Posts: 4999
Code:
^+Left::Send {LShift}{Home} ; or
^+Left::Send {LShift down}{Home down}{Home up}{LShift up}
for example, btw look at the scripts section a similar script has been posted last week or so.

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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 16th, 2010, 2:11 pm 
Offline

Joined: February 11th, 2010, 12:50 pm
Posts: 4
Tnx for the example. The first line didn't do anything, the second one removed the entire selected line. But it did help me to come up with this:
Code:
^+Left::Send {LShift down}{Home}
^+Right::Send {LShift down}{End}


Which works like a charm

tnx


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 16th, 2010, 2:19 pm 
mdiephuis wrote:
Which works like a charm

...that should be leaving LShift down (which is not good)...

Not tested...

Code:
^+Left::Send, +{Home}
^+Right::Send, +{End}


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: Alpha Bravo, Bing [Bot], Google [Bot], LazyMan, rbrtryn, Yahoo [Bot] and 19 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