Thanks again! I went for a more forceful method of closing Xpadder since the WinClose method wasn't working for me. Here's my full script if anyone else is trying to accomplish the same:
SetTitleMatchMode, 2
SetKeyDelay, 0, 50
Loop
{
ifwinactive, ahk_exe melonDS.exe
{
sleep 2000
send {F11}
break
}
}
Run, "G:\Gaming\Utilities\Xpadder\Profiles\melonDS\Xbox 360.xpadderprofile"
Process, Wait, melonDS.exe
while winExist("ahk_exe melonDS.exe")
sleep 700
$esc::
{
Process,Close,Xpadder.exe
WinClose, ahk_exe melonDS.exe
}
I really love the melonDS emulator, but it's not very customizable. There's no way to map analog sticks to mouse movements (hence the need for an Xpadder profile). This script is doing exactly what I'm needing. Much appreciated again!