First I'd like to say that I'm new to AutoHotkey and coding in general. I've currently got a program I downloaded that will overlay any window I like (in this case, Wizard of Legend) overtop of another game that I'm playing (RuneScape).
That's how it looks for reference. I'm trying to be able to send Xbox Elite controller inputs to Wizard of Legend (WoL) while also being able to use my mouse (and preferably keyboard) to control the Runescape (RS) window. I've got a crude program set up that will constantly force WoL to be the active window. This does allow me to always send controller inputs to WoL, and use my mouse to click and (somewhat) play RS. Though clicking frequently will often result in missed clicks and the keyboard is still being directed at the WoL window.
Code: Select all
Loop
{
if WinActive("RuneScape")
WinActivate, Wizard of Legend
}
It's very crude I'm sure. I had been looking at possibly using the ControlSend command (with ahk_parent to just direct commands at the window in general) in combination with Xinput. To be honest this seems a bit past my ability, and the only version of Xinput made for AutoHotkey that I found seemed to be from 2008 and based around an Xbox 360 controller. I'm not quite sure how to proceed from here and was looking for advice or possibly relevant examples as my googling hasn't turned up anything.