Jump to content
EN
Play

Forum

r_Mr.Slade0

General
  • Posts

    2
  • Joined

  • Last visited

Reputation

0 Neutral
  1. r_Mr.Slade0

    [Solution] Keyboard Jamming (Ghosting)

    #Persistent ; Keep this script running until the user explicitly exits it. SetTimer, WatchAxis, 5 return WatchAxis: GetKeyState, JoyX, JoyX ; Get position of X axis. GetKeyState, JoyY, JoyY ; Get position of Y axis. KeyToHoldDownPrev = %KeyToHoldDown% ; Prev now holds the key that was down before (if any). if JoyX > 70 KeyToHoldDown = Right else if JoyX < 30 KeyToHoldDown = Left else if JoyY > 70 KeyToHoldDown = Down else if JoyY < 30 KeyToHoldDown = Up else KeyToHoldDown = if KeyToHoldDown = %KeyToHoldDownPrev% ; The correct key is already down (or no key is needed). return ; Do nothing. ; Otherwise, release the previous key and press down the new key: SetKeyDelay -1 ; Avoid delays between keystrokes. if KeyToHoldDownPrev ; There is a previous key to release. Send, {%KeyToHoldDownPrev% up} ; Release it. if KeyToHoldDown ; There is a key to press down. Send, {%KeyToHoldDown% down} ; Press it down. return ""DO NOT COPY THIS,This above is the script, do not copy this letter right here, if you are using AWSD buttons than replace the arrows by just pressing the buttons, A for left, W for up and so on. DO NOT COPY THIS""
×
×
  • Create New...