diff --git a/README.md b/README.md index 8291889..20366b6 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,7 @@ -Prototipo con AHK: flechas en letras. +Merece la pena todo esto? -Utilizar o compilar con AHKv1. +Puede que no, mas tampoco OW2 + +e igualmente se hizo. + + - Gato gamer \ No newline at end of file diff --git a/exetoso.ahk b/exetoso.ahk index 8293c3e..d55a0f6 100644 --- a/exetoso.ahk +++ b/exetoso.ahk @@ -1,90 +1,63 @@ -; UP LEFT DOWN RIGHT -keyboardActions := {"i" : "Up", "j" : "Left", "k" : "Down" , "l" : "Right"} -;keyboardKeys := ["i", "j", "k", "l"] -;actions := ["Up", "Left", "Down", "Right"] - -;parseKey(keyboardKey) { -; for key, value in keyboardActions -; if (value == keyboardKey) -; return value -; return 0 -;} -/* - -CapsLock & i:: CapsLock & j:: -CapsLock & k:: -CapsLock & l:: - - MsgBox % "testt" -*/ - - -CapsLock & j:: - loop { - ctrlState := GetKeyState("Ctrl", "P") - shiftState := GetKeyState("Shift", "P") - switch (shiftState + ctrlState) { - case 0: - SendInput {Left} - return - case 1: - SendInput, % ((shiftState == 1) ? ("+{Left}") : ("^{Left}")) - return - case 2: - SendInput % ("^+{keyboardActions[""j""]}") - return - default: - MsgBox % "Fail!" - return - } - return + shiftState := GetKeyState("Shift", "P") + ctrlState := GetKeyState("Ctrl", "P") + switch (shiftState + ctrlState) { + case 0: + SendInput {Left} + return + case 1: + SendInput, % ((shiftState == 1) ? ("+{Left}") : ("^{Left}")) + return + case 2: + SendInput ^+{Left} + return + default: + MsgBox % "menudo gilipolls" + return } + return + CapsLock & k:: - loop { - shiftState := GetKeyState("Shift", "P") - ctrlState := GetKeyState("Ctrl", "P") - switch (shiftState + ctrlState) { - case 0: - SendInput {Down} - return - case 1: - SendInput, % ((shiftState == 1) ? ("+{Down}") : ("^{Down}")) - return - case 2: - SendInput ^+{Down} - return - default: - MsgBox % "Fail!" - return - } - return + shiftState := GetKeyState("Shift", "P") + ctrlState := GetKeyState("Ctrl", "P") + switch (shiftState + ctrlState) { + case 0: + SendInput {Down} + return + case 1: + SendInput, % ((shiftState == 1) ? ("+{Down}") : ("^{Down}")) + return + case 2: + SendInput ^+{Down} + return + default: + MsgBox % "menudo gilipolls" + return } - + return + CapsLock & l:: - loop { - ctrlState := GetKeyState("Ctrl", "P") - shiftState := GetKeyState("Shift", "P") - switch (shiftState + ctrlState) { - case 0: - SendInput {Right} - return - case 1: - SendInput, % ((shiftState == 1) ? ("+{Right}") : ("^{Right}")) - return - case 2: - SendInput ^+{Right} - return - default: - MsgBox % "Fail!" - return - } - return + shiftState := GetKeyState("Shift", "P") + ctrlState := GetKeyState("Ctrl", "P") + switch (shiftState + ctrlState) { + case 0: + SendInput {Right} + return + case 1: + SendInput, % ((shiftState == 1) ? ("+{Right}") : ("^{Right}")) + return + case 2: + SendInput ^+{Right} + return + default: + MsgBox % "menudo gilipolls" + return } + return + CapsLock & i:: - loop { shiftState := GetKeyState("Shift", "P") ctrlState := GetKeyState("Ctrl", "P") switch (shiftState + ctrlState) { @@ -98,11 +71,10 @@ CapsLock & i:: SendInput ^+{Up} return default: - MsgBox % "Fail!" + MsgBox % "menudo gilipolls" return } return - } /* myVarWithKeystrokes := "+john+doe{Tab}+pas+sw0rd{Enter}" @@ -122,5 +94,4 @@ case 1: } */ -Esc::ExitApp -/*Esc::ExitApp*/ \ No newline at end of file +Esc::ExitApp \ No newline at end of file