Hi All , I have search this thread for mentions of Keyboard2xintput AHK and found a few mentions but none to what im after or a mention to look in previous posts , i have and cant find anything,
In a previous post i found a user mentions k2x comes with a sample ahk ive tried editing it to best of my knowledge but since i know nothing about coding im falling short.
The Problem i am having is when i leave a game and return to bigbox my joysticks dont work because k2x is running if i turn k2x off they work.
Apparently in the sample ahk provided you can load k2x when a steam game starts and when you exit it turns off ? im unable to get that to work
Are you able to assign a button on your arcade to toggle k2s on and off what is my best options ?
This is the sample AHK
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
Run, "E:\bartop\software\keyboard2Xinput\keyboard2XinputGui.exe"
Run, "C:\Program Files (x86)\Steam\Steam.exe" -applaunch %1%
isRunning := "0"
While (isRunning = "0") ; Wait until the game is launched
RegRead, isRunning, HKCU\Software\Valve\Steam\Apps\%1%, Running
Sleep, 500
Sleep, 5000
MouseMove, 1920, 1200
WinGetTitle, Title
While (isRunning = "1") ; Wait until the game is closed
RegRead, isRunning, HKCU\Software\Valve\Steam\Apps\%1%, Running
Sleep, 500
; Game stopped, stop keyboard2Xinput by sending numpad multiply key (see k2x mapping.ini)
SendInput {NumpadMult}
; change focus back to Attract-Mode
WinActivate Attract-Mode
What ive done is edit line "E:\bartop\software\keyboard2Xinput\keyboard2XinputGui.exe" to the correct directory then copied txt
Then i went to launchbox - Tools - Edit Autohotkey scripts for Windows Games and Pasted it in there but when i launch a steam game it wont load k2s
Any help would be much appreciated