summaryrefslogtreecommitdiffstats
path: root/windows/neo-vars/src/source/keydefinitions.ahk
blob: afdf247b4e8b78d30313446109d4e15c7fe70517 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
; äüö

thekeys() {
;   KeyCode       Ebene1  Ebene2  Ebene3  Ebene4  Ebene5  Ebene6  Ebene7* Ebene8*
; Reihe 1
EDS("029",0,"T__cflx","T__tlde","T__obrg","T__cron","T__brve","T__mcrn") ; circumflex
EDS("002",0,"U000031","U0000B0","U0000B9","U0000AA","U002081","U0000AC") ; 1
EDS("003",0,"U000032","U0000A7","U0000B2","U0000BA","U002082","U002228") ; 2
EDS("004",0,"U000033","U002113","U0000B3","U002116","U002083","U002227") ; 3
EDS("005",0,"U000034","U0000BB","U00203A","S__PgUp","U002640","U0022A5") ; 4
EDS("006",0,"U000035","U0000AB","U002039","U0000B7","U002642","U002221") ; 5
EDS("007",0,"U000036","U000024","U0000A2","U0000A3","U0026A5","U002225") ; 6
EDS("008",0,"U000037","U0020AC","U0000A5","U0000A4","U0003BA","U002192") ; 7
EDS("009",0,"U000038","U00201E","U00201A",""       ,"U0027E8","U00221E") ; 8
EDS("00A",0,"U000039","U00201C","U002018","S__NDiv","U0027E9","U00221D") ; 9
EDS("00B",0,"U000030","U00201D","U002019","S__NMul","U002080","U002205") ; 0
EDS("00C",0,"U00002D","U002014",""       ,"S__NSub","U002011","U0000AD") ; -
EDS("00D",0,"T__grav","T__turn","T__drss","T__dgrv","U001FFE","T__hook") ; grave
; Reihe 2
EDS("010",1,"U000078","U000058","U002026","U0022EE","U0003BE","U00039E") ; x
EDS("011",1,"U000076","U000056","U00005F","U000008",""       ,"U00221A") ; v
EDS("012",1,"U00006C","U00004C","U00005B","S____Up","U0003BB","U00039B") ; l
EDS("013",1,"U000063","U000043","U00005D","S___Del","U0003C7","U002102") ; c
EDS("014",1,"U000077","U000057","U00005E","S___Ins","U0003C9","U0003A9") ; w
EDS("015",1,"U00006B","U00004B","U000021","U0000A1","U0003F0","U0000D7") ; k
EDS("016",1,"U000068","U000048","U00003C","S__N__7","U0003C8","U0003A8") ; h
EDS("017",1,"U000067","U000047","U00003E","S__N__8","U0003B3","U000393") ; g
EDS("018",1,"U000066","U000046","U00003D","S__N__9","U0003C6","U0003A6") ; f
EDS("019",1,"U000071","U000051","U000026","S__NAdd","U0003D5","U00211A") ; q
EDS("01A",1,"U0000DF","U001E9E","U00017F",""       ,"U0003C2","U002218") ; ß
EDS("01B",0,"T__acut","T__cedi","T__strk","T__dbac","U001FBF","T__abdt") ; acute
; Reihe 3
EDS("01E",1,"U000075","U000055","U00005C","S__Home",""       ,"U002282") ; u
EDS("01F",1,"U000069","U000049","U00002F","S__Left","U0003B9","U00222B") ; i
EDS("020",1,"U000061","U000041","U00007B","S__Down","U0003B1","U002200") ; a
EDS("021",1,"U000065","U000045","U00007D","S__Rght","U0003B5","U002203") ; e
EDS("022",1,"U00006F","U00004F","U00002A","S___End","U0003BF","U002208") ; o
EDS("023",1,"U000073","U000053","U00003F","U0000BF","U0003C3","U0003A3") ; s
EDS("024",1,"U00006E","U00004E","U000028","S__N__4","U0003BD","U002115") ; n
EDS("025",1,"U000072","U000052","U000029","S__N__5","U0003F1","U00211D") ; r
EDS("026",1,"U000074","U000054","U00002D","S__N__6","U0003C4","U002202") ; t
EDS("027",1,"U000064","U000044","U00003A","S__NDot","U0003B4","U000394") ; d
EDS("028",1,"U000079","U000059","U000040","U00002E","U0003C5","U002207") ; y
; Reihe 4
EDS("02C",1,"U0000FC","U0000DC","U000023","U00001B",""       ,"U00222A") ; ü
EDS("02D",1,"U0000F6","U0000D6","U000024","U000009","U0003F5","U002229") ; ö
EDS("02E",1,"U0000E4","U0000C4","U00007C","S__PgDn","U0003B7","U002135") ; ä
EDS("02F",1,"U000070","U000050","U00007E","U00000D","U0003C0","U0003A0") ; p
EDS("030",1,"U00007A","U00005A","U000060",""       ,"U0003B6","U002124") ; z
EDS("031",1,"U000062","U000042","U00002B","U00003A","U0003B2","U0021D0") ; b
EDS("032",1,"U00006D","U00004D","U000025","S__N__1","U0003BC","U0021D4") ; m
EDS("033",0,"U00002C","U002013","U000022","S__N__2","U0003C1","U0021D2") ; ,
EDS("034",0,"U00002E","U002022","U000027","S__N__3","U0003D1","U000398") ; .
EDS("035",1,"U00006A","U00004A","U00003B","U00003B","U0003B8","U0021A6") ; j

; Numpad
ED("VK90SC145",0,"U000009","U000009","U00003D","U002260","U002248","U002261") ; NumLock
ED("VK6FSC135",0,"S__NDiv","S__NDiv","U0000F7","U002300","U002223","U002044") ; NumpadDiv
ED("VK6ASC037",0,"S__NMul","S__NMul","U0022C5","U0000D7","U002299","U002297") ; NumpadMult
ED("VK6DSC04A",0,"S__NSub","S__NSub","U002212","U002216","U002296","U002238") ; NumpadSub
ED("VK6BSC04E",0,"S__NAdd","S__NAdd","U0000B1","U002213","U002295","U002214") ; NumpadAdd

;EDN("VK67SC047","VK24SC047",0,"S__N__7","U002714","U002195","S__NHom","U00226A","U002308") ; Numpad7, NumpadHome
ED("VK67SC047",0,"S__N__7",""       ,"U002195","S__NHom",""       ,"U002308") ; Numpad7
ED("VK24SC047",0,"U002714",""       ,"U00226A","S_SNHom",""       ,""       ) ; NumpadHome == Numpad7 + Shift

;EDN("VK68SC048","VK26SC048",0,"S__N__8","U002718","U002191","S__N_Up","U002229","U0022C2") ; Numpad8, NumpadUp
ED("VK68SC048",0,"S__N__8",""       ,"U002191","S__N_Up",""       ,"U0022C2") ; Numpad8
ED("VK26SC048",0,"U002718",""       ,"U002229","S_SN_Up",""       ,""       ) ; NumpadUp == Numpad8 + Shift

;EDN("VK69SC049","VK21SC049",0,"S__N__9","U002020","U0020D7","S__NPUp","U00226B","U002309") ; Numpad9, NumpadPgUp
ED("VK69SC049",0,"S__N__9",""       ,"U0020D7","S__NPUp",""       ,"U002309") ; Numpad9
ED("VK21SC049",0,"U002020",""       ,"U00226B","S_SNPUp",""       ,""       ) ; NumpadPgUp == Numpad9 + Shift

;EDN("VK64SC04B","VK25SC04B",0,"S__N__4","U002663","U002190","S__N_Le","U002282","U002286") ; Numpad4, NumpadLeft
ED("VK64SC04B",0,"S__N__4",""       ,"U002190","S__N_Le",""       ,"U002286") ; Numpad4
ED("VK25SC04B",0,"U002663",""       ,"U002282","S_SN_Le",""       ,""       ) ; NumpadLeft == Numpad4 + Shift

;EDN("VK65SC04C","VK0CSC04C",0,"S__N__5","U0020AC","U0000A6","S__NClr","U0022B6","U0022B7") ; Numpad5, NumpadClear
ED("VK65SC04C",0,"S__N__5",""       ,"U0000A6","S__NClr",""       ,"U0022B7") ; Numpad5
ED("VK0CSC04C",0,"U0020AC",""       ,"U0022B6","S_SNClr",""       ,""       ) ; NumpadClear == Numpad5 + Shift

;EDN("VK66SC04D","VK27SC04D",0,"S__N__6","U002023","U002192","S__N_Ri","U002283","U002287") ; Numpad6, NumpadRight
ED("VK66SC04D",0,"S__N__6",""       ,"U002192","S__N_Ri",""       ,"U002287") ; Numpad6
ED("VK27SC04D",0,"U002023",""       ,"U002283","S_SN_Ri",""       ,""       ) ; NumpadRight == Numpad6 + Shift

;EDN("VK61SC04F","VK23SC04F",0,"S__N__1","U002666","U002194","S__NEnd","U002264","U00230A") ; Numpad1, NumpadEnd
ED("VK61SC04F",0,"S__N__1",""       ,"U002194","S__NEnd",""       ,"U00230A") ; Numpad1
ED("VK23SC04F",0,"U002666",""       ,"U002264","S_SNEnd",""       ,""       ) ; NumpadEnd == Numpad1 + Shift

;EDN("VK62SC050","VK28SC050",0,"S__N__2","U002665","U002193","S__N_Dn","U00222A","U0022C3") ; Numpad2, NumpadDown
ED("VK62SC050",0,"S__N__2",""       ,"U002193","S__N_Dn",""       ,"U0022C3") ; Numpad2
ED("VK28SC050",0,"U002665",""       ,"U00222A","S_SN_Dn",""       ,""       ) ; NumpadDown == Numpad2 + Shift

;EDN("VK63SC051","VK22SC051",0,"S__N__3","U002660","U0021CC","S__NPDn","U002265","U00230B") ; Numpad3, NumpadPgDn
ED("VK63SC051",0,"S__N__3",""       ,"U0021CC","S__NPDn",""       ,"U00230B") ; Numpad3
ED("VK22SC051",0,"U002660",""       ,"U002265","S_SNPDn",""       ,""       ) ; NumpadPgDn == Numpad3 + Shift

; EDN("VK60SC052","VK2DSC052",0,"S__N__0","U002423","U000025","S__NIns","U002030","U0025A1") ; Numpad0, NumpadIns
ED("VK60SC052",0,"S__N__0",""       ,"U000025","S__NIns",""       ,"U0025A1") ; Numpad0
ED("VK2DSC052",0,"U002423",""       ,"U002030","S_SNIns",""       ,""       ) ; NumpadIns == Numpad0 + Shift

; EDN("VK6ESC053","VK2ESC053",0,"S__NDot","U00002E","U00002C","S__NDel","U002032","U002033") ; NumpadDot, NumpadDel
ED("VK6ESC053",0,"S__NDot",""       ,"U00002C","S__NDel",""       ,"U002033") ; NumpadDot
ED("VK2ESC053",0,"U00002E",""       ,"U002032","S_SNDel",""       ,""       ) ; NumpadDel == NumpadDot + Shift

; other keys
ED("space",0,"U000020","U000020","U000020","S__N__0","U0000A0","U00202F")
ED("esc"  ,0,"U00001B","U00001B","P__Rlod","U00001B","U00001B","U00001B")
ED("tab"  ,0,"U000009","U000009","S__Comp","U000009","U000009","U000009")
ED("F1"   ,0,"S____F1","S____F1",""       ,"S____F1",""       ,"")
ED("F2"   ,0,"S____F2","S____F2",""       ,"S____F2",""       ,"")
ED("F3"   ,0,"S____F3","S____F3",""       ,"S____F3",""       ,"")
ED("F4"   ,0,"S____F4","S____F4",""       ,"S____F4",""       ,"")
ED("F5"   ,0,"S____F5","S____F5",""       ,"S____F5",""       ,"")
ED("F6"   ,0,"S____F6","S____F6",""       ,"S____F6",""       ,"")
ED("F7"   ,0,"S____F7","S____F7",""       ,"S____F7",""       ,"")
ED("F8"   ,0,"S____F8","S____F8",""       ,"S____F8",""       ,"")
ED("F9"   ,0,"S____F9","S____F9",""       ,"S____F9",""       ,"")
ED("F10"  ,0,"S___F10","S___F10",""       ,"S___F10",""       ,"")
ED("F11"  ,0,"S___F11","S___F11",""       ,"S___F11",""       ,"")
ED("F12"  ,0,"S___F12","S___F12",""       ,"S___F12",""       ,"")
ED("enter",0,"U00000D","U00000D","U00000D","S__NEnt","U00000D","U00000D")
ED1("backspace","U000008")
ED1("del"      ,"S___Del")
ED1("ins"      ,"S___Ins")
ED1("home"     ,"S__Home")
ED1("end"      ,"S___End")
ED1("pgup"     ,"S__PgUp")
ED1("pgdn"     ,"S__PgDn")
ED1("up"       ,"S____Up")
ED1("down"     ,"S__Down")
ED1("left"     ,"S__Left")
ED1("right"    ,"S__Rght")
ED1("numpadenter","S__NEnt")

; Die Modifier
ED1S("02A","P__M2LD") ; Mod2L (ShiftL)
ED1S("136","P__M2RD") ; Mod2R (ShiftR)
ED1S("03A","P__M3LD") ; Mod3L (CapsLock)
ED1S("02B","P__M3RD") ; Mod3R (#')
ED1S("056","P__M4LD") ; Mod4L (<>)
ED1S("138","P__M4RD") ; Mod4R (AltGr)
}

SetKeyPos(pos,char) {
  global
  current := %pos%
  if (current != "")
    StringReplace,CRK%current%,CRK%current%,% " " . pos . " ",% " "
  if (SubStr(CRK%char%,0) != " ")
    CRK%char% .= " "
  CRK%char% .= pos . " "
  %pos% := char
}

ED(pos,caps,e1,e2,e3,e4,e5,e6,e7="",e8="") {
  global
  if (caps == 0)
    NOC%pos% := 1
  else {
    if (e1 != "")
      UNSH%e1% := 1 ; unshift wenn caps lock + Shift?
  }
  SetKeyPos("CP1" . pos,e1)
  SetKeyPos("CP2" . pos,e2)
  SetKeyPos("CP3" . pos,e3)
  SetKeyPos("CP4" . pos,e4)
  SetKeyPos("CP5" . pos,e5)
  SetKeyPos("CP6" . pos,e6)
  SetKeyPos("CP7" . pos,e7)
  SetKeyPos("CP8" . pos,e8)
}

EDN(pos1,pos2,caps,e1,e2,e3,e4,e5,e6) {
  ED(pos1,caps,e1,e2,e3,e4,e5,e6)
  ED(pos2,caps,e1,e2,e3,e4,e5,e6)
}

EDS(scpos,caps,e1,e2,e3,e4,e5,e6,e7="",e8="") {
  global
  ED(vksc%scpos%,caps,e1,e2,e3,e4,e5,e6,e7,e8)
}

ED1(pos,e1) {
 ED(pos,0,e1,e1,e1,e1,e1,e1)
}

ED1S(scpos,e1) {
 EDS(scpos,0,e1,e1,e1,e1,e1,e1)
}

Comp := ""

; RegisterAndHookSC
RSC(sc,vk) {
  global
  vksc%sc% := "VK" . vk . "SC" . sc
  dnkey := "*" . vksc%sc%
  upkey := dnkey . " up"
  Hotkey,% dnkey,allstarhook
  Hotkey,% upkey,allstarhook
}

Layout00000407() {
  global
; Reihe 1
  RSC("029","DC")
  RSC("002","31")
  RSC("003","32")
  RSC("004","33")
  RSC("005","34")
  RSC("006","35")
  RSC("007","36")
  RSC("008","37")
  RSC("009","38")
  RSC("00A","39")
  RSC("00B","30")
  RSC("00C","DB")
  RSC("00D","DD")
; Reihe 2
  RSC("010","51")
  RSC("011","57")
  RSC("012","45")
  RSC("013","52")
  RSC("014","54")
  RSC("015","5A")
  RSC("016","55")
  RSC("017","49")
  RSC("018","4F")
  RSC("019","50")
  RSC("01A","BA")
  RSC("01B","BB")
  RSC("00D","DD")
; Reihe 3
  RSC("01E","41")
  RSC("01F","53")
  RSC("020","44")
  RSC("021","46")
  RSC("022","47")
  RSC("023","48")
  RSC("024","4A")
  RSC("025","4B")
  RSC("026","4C")
  RSC("027","C0")
  RSC("028","DE")
; Reihe 4
  RSC("02C","59")
  RSC("02D","58")
  RSC("02E","43")
  RSC("02F","56")
  RSC("030","42")
  RSC("031","4E")
  RSC("032","4D")
  RSC("033","BC")
  RSC("034","BE")
  RSC("035","BD")
; Modifier
  RSC("02A","A0") ; M2L
  RSC("136","A1") ; M2R
  RSC("03A","14") ; M3L
  RSC("02B","BF") ; M3R
  RSC("056","E2") ; M4L
  RSC("138","A5") ; M4R

  /**** die meisten der folgenden Shortcuts werden von AHK zwar verarbeitet,
   **** von dort aber nur als ALT+Numpad verschickt und daher nicht für alle
   **** Programme nutzbar, also auskommentiert und als Unicode-Zeichen
   **** geschickt.
  */
  ; DNCSU00005E := "{^}{space}"
  ; DNCSU000060 := "{``}{space}"
  ; DNCSU0000B4 := "{´}{space}"

  CSU00005E := ""
  CSU000060 := ""
  CSU0000B4 := ""

  CSU0020AC := chr(128)   ; €
  ; CSU00201A := chr(130) ; ‚
  ; CSU000192 := chr(131) ; ƒ
  ; CSU00201E := chr(132) ; „
  ; CSU002026 := chr(133) ; …
  ; CSU002020 := chr(134) ; †
  ; CSU002021 := chr(135) ; ‡
  ; CSU0002C6 := chr(136) ; ˆ
  ; CSU002030 := chr(137) ; ‰
  ; CSU000160 := chr(138) ; Š
  ; CSU002039 := chr(139) ; ‹
  ; CSU000152 := chr(140) ; Œ
  ; CSU00017D := chr(142) ; Ž
  ; CSU002018 := chr(145) ; ‘
  ; CSU002019 := chr(146) ; ’
  ; CSU00201C := chr(147) ; “
  ; CSU00201D := chr(148) ; ”
  ; CSU002022 := chr(149) ; •
  ; CSU002013 := chr(150) ; –
  ; CSU002014 := chr(151) ; —
  ; CSU0002DC := chr(152) ; ˜
  ; CSU002122 := chr(153) ; ™
  ; CSU000161 := chr(154) ; š
  ; CSU00203A := chr(155) ; ›
  ; CSU000153 := chr(156) ; œ
  ; CSU00017E := chr(158) ; ž
  ; CSU000178 := chr(159) ; Ÿ
  CSU0000A7 := chr(167)   ; §
  CSU0000B0 := chr(176)   ; °
  CSU0000B2 := chr(178)   ; ²
  CSU0000B3 := chr(179)   ; ³
  ; CSU0000B4 := chr(180)   ; ´
  CSU0000B5 := chr(181)   ; µ
  CSU0000C4 := chr(196)   ; Ä
  CSU0000D6 := chr(214)   ; Ö
  CSU0000DC := chr(220)   ; Ü
  CSU0000DF := chr(223)   ; ß
  CSU0000E4 := chr(228)   ; ä
  CSU0000F6 := chr(246)   ; ö
  CSU0000FC := chr(252)   ; ü
  CSU0000FF := chr(255)   ; ÿ

  /*
    Für alle Zeichen, die durch Tastendrücke ohne Shift-Taste zustande kommen,
    muss eine gegebenenfalls gedrückte Shift-Taste vor dem Senden temporär
    gelöst werden. Dafür werden für sämtliche relevante Zeichen die passenden
    UNSHU.... Variablen gesetzt.
  */
  ; Reihe 1
  UNSHU00005E := 1 ; ^
  UNSHU000031 := 1 ; 1
  UNSHU000032 := 1 ; 2
  UNSHU000033 := 1 ; 3
  UNSHU000034 := 1 ; 4
  UNSHU000035 := 1 ; 5
  UNSHU000036 := 1 ; 6
  UNSHU000037 := 1 ; 7
  UNSHU000038 := 1 ; 8
  UNSHU000039 := 1 ; 9
  UNSHU000030 := 1 ; 0
  UNSHU0000DF := 1 ; ß
  UNSHU0000B4 := 1 ; ´
  ; Alphabet
  UNSHU000061 := 1 ; a
  UNSHU000062 := 1 ; b
  UNSHU000063 := 1 ; c
  UNSHU000064 := 1 ; d
  UNSHU000065 := 1 ; e
  UNSHU000066 := 1 ; f
  UNSHU000067 := 1 ; g
  UNSHU000068 := 1 ; h
  UNSHU000069 := 1 ; i
  UNSHU00006A := 1 ; j
  UNSHU00006B := 1 ; k
  UNSHU00006C := 1 ; l
  UNSHU00006D := 1 ; m
  UNSHU00006E := 1 ; n
  UNSHU00006F := 1 ; o
  UNSHU000070 := 1 ; p
  UNSHU000071 := 1 ; q
  UNSHU000072 := 1 ; r
  UNSHU000073 := 1 ; s
  UNSHU000074 := 1 ; t
  UNSHU000075 := 1 ; u
  UNSHU000076 := 1 ; v
  UNSHU000077 := 1 ; w
  UNSHU000078 := 1 ; x
  UNSHU000079 := 1 ; y
  UNSHU00007A := 1 ; z
  UNSHU0000E4 := 1 ; ä
  UNSHU0000F6 := 1 ; ö
  UNSHU0000FC := 1 ; ü
  ; Rest
  UNSHU00002B := 1 ; +
  UNSHU000023 := 1 ; #
  UNSHU00003C := 1 ; <
  UNSHU00002C := 1 ; ,
  UNSHU00002E := 1 ; .
  UNSHU00002D := 1 ; -
  ; AltGr
  UNSHU0000B2 := 1 ; ²
  UNSHU0000B3 := 1 ; ³
  UNSHU00007B := 1 ; {
  UNSHU00005B := 1 ; [
  UNSHU00005D := 1 ; ]
  UNSHU00007D := 1 ; }
  UNSHU00005C := 1 ; \
  UNSHU000040 := 1 ; @
  UNSHU0020AC := 1 ; Euro
  UNSHU00007E := 1 ; ~
  UNSHU00007C := 1 ; |
  UNSHU0000B5 := 1 ; µ
}

Layout00000807() {
  global
; Reihe 1
  RSC("029","BF")
  RSC("002","31")
  RSC("003","32")
  RSC("004","33")
  RSC("005","34")
  RSC("006","35")
  RSC("007","36")
  RSC("008","37")
  RSC("009","38")
  RSC("00A","39")
  RSC("00B","30")
  RSC("00C","DB")
  RSC("00D","DD")
; Reihe 2
  RSC("010","51")
  RSC("011","57")
  RSC("012","45")
  RSC("013","52")
  RSC("014","54")
  RSC("015","5A")
  RSC("016","55")
  RSC("017","49")
  RSC("018","4F")
  RSC("019","50")
  RSC("01A","BA")
  RSC("01B","C0")
  RSC("00D","DD")
; Reihe 3
  RSC("01E","41")
  RSC("01F","53")
  RSC("020","44")
  RSC("021","46")
  RSC("022","47")
  RSC("023","48")
  RSC("024","4A")
  RSC("025","4B")
  RSC("026","4C")
  RSC("027","DE")
  RSC("028","DC")
; Reihe 4
  RSC("02C","59")
  RSC("02D","58")
  RSC("02E","43")
  RSC("02F","56")
  RSC("030","42")
  RSC("031","4E")
  RSC("032","4D")
  RSC("033","BC")
  RSC("034","BE")
  RSC("035","BD")
; Modifier
  RSC("02A","A0") ; M2L
  RSC("136","A1") ; M2R
  RSC("03A","14") ; M3L
  RSC("02B","DF") ; M3R
  RSC("056","E2") ; M4L
  RSC("138","A5") ; M4R

  /**** die meisten der folgenden Shortcuts werden von AHK zwar verarbeitet,
   **** von dort aber nur als ALT+Numpad verschickt und daher nicht für alle
   **** Programme nutzbar, also auskommentiert und als Unicode-Zeichen
   **** geschickt.
  */
  ; DNCSU00005E := "{^}{space}"
  ; DNCSU000060 := "{``}{space}"
  ; DNCSU0000B4 := "{´}{space}"

  CSU00005E := ""
  CSU000060 := ""
  CSU0000B4 := ""

  CSU0020AC := chr(128)   ; €
  ; CSU00201A := chr(130) ; ‚
  ; CSU000192 := chr(131) ; ƒ
  ; CSU00201E := chr(132) ; „
  ; CSU002026 := chr(133) ; …
  ; CSU002020 := chr(134) ; †
  ; CSU002021 := chr(135) ; ‡
  ; CSU0002C6 := chr(136) ; ˆ
  ; CSU002030 := chr(137) ; ‰
  ; CSU000160 := chr(138) ; Š
  ; CSU002039 := chr(139) ; ‹
  ; CSU000152 := chr(140) ; Œ
  ; CSU00017D := chr(142) ; Ž
  ; CSU002018 := chr(145) ; ‘
  ; CSU002019 := chr(146) ; ’
  ; CSU00201C := chr(147) ; “
  ; CSU00201D := chr(148) ; ”
  ; CSU002022 := chr(149) ; •
  ; CSU002013 := chr(150) ; –
  ; CSU002014 := chr(151) ; —
  ; CSU0002DC := chr(152) ; ˜
  ; CSU002122 := chr(153) ; ™
  ; CSU000161 := chr(154) ; š
  ; CSU00203A := chr(155) ; ›
  ; CSU000153 := chr(156) ; œ
  ; CSU00017E := chr(158) ; ž
  ; CSU000178 := chr(159) ; Ÿ
  CSU0000A7 := chr(167)   ; §
  CSU0000B0 := chr(176)   ; °
  ; CSU0000B2 := chr(178)   ; ²
  ; CSU0000B3 := chr(179)   ; ³
  ; CSU0000B4 := chr(180)   ; ´
  ; CSU0000B5 := chr(181)   ; µ
  ; CSU0000C4 := chr(196)   ; Ä
  ; CSU0000D6 := chr(214)   ; Ö
  ; CSU0000DC := chr(220)   ; Ü
  ; CSU0000DF := chr(223)   ; ß
  CSU0000E0 := chr(224)   ; à
  CSU0000E4 := chr(228)   ; ä
  CSU0000E8 := chr(232)   ; è
  CSU0000E9 := chr(233)   ; é
  CSU0000F6 := chr(246)   ; ö
  CSU0000FC := chr(252)   ; ü
  ; CSU0000FF := chr(255)   ; ÿ

  /*
    Für alle Zeichen, die durch Tastendrücke ohne Shift-Taste zustande kommen,
    muss eine gegebenenfalls gedrückte Shift-Taste vor dem Senden temporär
    gelöst werden. Dafür werden für sämtliche relevante Zeichen die passenden
    UNSHU.... Variablen gesetzt.
  */
  ; Reihe 1
  UNSHU0000A7 := 1 ; §
  UNSHU000031 := 1 ; 1
  UNSHU000032 := 1 ; 2
  UNSHU000033 := 1 ; 3
  UNSHU000034 := 1 ; 4
  UNSHU000035 := 1 ; 5
  UNSHU000036 := 1 ; 6
  UNSHU000037 := 1 ; 7
  UNSHU000038 := 1 ; 8
  UNSHU000039 := 1 ; 9
  UNSHU000030 := 1 ; 0
  UNSHU000027 := 1 ; '
  UNSHU00005E := 1 ; ^
  ; Alphabet
  UNSHU000061 := 1 ; a
  UNSHU000062 := 1 ; b
  UNSHU000063 := 1 ; c
  UNSHU000064 := 1 ; d
  UNSHU000065 := 1 ; e
  UNSHU000066 := 1 ; f
  UNSHU000067 := 1 ; g
  UNSHU000068 := 1 ; h
  UNSHU000069 := 1 ; i
  UNSHU00006A := 1 ; j
  UNSHU00006B := 1 ; k
  UNSHU00006C := 1 ; l
  UNSHU00006D := 1 ; m
  UNSHU00006E := 1 ; n
  UNSHU00006F := 1 ; o
  UNSHU000070 := 1 ; p
  UNSHU000071 := 1 ; q
  UNSHU000072 := 1 ; r
  UNSHU000073 := 1 ; s
  UNSHU000074 := 1 ; t
  UNSHU000075 := 1 ; u
  UNSHU000076 := 1 ; v
  UNSHU000077 := 1 ; w
  UNSHU000078 := 1 ; x
  UNSHU000079 := 1 ; y
  UNSHU00007A := 1 ; z
  UNSHU0000E4 := 1 ; ä
  UNSHU0000F6 := 1 ; ö
  UNSHU0000FC := 1 ; ü
  ; Rest
  UNSHU0000A8 := 1 ; ¨
  UNSHU000024 := 1 ; $
  UNSHU00003C := 1 ; <
  UNSHU00002C := 1 ; ,
  UNSHU00002E := 1 ; .
  UNSHU00002D := 1 ; -
  ; AltGr
  UNSHU0000A6 := 1 ; ¦
  UNSHU000040 := 1 ; @
  UNSHU000023 := 1 ; #
  UNSHU0000AC := 1 ; ¬
  UNSHU00007C := 1 ; |
  UNSHU0000A2 := 1 ; ¢
  UNSHU0000B4 := 1 ; ´
  UNSHU00007E := 1 ; ~
  UNSHU0020AC := 1 ; Euro
  UNSHU00005B := 1 ; [
  UNSHU00005D := 1 ; ]
  UNSHU00007B := 1 ; {
  UNSHU00007D := 1 ; }
  UNSHU00005C := 1 ; \
}

Layout00010407() {
  Layout00000407()
}

ActivateLayOut(layout) {
  Layout%layout%()
}