How to keep the key repeating...

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
VISHAL

How to keep the key repeating...

05 Mar 2018, 02:20

Hi!

My laptop's Up Arrow key broke down, and I made the following script:
Shift::Send {UP}

where Shift works as Up key, but it doesn't work same as the Real Up Arrow key, where Pressing the Up key it will keep going up until release...

In short it want a script where by pressing (Any) Shift button the Up arrow key would continue working as UP Key until Shift key is released.

Thanks in advanced...
User avatar
Nwb
Posts: 444
Joined: 29 Nov 2016, 08:56

Re: How to keep the key repeating...

05 Mar 2018, 03:43

Like this?

Code: Select all

$Shift:: Send, {UP up}
$Shift Up:: Send, {Up down}
I am your average ahk newbie. Just.. a tat more cute. ;)
VISHALVODRO
Posts: 26
Joined: 02 Apr 2016, 05:53

Re: How to keep the key repeating...

05 Mar 2018, 06:14

Hi!
Thanks for the reply, looks like that didn't work for me, what I wanted is, if I press Shift key then it would be mapped as Up arrow key. But unlike default windows key, it doesn't continue keep going up, it goes only 1 at a single press. I wanted it to continue going up until released...
GEV
Posts: 1002
Joined: 25 Feb 2014, 00:50

Re: How to keep the key repeating...

05 Mar 2018, 06:24

Code: Select all

Shift::Up
or

Code: Select all

RShift::Up
if you need LShift for other operations with Shift.
See
https://autohotkey.com/docs/misc/Remap.htm
VISHALVODRO
Posts: 26
Joined: 02 Apr 2016, 05:53

Re: How to keep the key repeating...

05 Mar 2018, 06:45

Shift::Up
This works besically, but when I try replacing the Shift with Virtual Key (Multimedia Keyboard) it just works for single instance...

vkAC::Up
Works only once, not repeatedly like Shift::Up

Any idea to combine these both???
VISHALVODRO
Posts: 26
Joined: 02 Apr 2016, 05:53

Re: How to keep the key repeating...

05 Mar 2018, 07:02

Or else if you could tell me this formula:

a=b & b=c

so I wanted a=c but not this way: a::c

It has to trigger like this
A=B and B would bring C when A would be pressed...
Rohwedder
Posts: 7720
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: How to keep the key repeating...

06 Mar 2018, 03:32

Hallo,
you want: A=B and B would bring C when A would be pressed?
Try:

Code: Select all

#InputLevel 1
a::b
#InputLevel 0
b::c
VISHALVODRO
Posts: 26
Joined: 02 Apr 2016, 05:53

Re: How to keep the key repeating...

07 Mar 2018, 09:23

hi!

It's bringing the same, pressing A, B comes, and pressing B, C comes.

No changes for me so far...

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Bing [Bot], effel, Rohwedder and 195 guests