PDA

View Full Version : Exiting the game with a controller



doyouevensunbro
07-06-2015, 15:48
(Posted this on the Reddit Project CARS subreddit, figured I'd post it here as well)

Looking to exit Project CARS with just the controller? I'm using the following AutoHotKey script. Since I'm using a 360 Controller (until my steering wheel gets here), I mapped the exit to the Back button. Just hold it down for three seconds and Project CARS will exit and you will go back to Steam. It works for other games as well.

https://gist.github.com/anonymous/cad59d49095fc4071266

Feel free to do whatever you want with the script.

Mahjik
08-06-2015, 17:41
This will be something those with controllers will love! I've added this to the "Helpful Posts" section.

Anach
19-07-2015, 09:49
Thanks for the script, however, the code wont run, as there is a period on line 23 instead of a comma.

Fixed:

~Joy7::
Duration=0
Loop
{
Duration++
If !GetKeyState("Joy7", "P") {
Break
}

If Duration > 3
{
IfWinActive, Project CARS
{
WinKill
} else {
Send, {Alt down}{F4 down}
Sleep 100
Send, {Alt up}{F4 up}
}
Sleep, 2000
IfWinExist, Steam
{
WinActivate, Steam
}
Break
}
Sleep 1000
}
return

deadboy
21-07-2015, 18:29
Before the release it was possible to exit the game using the controller back button. This ability will come back sooner or later. Probably it's a GUI problem and will be fixed.