Changeset 542

Show
Ignore:
Timestamp:
06/19/08 11:24:55 (5 years ago)
Author:
matthias
Message:

- bei EinHandNeo ist jetzt Space+y auch Mod4
- AltGr-Bug hoffentlich wieder behoben. Diesmal mit extra altGrPressed Variable
- nurEbenenFuenfUndSechs umbenannt in ahkTreiberKombi und auf Ebene 4 statt 5 und 6 geändert

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • windows/autohotkey/neo20-all-in-one.ahk

    r540 r542  
    1717    CHANGEHISTORY: 
    1818                  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): 
    1923                  - stark �berarbeitet um Wartbarkeit zu erh�hen und Redundanz zu veringern 
    20                   - nurEbenenFuenfUndSechs sollte nun Qwerty ber�cksichtigen 
     24                  - nurEbenenFuenfUndSechs sollte nun auch auf Neo Treiber statt Qwertz laufen 
    2125                    * aber es muss noch jemand testen 
    2226                    * Problem: was kann man abfangen, wenn eine tote Taste gedr�ckt wird 
     
    7983*/ 
    8084; Sollen Ebenen 1-4 ignoriert werden? (kann z.B. vom dll Treiber �bernommen werden) Ja = 1, Nein = 0 
    81 nurEbenenFuenfUndSechs := 0 
     85ahkTreiberKombi := 0 
    8286einHandNeo := 0 
    8387 
     
    263267      } 
    264268return 
    265 *SC138::return  ; Damit AltGr nicht extra etwas schickt und als stiller Modifier geht. 
    266  
     269*SC138:: 
     270 altGrPressed := 1 
     271return  ; Damit AltGr nicht extra etwas schickt und als stiller Modifier geht. 
     272*SC138 up:: 
     273 altGrPressed := 0 
     274return  
    267275 
    268276/* ; das folgende wird seltsamerweise nicht gebraucht :) 
     
    385393return 
    386394*�:: 
    387   if ( not(nurEbenenFuenfUndSechs) ) 
     395  if ( not(ahkTreiberKombi) ) 
    388396  { 
    389397       if( not(einHandNeo) or not(spacepressed) ) 
     
    403411*Tab::goto neo_tab 
    404412*q:: 
    405   if ( not(nurEbenenFuenfUndSechs) ) 
     413  if ( not(ahkTreiberKombi) ) 
    406414  { 
    407415     goto neo_x 
     
    412420  } 
    413421*w:: 
    414   if ( not(nurEbenenFuenfUndSechs) ) 
     422  if ( not(ahkTreiberKombi) ) 
    415423  { 
    416424         goto neo_v 
     
    421429  } 
    422430*e:: 
    423   if ( not(nurEbenenFuenfUndSechs) ) 
     431  if ( not(ahkTreiberKombi) ) 
    424432  { 
    425433         goto neo_l 
     
    430438  } 
    431439*r:: 
    432   if ( not(nurEbenenFuenfUndSechs) ) 
     440  if ( not(ahkTreiberKombi) ) 
    433441  { 
    434442     goto neo_c 
     
    439447  } 
    440448*t:: 
    441   if ( not(nurEbenenFuenfUndSechs) ) 
     449  if ( not(ahkTreiberKombi) ) 
    442450  { 
    443451     goto neo_w 
     
    448456  } 
    449457*z:: 
    450   if ( not(nurEbenenFuenfUndSechs) ) 
     458  if ( not(ahkTreiberKombi) ) 
    451459  { 
    452460     if( not(einHandNeo) or not(spacepressed) ) 
     
    463471  } 
    464472*u:: 
    465   if ( not(nurEbenenFuenfUndSechs) ) 
     473  if ( not(ahkTreiberKombi) ) 
    466474  { 
    467475     if( not(einHandNeo) or not(spacepressed) ) 
     
    478486  } 
    479487*i:: 
    480   if ( not(nurEbenenFuenfUndSechs) ) 
     488  if ( not(ahkTreiberKombi) ) 
    481489  { 
    482490     if( not(einHandNeo) or not(spacepressed) ) 
     
    493501  } 
    494502*o:: 
    495   if ( not(nurEbenenFuenfUndSechs) ) 
     503  if ( not(ahkTreiberKombi) ) 
    496504  { 
    497505     if( not(einHandNeo) or not(spacepressed) ) 
     
    508516  } 
    509517*p:: 
    510   if ( not(nurEbenenFuenfUndSechs) ) 
     518  if ( not(ahkTreiberKombi) ) 
    511519  { 
    512520     if( not(einHandNeo) or not(spacepressed) ) 
     
    523531  } 
    524532*�:: 
    525   if ( not(nurEbenenFuenfUndSechs) ) 
     533  if ( not(ahkTreiberKombi) ) 
    526534  { 
    527535     if( not(einHandNeo) or not(spacepressed) ) 
     
    538546  } 
    539547*+:: 
    540   if ( not(nurEbenenFuenfUndSechs) ) 
     548  if ( not(ahkTreiberKombi) ) 
    541549  { 
    542550     if( not(einHandNeo) or not(spacepressed) ) 
     
    552560; Reihe 3 
    553561*a:: 
    554   if ( not(nurEbenenFuenfUndSechs) ) 
     562  if ( not(ahkTreiberKombi) ) 
    555563  { 
    556564     goto neo_u 
     
    561569  } 
    562570*s:: 
    563   if ( not(nurEbenenFuenfUndSechs) ) 
     571  if ( not(ahkTreiberKombi) ) 
    564572  { 
    565573     goto neo_i 
     
    570578  } 
    571579*d::goto neo_a 
    572   if ( not(nurEbenenFuenfUndSechs) ) 
     580  if ( not(ahkTreiberKombi) ) 
    573581  { 
    574582     goto neo_a 
     
    579587  } 
    580588*f:: 
    581   if ( not(nurEbenenFuenfUndSechs) ) 
     589  if ( not(ahkTreiberKombi) ) 
    582590  { 
    583591     goto neo_e 
     
    588596  } 
    589597*g:: 
    590   if ( not(nurEbenenFuenfUndSechs) ) 
     598  if ( not(ahkTreiberKombi) ) 
    591599  { 
    592600     goto neo_o 
     
    597605  } 
    598606*h:: 
    599   if ( not(nurEbenenFuenfUndSechs) ) 
     607  if ( not(ahkTreiberKombi) ) 
    600608  { 
    601609     if( not(einHandNeo) or not(spacepressed) ) 
     
    612620  } 
    613621*j:: 
    614   if ( not(nurEbenenFuenfUndSechs) ) 
     622  if ( not(ahkTreiberKombi) ) 
    615623  { 
    616624     if( not(einHandNeo) or not(spacepressed) ) 
     
    627635  } 
    628636*k:: 
    629   if ( not(nurEbenenFuenfUndSechs) ) 
     637  if ( not(ahkTreiberKombi) ) 
    630638  { 
    631639     if( not(einHandNeo) or not(spacepressed) ) 
     
    642650  } 
    643651*l:: 
    644   if ( not(nurEbenenFuenfUndSechs) ) 
     652  if ( not(ahkTreiberKombi) ) 
    645653  { 
    646654     if( not(einHandNeo) or not(spacepressed) ) 
     
    657665  } 
    658666*�:: 
    659   if ( not(nurEbenenFuenfUndSechs) ) 
     667  if ( not(ahkTreiberKombi) ) 
    660668  { 
    661669     if( not(einHandNeo) or not(spacepressed) ) 
     
    672680  } 
    673681*�:: 
    674   if ( not(nurEbenenFuenfUndSechs) ) 
     682  if ( not(ahkTreiberKombi) ) 
    675683  { 
    676684     goto neo_y 
     
    682690; Reihe 4 
    683691*y:: 
    684   if ( not(nurEbenenFuenfUndSechs) ) 
     692  if ( not(ahkTreiberKombi) ) 
    685693  { 
    686694     goto neo_� 
     
    691699  } 
    692700*x:: 
    693   if ( not(nurEbenenFuenfUndSechs) ) 
     701  if ( not(ahkTreiberKombi) ) 
    694702  { 
    695703     goto neo_� 
     
    700708  } 
    701709*c:: 
    702   if ( not(nurEbenenFuenfUndSechs) ) 
     710  if ( not(ahkTreiberKombi) ) 
    703711  { 
    704712     goto neo_� 
     
    709717  } 
    710718*v:: 
    711   if ( not(nurEbenenFuenfUndSechs) ) 
     719  if ( not(ahkTreiberKombi) ) 
    712720  { 
    713721     goto neo_p 
     
    718726  } 
    719727*b:: 
    720   if ( not(nurEbenenFuenfUndSechs) ) 
     728  if ( not(ahkTreiberKombi) ) 
    721729  { 
    722730     goto neo_z 
     
    727735  } 
    728736*n:: 
    729   if ( not(nurEbenenFuenfUndSechs) ) 
     737  if ( not(ahkTreiberKombi) ) 
    730738  { 
    731739     if( not(einHandNeo) or not(spacepressed) ) 
     
    769777return 
    770778*-:: 
    771   if ( not(nurEbenenFuenfUndSechs) ) 
     779  if ( not(ahkTreiberKombi) ) 
    772780  { 
    773781     if( not(einHandNeo) or not(spacepressed) ) 
     
    17061714         Send {bs}� 
    17071715      else 
    1708          sendinput {blind}c 
     1716      {          
     1717         sendinput {blind}c       
     1718      } 
    17091719      if (PriorDeadKey = "comp") 
    17101720         CompKey := "c_small" 
     
    40484058return 
    40494059 
    4050 *SC038::                            ; LAlt, damit AltTab funktioniert 
     4060*SC038::                    ; LAlt, damit AltTab funktioniert 
    40514061   send {blind}{LAlt} 
    40524062   PriorDeadKey := ""   CompKey := "" 
    40534063return 
    40544064 
    4055 *Home:: 
     4065*Home::+ 
    40564066   sendinput {Blind}{Home} 
    40574067   PriorDeadKey := ""   CompKey := "" 
     
    41354145{ 
    41364146   global 
    4137    if (nurEbenenFuenfUndSechs) 
    4138    { 
    4139       if ( IsMod3Pressed() ) 
     4147   if (ahkTreiberKombi) 
     4148   { 
     4149      if ( IsMod4Pressed() and not(IsShiftPressed()) and not(IsMod3Pressed())) 
    41404150      { 
    4141         if ( IsShiftPressed() ) 
    4142         { 
    4143            Ebene = 5 
    4144         } 
    4145         else if ( IsMod4Pressed() ) 
    4146         { 
    4147            Ebene = 6       
    4148         } 
    4149       }  
     4151         Ebene = 6       
     4152      } 
    41504153      else 
    41514154      { 
     
    42304233{ 
    42314234   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    
    42394256} 
    42404257