Changeset 547
- Timestamp:
- 06/21/08 01:10:01 (5 years ago)
- Location:
- windows/kbdneo2/ahk_für_kbdneo2_Test
- Files:
-
- 2 modified
-
AutoHotkey.ahk (modified) (1 diff)
-
steuertasten_hack.exe (modified) (previous)
Legend:
- Unmodified
- Added
- Removed
-
windows/kbdneo2/ahk_für_kbdneo2_Test/AutoHotkey.ahk
r543 r547 1 ;VKe2 ist VK_OEM_102 1 ;== Fehlende Steuerbefehle hinzu == 2 3 ;SC138 ist VK_OEM_102 (rechts) ist Mod4 2 4 ;�Bild auf� 3 ~ vke2& 4::Sendinput {Blind}{PGUP}5 ~SC138 & 4::Sendinput {Blind}{PGUP} 4 6 ;Cursor �Hoch� 5 ~ vke2& l::Sendinput {Blind}{UP}7 ~SC138 & l::Sendinput {Blind}{UP} 6 8 ;�Entfernen� 7 ~ vke2& c::Sendinput {Blind}{DEL}9 ~SC138 & c::Sendinput {Blind}{DEL} 8 10 ;�Einf�gen� 9 ~ vke2& w::Sendinput {Blind}{INS}11 ~SC138 & w::Sendinput {Blind}{INS} 10 12 ;�Pos1� 11 ~ vke2& u::Sendinput {Blind}{HOME}13 ~SC138 & u::Sendinput {Blind}{HOME} 12 14 ;Cursor �Links� 13 ~ vke2& i::Sendinput {Blind}{LEFT}15 ~SC138 & i::Sendinput {Blind}{LEFT} 14 16 ;Cursor �Runter� 15 ~ vke2& a::Sendinput {Blind}{DOWN}17 ~SC138 & a::Sendinput {Blind}{DOWN} 16 18 ;Cursor �Rechts� 17 ~ vke2& e::Sendinput {Blind}{RIGHT}19 ~SC138 & e::Sendinput {Blind}{RIGHT} 18 20 ;�Ende� 19 ~ vke2& o::Sendinput {Blind}{END}21 ~SC138 & o::Sendinput {Blind}{END} 20 22 ;�Bild ab� 21 ~vke2 & '::Sendinput {Blind}{PGUP} 22 ;�Tab� damit Tab+Shift funzt 23 vke2 & *]::send {blind}{Tab} 24 23 ~SC138 & '::Sendinput {Blind}{PGDN} 24 25 ;SC056 ist VK_OEM_102 (links) ist Mod4 26 ;�Bild auf� 27 ~SC056 & 4::Sendinput {Blind}{PGUP} 28 ;Cursor �Hoch� 29 ~SC056 & l::Sendinput {Blind}{UP} 30 ;�Entfernen� 31 ~SC056 & c::Sendinput {Blind}{DEL} 32 ;�Einf�gen� 33 ~SC056 & w::Sendinput {Blind}{INS} 34 ;�Pos1� 35 ~SC056 & u::Sendinput {Blind}{HOME} 36 ;Cursor �Links� 37 ~SC056 & i::Sendinput {Blind}{LEFT} 38 ;Cursor �Runter� 39 ~SC056 & a::Sendinput {Blind}{DOWN} 40 ;Cursor �Rechts� 41 ~SC056 & e::Sendinput {Blind}{RIGHT} 42 ;�Ende� 43 ~SC056 & o::Sendinput {Blind}{END} 44 ;�Bild ab� 45 ~SC056 & '::Sendinput {Blind}{PGDN} 46 47 ;== Mod-Locks hinzu == 48 49 ;= CapsLock mit Shift+Shift = 25 50 ;RShift wenn vorher LShift gedr�ckt wurde 26 51 LShift & ~RShift:: 27 if GetKeyState("CapsLock","T")28 {29 setcapslockstate, off30 }31 else32 {33 setcapslockstate, on34 }52 if GetKeyState("CapsLock","T") 53 { 54 setcapslockstate, off 55 } 56 else 57 { 58 setcapslockstate, on 59 } 35 60 return 36 61 37 62 ;LShift wenn vorher RShift gedr�ckt wurde 38 63 RShift & ~LShift:: 39 if GetKeyState("CapsLock","T") 40 { 41 setcapslockstate, off 42 } 43 else 44 { 45 setcapslockstate, on 46 } 47 return 48 49 64 if GetKeyState("CapsLock","T") 65 { 66 setcapslockstate, off 67 } 68 else 69 { 70 setcapslockstate, on 71 } 72 return 73 74 56()[{ 75 IsMod4Locked := 0 76 Mod4LockAktion :=0 77 ~SC056 & SC138:: 78 if (IsMod4Locked) 79 { 80 IsMod4Locked = 0 81 Mod4LockAktion = 0 82 ; MsgBox Mod4-Feststellung aufgebehoben 83 sendinput {vke2 up} 84 } 85 else 86 { 87 IsMod4Locked = 1 88 Mod4LockAktion = 1 89 MsgBox Mod4 festgestellt: Um Mod4 wieder zu l�sen dr�cke beide Mod4 Tasten gleichzeitig 90 goto SendMod4 91 } 92 return 93 94 ~SC138 & SC056:: 95 if (IsMod4Locked) 96 { 97 IsMod4Locked = 0 98 Mod4LockAktion = 0 99 ; MsgBox Mod4-Feststellung aufgebehoben 100 sendinput {vke2 up} 101 } 102 else 103 { 104 IsMod4Locked = 1 105 Mod4LockAktion = 1 106 MsgBox Mod4 festgestellt: Um Mod4 wieder zu l�sen dr�cke beide Mod4 Tasten gleichzeitig 107 goto SendMod4 108 } 109 return 110 111 SendMod4: 112 if(IsMod4Locked AND Mod4LockAktion) 113 sendinput {vke2 down} 114 else 115 sendinput {vke2 up} 116 return 117 118 119 ~Shift:: 120 if (IsMod4Locked) 121 { 122 Mod4LockAktion = 0 123 goto SendMod4 124 } 125 else 126 return 127 128 ~SHIFT UP:: 129 if (IsMod4Locked) 130 { 131 Mod4LockAktion = 1 132 goto SendMod4 133 } 134 else 135 return 136 137 138 ~vk15:: 139 if (IsMod4Locked) 140 { 141 Mod4LockAktion = 0 142 goto SendMod4 143 } 144 else 145 return 146 147 ~vk15 UP:: 148 if (IsMod4Locked) 149 { 150 Mod4LockAktion = 1 151 goto SendMod4 152 } 153 else 154 return 155 156 157 ~SC138:: 158 if (IsMod4Locked) 159 { 160 Mod4LockAktion = 0 161 goto SendMod4 162 } 163 else 164 return 165 166 ~SC138 UP:: 167 if (IsMod4Locked) 168 { 169 Mod4LockAktion = 1 170 goto SendMod4 171 } 172 else 173 return 174 175 ~SC056:: 176 if (IsMod4Locked) 177 { 178 Mod4LockAktion = 0 179 goto SendMod4 180 } 181 else 182 return 183 184 185 186 ~SC056 UP:: 187 if (IsMod4Locked) 188 { 189 Mod4LockAktion = 1 190 goto SendMod4 191 } 192 else 193 return 194 195 196 ~4:: 197 if (Mod4LockAktion) 198 Sendinput {Blind}{PGUP} 199 return 200 201 ~l:: 202 if (Mod4LockAktion) 203 Sendinput {Blind}{UP} 204 return 205 206 ~c:: 207 if (Mod4LockAktion) 208 Sendinput {Blind}{DEL} 209 return 210 211 ~w:: 212 if (Mod4LockAktion) 213 Sendinput {Blind}{INS} 214 return 215 216 ~u:: 217 if (Mod4LockAktion) 218 Sendinput {Blind}{HOME} 219 return 220 221 ~i:: 222 if (Mod4LockAktion) 223 Sendinput {Blind}{LEFT} 224 return 225 226 ~a:: 227 if (Mod4LockAktion) 228 Sendinput {Blind}{DOWN} 229 return 230 231 ~e:: 232 if (Mod4LockAktion) 233 Sendinput {Blind}{RIGHT} 234 return 235 236 ~o:: 237 if (Mod4LockAktion) 238 Sendinput {Blind}{END} 239 return 240 241 ~':: 242 if (Mod4LockAktion) 243 Sendinput {Blind}{PGDN} 244 return
