Great ;) it remains a viable solution, congratulations for the transformation of the script into V2,
now you have to make shortcuts for the tekken games and then you make
an AHK for each tekken to automate the pressing of the F11 key with a "winwaitactive, (the name of the open window of the game)
followed by the number of presses on F11, then you compile the ahk and that will make you game executables
that you can surely integrate into launchbox
Run("Play.exe")
WinWaitActive, (name of windows game)
Sleep, 100
Send, {F11}
Sleep, 100
Send, {F11}
Sleep, 100
Send, {F11}
F11::
#UseHook true
{ ; V1toV2: Added bracket
global ; V1toV2: Made function global
TempWindowID := WinGetID("A")
WindowID := 0
If (WindowID != TempWindowID)
{
WindowID:=TempWindowID
WindowState:=0
}
If (WindowState != 1)
{
WinGetPos(&WinPosX, &WinPosY, &WindowWidth, &WindowHeight, "ahk_id " WindowID)
WinSetStyle(-12845056, "ahk_id " WindowID)
WinMove(0, 0, A_ScreenWidth, A_ScreenHeight, "ahk_id " WindowID)
;Hide Windows Task Bar and Start Button. (Remove the following two lines if you don't want that behaviour)
;WinHide "ahk_class Shell_TrayWnd"
;WinHide("Start ahk_class Button")
}
Else
{
WinSetStyle(12845056, "ahk_id " WindowID)
WinMove(WinPosX, WinPosY, WindowWidth, WindowHeight, "ahk_id " WindowID)
;Show the task bar again
;WinShow("ahk_class Shell_TrayWnd")
;WinShow("Start ahk_class Button")
}
WindowState:=!WindowState
Return
} ; V1toV2: Added bracket in the end