UPDATED-STATEMENT: 20181102@112800@SUN Post created
UPDATED-STATEMENT: 20181104@133200@TUE Suggested pre-requisite code that worked only for a short while
UPDATED-STATEMENT: 20190101@184318@TUE Pre-requisite code no longer works in csgo anymore and never had with kf2 so I need help with another solution as to why it doesn't work perhaps an update happened preventing it from working for csgo
win10_v1803.17134.345_home
autohotkeyahk_v1.1.30.00
How to hold w when holding XButton1 on Logitech G502 using AutoHotKey? Problem is when holding the key with the script below it just sends a single output and not producing typical Windows-behavior which is really holding it (see below for example). Keep in mind that just because i'm intentionally using this for the purpose of playing fps games, but globally remapping it is much easier than including every game I so happen to play to be part of changing the LogitechG502's control buttons.
I think it's cool to move forward in-game while grabbing hot cheetos with my other hand
Would suggestions here make games wanna change?
Are games becoming dependent to knowing what their users are keystroking?
PROBLEM
- I don't have a way to remap
XButton1
on my LogitechG502 to replicate holdingw
- ahk-while command works but doesn't behave properly and acts as a press-release-press-release really fast even when slowed down using ahk-sleep
- see below for solution on setting up several ahk-commands to remap LogitechG502's XButton1 to w to move forward while ingame
SOLUTION
- None-so-far
- Code suggested by user3419297 no longer works after a csgo update that was relevant to this very post
SAMPLE
- Notworking:
XButton1::SendInput, w ; mouse advanced button back as holding forward in-game
- Holding for 3-sec, XButton1 (w/ script above) gives me:
w
- Holding for 3-sec, w gives me:
wwwwwwwwwwwwwwwwwwwwwwwwww
- Holding for 3-sec, XButton1 (w/ script above) gives me:
- Worksbutimproperuseoftoggle (or fast repetition of pressing down W):
- doesn't replicate holding
w
properly as this method is way faster of a repeat even when slowed down by ahk-sleep
- doesn't replicate holding
$XButton1:: while GetKeyState("XButton1", "P") Send w return
- Workbutnotanymore
- This pre-requisite code doesn't work anymore after 2-months of usage and perhaps that may be due to a csgo update as I don't have another fps shooter to test it with
#NoEnv #SingleInstance Force #InstallKeybdHook #InstallMouseHook #UseHook #If WinActive ahk_exe csgo.exe || WinActive ahk_exe game2.exe || WinActive ahk_exe game3.exe XButton1::w #IfWinActive