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 

Hotkey for Home, End, page up , down

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



Joined: 11 Feb 2010
Posts: 4

PostPosted: Thu Feb 11, 2010 11:55 am    Post subject: Hotkey for Home, End, page up , down Reply with quote

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



Joined: 17 May 2007
Posts: 1002
Location: Germany - Deutschland

PostPosted: Thu Feb 11, 2010 12:15 pm    Post subject: Reply with quote

For me it works.
Back to top
View user's profile Send private message
HotKeyIt



Joined: 18 Jun 2008
Posts: 4652
Location: AHK Forum

PostPosted: Thu Feb 11, 2010 12:40 pm    Post subject: Reply with quote

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



Joined: 11 Feb 2010
Posts: 4

PostPosted: Thu Feb 11, 2010 12:42 pm    Post subject: Reply with quote

@HotKeyIt

That works for me! Thanks a lot for your help
Back to top
View user's profile Send private message
mdiephuis



Joined: 11 Feb 2010
Posts: 4

PostPosted: Tue Feb 16, 2010 12:33 pm    Post subject: Reply with quote

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



Joined: 27 May 2007
Posts: 4999

PostPosted: Tue Feb 16, 2010 1:05 pm    Post subject: Reply with quote

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 Wiki FAQ
TF : Text files & strings lib, TF Forum
Back to top
View user's profile Send private message
mdiephuis



Joined: 11 Feb 2010
Posts: 4

PostPosted: Tue Feb 16, 2010 1:11 pm    Post subject: Reply with quote

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






PostPosted: Tue Feb 16, 2010 1:19 pm    Post subject: Reply with quote

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}
Back to top
Display posts from previous:   
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