| View previous topic :: View next topic |
| Author |
Message |
mdiephuis
Joined: 11 Feb 2010 Posts: 4
|
Posted: Thu Feb 11, 2010 11:55 am Post subject: Hotkey for Home, End, page up , down |
|
|
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 |
|
 |
aaffe
Joined: 17 May 2007 Posts: 1002 Location: Germany - Deutschland
|
Posted: Thu Feb 11, 2010 12:15 pm Post subject: |
|
|
| For me it works. |
|
| Back to top |
|
 |
HotKeyIt
Joined: 18 Jun 2008 Posts: 4652 Location: AHK Forum
|
|
| Back to top |
|
 |
mdiephuis
Joined: 11 Feb 2010 Posts: 4
|
Posted: Thu Feb 11, 2010 12:42 pm Post subject: |
|
|
@HotKeyIt
That works for me! Thanks a lot for your help |
|
| Back to top |
|
 |
mdiephuis
Joined: 11 Feb 2010 Posts: 4
|
Posted: Tue Feb 16, 2010 12:33 pm Post subject: |
|
|
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 |
|
 |
SoLong&Thx4AllTheFish
Joined: 27 May 2007 Posts: 4999
|
Posted: Tue Feb 16, 2010 1:05 pm Post subject: |
|
|
| 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 |
|
 |
mdiephuis
Joined: 11 Feb 2010 Posts: 4
|
Posted: Tue Feb 16, 2010 1:11 pm Post subject: |
|
|
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 |
|
 |
Guest
|
Posted: Tue Feb 16, 2010 1:19 pm Post subject: |
|
|
| 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 |
|
 |
|