Changeset 1658
- Timestamp:
- 02/13/09 18:40:01 (4 years ago)
- Location:
- windows/neo-vars/src/source
- Files:
-
- 3 modified
-
keydefinitions.ahk (modified) (2 diffs)
-
shortcuts.ahk (modified) (1 diff)
-
tools.ahk (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
windows/neo-vars/src/source/keydefinitions.ahk
r1653 r1658 111 111 ED1("VKA5SC138","PM4RD") ; Mod4R (AltGr) 112 112 113 SetKeyPos(pos,char) { 114 global 115 current := %pos% 116 if (current != "") 117 StringReplace,CRK%current%,CRK%current%,% " " . pos . " ",% " " 118 if (SubStr(CRK%char%,0) != " ") 119 CRK%char% .= " " 120 CRK%char% .= pos . " " 121 %pos% := char 122 } 123 113 124 ED(pos,caps,e1,e2,e3,e4,e5,e6,e7="",e8="") { 114 125 global … … 119 130 UNSH%e1% := 1 ; unshift wenn caps lock + Shift? 120 131 } 121 CP1%pos% := e1 122 CP2%pos% := e2 123 CP3%pos% := e3 124 CP4%pos% := e4 125 CP5%pos% := e5 126 CP6%pos% := e6 127 CP7%pos% := e7 128 CP8%pos% := e8 129 if (e1 != "") 130 CRK%e1% .= " " . e1 131 if (e2 != "") 132 CRK%e2% .= " S__M2" . e1 133 if (e3 != "") 134 CRK%e3% .= " S__M3" . e1 135 if (e4 != "") 136 CRK%e4% .= " S__M4" . e1 137 if (e5 != "") 138 CRK%e5% .= " S__M5" . e1 139 if (e6 != "") 140 CRK%e6% .= " S__M6" . e1 141 if (e7 != "") 142 CRK%e7% .= " S__M7" . e1 143 if (e8 != "") 144 CRK%e8% .= " S__M8" . e1 132 SetKeyPos("CP1" . pos,e1) 133 SetKeyPos("CP2" . pos,e2) 134 SetKeyPos("CP3" . pos,e3) 135 SetKeyPos("CP4" . pos,e4) 136 SetKeyPos("CP5" . pos,e5) 137 SetKeyPos("CP6" . pos,e6) 138 SetKeyPos("CP7" . pos,e7) 139 SetKeyPos("CP8" . pos,e8) 145 140 } 146 141 -
windows/neo-vars/src/source/shortcuts.ahk
r1653 r1658 227 227 Jetzt noch ein paar Versch�nerungsabk�rzungen 228 228 */ 229 CBS__M2 := " (Shift)+"230 CBS__M3 := " (Mod3)+"231 CBS__M4 := " (Mod4)+"232 CBS__M5 := " (Mod5=Shift+Mod3)+"233 CBS__M6 := " (Mod6=Mod3+Mod4)+"234 CBS__M7 := " (Mod7=Shift+Mod4)+"235 CBS__M8 := " (Mod8=Shift+Mod3+Mod4)+"229 CBS__M2 := "Shift+" 230 CBS__M3 := "Mod3+" 231 CBS__M4 := "Mod4+" 232 CBS__M5 := "Mod5=Shift+Mod3+" 233 CBS__M6 := "Mod6=Mod3+Mod4+" 234 CBS__M7 := "Mod7=Shift+Mod4+" 235 CBS__M8 := "Mod8=Shift+Mod3+Mod4+" 236 236 237 237 CBSComp := "Compose" -
windows/neo-vars/src/source/tools.ahk
r1657 r1658 514 514 SetFormat,Integer,d 515 515 a := "U" . substr("0000" . substr(a,3),-3) 516 wtt := CRC%a% . " " . CRK%a% . " " 517 if (wtt=="") { 518 TrayTip,Wie mit NEO,Keine Information`, wie %a% eingegeben werden kann!,10,1 519 return 520 } 521 ; MsgBox,% wtt 522 523 wmn := "" 524 loop,parse,wtt,%A_Space% 516 517 wmn := "Das Zeichen " . a . " kann wie folgt eingegeben werden:`r`n" 518 loop,parse,CRC%a%,%A_Space% 525 519 { 526 520 this_wmn := "" 521 this_wmnk := "" 522 nthis := 0 527 523 this_wtt := A_LoopField 528 524 if (this_wtt == "") … … 531 527 if (this_wtt == "") 532 528 break 533 this_char := substr(this_wtt,1,5) 529 this_char5 := substr(this_wtt,1,5) 530 this_char := this_char5 534 531 this_wtt := substr(this_wtt,6) 535 532 if (CB%this_char% != "") … … 538 535 this_char := CS%this_char% 539 536 ; this_char will contain Uxxxx if no shortcut is present. Fix this here. 540 if (substr(this_char,-1) == ")+")541 this_wmn .= this_char542 else if (substr(this_wmn,-1) == ")+")543 this_wmn .= "<" . this_char. ">"544 else545 this_wmn .= " <" . this_char . ">"537 this_wmn .= " <" . this_char . ">" 538 if (CRK%this_char5% == "") { 539 nthis := 1 540 this_wmnk .= " <" . this_char5 . ">" 541 } else 542 this_wmnk .= " " . KeyLong(CRK%this_char5%) 546 543 } 547 wmn .= this_wmn . "`r`n" 548 } 549 TrayTip,Wie mit NEO,% wmn,10,1 550 } 544 if (this_wmn != "") 545 this_wmn := SubStr(this_wmn,2) 546 if (this_wmnk != "") 547 this_wmnk := SubStr(this_wmnk,2) 548 if (nthis == 1) 549 wmn .= "Wegen fehlender Tastenbelegung: Nicht als Compose:`r`n" 550 else 551 wmn .= "Als Compose:`r`n" 552 wmn .= this_wmn . "`r`noder`r`n" . this_wmnk . "`r`n`r`n" 553 } 554 555 wmnk := KeyLong(CRK%a%) 556 if (wmnk != "") 557 wmn .= "Als Tastendruck:`r`n" . wmnk 558 else 559 wmn .= "Als Tastendruck nicht verf�gbar!" 560 561 if (wmn != "") 562 MsgBox,0,Wie mit NEO,% wmn 563 else 564 TrayTip,Wie mit NEO,Keine Information �ber %a% gefunden,10,1 565 } 566 567 KeyLong(key) { 568 global 569 num := 0 570 twmnk := "" 571 loop,parse,key,%A_Space% 572 { 573 tis_wmn := "" 574 tis_wtt := A_LoopField 575 if (tis_wtt == "") 576 continue ; probably at first or last entry 577 tis_layer := substr(tis_wtt,3,1) 578 base_key_pos := "CP1" . substr(tis_wtt,4) 579 580 base_key := %base_key_pos% 581 if (CB%base_key% != "") 582 base_key := CB%base_key% 583 else if (CS%base_key% != "") 584 base_key := CS%base_key% 585 586 twmnk .= "/<" . CBS__M%tis_layer% . base_key . ">" 587 num := num + 1 588 } 589 if (num == 0) 590 return "" 591 else if (num == 1) 592 return SubStr(twmnk,2) 593 else 594 return "(" . SubStr(twmnk,2) . ")" 595 }
