Changeset 542
- Timestamp:
- 06/19/08 11:24:55 (5 years ago)
- Files:
-
- 1 modified
-
windows/autohotkey/neo20-all-in-one.ahk (modified) (38 diffs)
Legend:
- Unmodified
- Added
- Removed
-
windows/autohotkey/neo20-all-in-one.ahk
r540 r542 17 17 CHANGEHISTORY: 18 18 Aktuelle Revision (von Matthias Berg): 19 - bei EinHandNeo ist jetzt Space+y auch Mod4 20 - AltGr-Bug hoffentlich wieder behoben. Diesmal mit extra altGrPressed Variable 21 - nurEbenenFuenfUndSechs umbenannt in ahkTreiberKombi und auf Ebene 4 statt 5 und 6 ge�ndert 22 Revision 540 (von Matthias Berg): 19 23 - stark �berarbeitet um Wartbarkeit zu erh�hen und Redundanz zu veringern 20 - nurEbenenFuenfUndSechs sollte nun Qwerty ber�cksichtigen24 - nurEbenenFuenfUndSechs sollte nun auch auf Neo Treiber statt Qwertz laufen 21 25 * aber es muss noch jemand testen 22 26 * Problem: was kann man abfangen, wenn eine tote Taste gedr�ckt wird … … 79 83 */ 80 84 ; Sollen Ebenen 1-4 ignoriert werden? (kann z.B. vom dll Treiber �bernommen werden) Ja = 1, Nein = 0 81 nurEbenenFuenfUndSechs:= 085 ahkTreiberKombi := 0 82 86 einHandNeo := 0 83 87 … … 263 267 } 264 268 return 265 *SC138::return ; Damit AltGr nicht extra etwas schickt und als stiller Modifier geht. 266 269 *SC138:: 270 altGrPressed := 1 271 return ; Damit AltGr nicht extra etwas schickt und als stiller Modifier geht. 272 *SC138 up:: 273 altGrPressed := 0 274 return 267 275 268 276 /* ; das folgende wird seltsamerweise nicht gebraucht :) … … 385 393 return 386 394 *�:: 387 if ( not( nurEbenenFuenfUndSechs) )395 if ( not(ahkTreiberKombi) ) 388 396 { 389 397 if( not(einHandNeo) or not(spacepressed) ) … … 403 411 *Tab::goto neo_tab 404 412 *q:: 405 if ( not( nurEbenenFuenfUndSechs) )413 if ( not(ahkTreiberKombi) ) 406 414 { 407 415 goto neo_x … … 412 420 } 413 421 *w:: 414 if ( not( nurEbenenFuenfUndSechs) )422 if ( not(ahkTreiberKombi) ) 415 423 { 416 424 goto neo_v … … 421 429 } 422 430 *e:: 423 if ( not( nurEbenenFuenfUndSechs) )431 if ( not(ahkTreiberKombi) ) 424 432 { 425 433 goto neo_l … … 430 438 } 431 439 *r:: 432 if ( not( nurEbenenFuenfUndSechs) )440 if ( not(ahkTreiberKombi) ) 433 441 { 434 442 goto neo_c … … 439 447 } 440 448 *t:: 441 if ( not( nurEbenenFuenfUndSechs) )449 if ( not(ahkTreiberKombi) ) 442 450 { 443 451 goto neo_w … … 448 456 } 449 457 *z:: 450 if ( not( nurEbenenFuenfUndSechs) )458 if ( not(ahkTreiberKombi) ) 451 459 { 452 460 if( not(einHandNeo) or not(spacepressed) ) … … 463 471 } 464 472 *u:: 465 if ( not( nurEbenenFuenfUndSechs) )473 if ( not(ahkTreiberKombi) ) 466 474 { 467 475 if( not(einHandNeo) or not(spacepressed) ) … … 478 486 } 479 487 *i:: 480 if ( not( nurEbenenFuenfUndSechs) )488 if ( not(ahkTreiberKombi) ) 481 489 { 482 490 if( not(einHandNeo) or not(spacepressed) ) … … 493 501 } 494 502 *o:: 495 if ( not( nurEbenenFuenfUndSechs) )503 if ( not(ahkTreiberKombi) ) 496 504 { 497 505 if( not(einHandNeo) or not(spacepressed) ) … … 508 516 } 509 517 *p:: 510 if ( not( nurEbenenFuenfUndSechs) )518 if ( not(ahkTreiberKombi) ) 511 519 { 512 520 if( not(einHandNeo) or not(spacepressed) ) … … 523 531 } 524 532 *�:: 525 if ( not( nurEbenenFuenfUndSechs) )533 if ( not(ahkTreiberKombi) ) 526 534 { 527 535 if( not(einHandNeo) or not(spacepressed) ) … … 538 546 } 539 547 *+:: 540 if ( not( nurEbenenFuenfUndSechs) )548 if ( not(ahkTreiberKombi) ) 541 549 { 542 550 if( not(einHandNeo) or not(spacepressed) ) … … 552 560 ; Reihe 3 553 561 *a:: 554 if ( not( nurEbenenFuenfUndSechs) )562 if ( not(ahkTreiberKombi) ) 555 563 { 556 564 goto neo_u … … 561 569 } 562 570 *s:: 563 if ( not( nurEbenenFuenfUndSechs) )571 if ( not(ahkTreiberKombi) ) 564 572 { 565 573 goto neo_i … … 570 578 } 571 579 *d::goto neo_a 572 if ( not( nurEbenenFuenfUndSechs) )580 if ( not(ahkTreiberKombi) ) 573 581 { 574 582 goto neo_a … … 579 587 } 580 588 *f:: 581 if ( not( nurEbenenFuenfUndSechs) )589 if ( not(ahkTreiberKombi) ) 582 590 { 583 591 goto neo_e … … 588 596 } 589 597 *g:: 590 if ( not( nurEbenenFuenfUndSechs) )598 if ( not(ahkTreiberKombi) ) 591 599 { 592 600 goto neo_o … … 597 605 } 598 606 *h:: 599 if ( not( nurEbenenFuenfUndSechs) )607 if ( not(ahkTreiberKombi) ) 600 608 { 601 609 if( not(einHandNeo) or not(spacepressed) ) … … 612 620 } 613 621 *j:: 614 if ( not( nurEbenenFuenfUndSechs) )622 if ( not(ahkTreiberKombi) ) 615 623 { 616 624 if( not(einHandNeo) or not(spacepressed) ) … … 627 635 } 628 636 *k:: 629 if ( not( nurEbenenFuenfUndSechs) )637 if ( not(ahkTreiberKombi) ) 630 638 { 631 639 if( not(einHandNeo) or not(spacepressed) ) … … 642 650 } 643 651 *l:: 644 if ( not( nurEbenenFuenfUndSechs) )652 if ( not(ahkTreiberKombi) ) 645 653 { 646 654 if( not(einHandNeo) or not(spacepressed) ) … … 657 665 } 658 666 *�:: 659 if ( not( nurEbenenFuenfUndSechs) )667 if ( not(ahkTreiberKombi) ) 660 668 { 661 669 if( not(einHandNeo) or not(spacepressed) ) … … 672 680 } 673 681 *�:: 674 if ( not( nurEbenenFuenfUndSechs) )682 if ( not(ahkTreiberKombi) ) 675 683 { 676 684 goto neo_y … … 682 690 ; Reihe 4 683 691 *y:: 684 if ( not( nurEbenenFuenfUndSechs) )692 if ( not(ahkTreiberKombi) ) 685 693 { 686 694 goto neo_� … … 691 699 } 692 700 *x:: 693 if ( not( nurEbenenFuenfUndSechs) )701 if ( not(ahkTreiberKombi) ) 694 702 { 695 703 goto neo_� … … 700 708 } 701 709 *c:: 702 if ( not( nurEbenenFuenfUndSechs) )710 if ( not(ahkTreiberKombi) ) 703 711 { 704 712 goto neo_� … … 709 717 } 710 718 *v:: 711 if ( not( nurEbenenFuenfUndSechs) )719 if ( not(ahkTreiberKombi) ) 712 720 { 713 721 goto neo_p … … 718 726 } 719 727 *b:: 720 if ( not( nurEbenenFuenfUndSechs) )728 if ( not(ahkTreiberKombi) ) 721 729 { 722 730 goto neo_z … … 727 735 } 728 736 *n:: 729 if ( not( nurEbenenFuenfUndSechs) )737 if ( not(ahkTreiberKombi) ) 730 738 { 731 739 if( not(einHandNeo) or not(spacepressed) ) … … 769 777 return 770 778 *-:: 771 if ( not( nurEbenenFuenfUndSechs) )779 if ( not(ahkTreiberKombi) ) 772 780 { 773 781 if( not(einHandNeo) or not(spacepressed) ) … … 1706 1714 Send {bs}� 1707 1715 else 1708 sendinput {blind}c 1716 { 1717 sendinput {blind}c 1718 } 1709 1719 if (PriorDeadKey = "comp") 1710 1720 CompKey := "c_small" … … 4048 4058 return 4049 4059 4050 *SC038:: ; LAlt, damit AltTab funktioniert4060 *SC038:: ; LAlt, damit AltTab funktioniert 4051 4061 send {blind}{LAlt} 4052 4062 PriorDeadKey := "" CompKey := "" 4053 4063 return 4054 4064 4055 *Home:: 4065 *Home::+ 4056 4066 sendinput {Blind}{Home} 4057 4067 PriorDeadKey := "" CompKey := "" … … 4135 4145 { 4136 4146 global 4137 if ( nurEbenenFuenfUndSechs)4138 { 4139 if ( IsMod 3Pressed())4147 if (ahkTreiberKombi) 4148 { 4149 if ( IsMod4Pressed() and not(IsShiftPressed()) and not(IsMod3Pressed())) 4140 4150 { 4141 if ( IsShiftPressed() ) 4142 { 4143 Ebene = 5 4144 } 4145 else if ( IsMod4Pressed() ) 4146 { 4147 Ebene = 6 4148 } 4149 } 4151 Ebene = 6 4152 } 4150 4153 else 4151 4154 { … … 4230 4233 { 4231 4234 global 4232 if (IsMod4Locked) 4233 { 4234 return (not ( GetKeyState("<","P") or GetKeyState("SC138","P") )) 4235 } 4236 else { 4237 return ( GetKeyState("<","P") or GetKeyState("SC138","P") ) 4238 } 4235 if( not(einHandNeo) or not(spacepressed) ) 4236 { 4237 if (IsMod4Locked) 4238 { 4239 return (not ( GetKeyState("<","P") or GetKeyState("SC138","P") or altGrPressed )) 4240 } 4241 else { 4242 return ( GetKeyState("<","P") or GetKeyState("SC138","P") or altGrPressed ) 4243 } 4244 } 4245 else 4246 { 4247 if (IsMod4Locked) 4248 { 4249 return (not ( GetKeyState("<","P") or GetKeyState("SC138","P") or GetKeyState("�","P") or altGrPressed )) 4250 } 4251 else { 4252 return ( GetKeyState("<","P") or GetKeyState("SC138","P") or GetKeyState("�","P") or altGrPressed ) 4253 } 4254 } 4255 4239 4256 } 4240 4257
