Skip to content
This repository was archived by the owner on Aug 3, 2023. It is now read-only.

Commit fe574e9

Browse files
author
Tomas van Rijsse
committed
Initial version
1 parent 78c08e5 commit fe574e9

File tree

2 files changed

+67
-0
lines changed

2 files changed

+67
-0
lines changed

doubledigits.ahk

+67
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
pressedkey = a
2+
3+
$1::
4+
RegisterStroke(1,"!")
5+
return
6+
$2::
7+
RegisterStroke(2,"@")
8+
return
9+
$3::
10+
RegisterStroke(3,"#")
11+
return
12+
$4::
13+
RegisterStroke(4,"$")
14+
return
15+
$5::
16+
RegisterStroke(5,"%")
17+
return
18+
$6::
19+
RegisterStroke(6,"^")
20+
return
21+
$7::
22+
RegisterStroke(7,"&")
23+
return
24+
$8::
25+
RegisterStroke(8,"*")
26+
return
27+
$9::
28+
RegisterStroke(9,"(")
29+
return
30+
$0::
31+
RegisterStroke(0,")")
32+
return
33+
$-::
34+
RegisterStroke("-","_")
35+
return
36+
$=::
37+
RegisterStroke("=","+")
38+
return
39+
40+
41+
RegisterStroke(key,special)
42+
{
43+
global
44+
45+
if pressedkey = %key%
46+
{
47+
double_presses += 1
48+
return
49+
} else {
50+
pressedkey = %key%
51+
pressedspecial = %special%
52+
double_presses = 1
53+
SetTimer, KeyDouble, 200
54+
}
55+
}
56+
57+
KeyDouble:
58+
SetTimer, KeyDouble, off
59+
if double_presses >= 2
60+
{
61+
SendInput {Raw}%pressedspecial%
62+
} else {
63+
SendInput %pressedkey%
64+
}
65+
pressedkey = a
66+
double_presses = 0
67+
return

doubledigits.zip

362 KB
Binary file not shown.

0 commit comments

Comments
 (0)