Dirt Rally > WASD + Arrows

Ask gaming related questions (AHK v1.1 and older)
Fenekie
Posts: 10
Joined: 30 Dec 2017, 13:55

Dirt Rally > WASD + Arrows

04 Mar 2018, 15:51

Hello there guys, so as you probably know. in some games you just have only one set of possible keys for game control and also for most of games it's sufficient. But in driving games, I sometimes like to change my hand so the other hand could rest. In Euro Truck Simulator you have possibility to set alternative key bindings, but in Dirt Rally... nope... >.<

Code: Select all

#NoEnv
#InstallKeybdHook
#MaxThreadsPerHotkey 5
#IfWinActive DiRT Rally
{
	Up::W
	Down::S
	Left::A
	Right::D
}
I'm not sure why this just doesn't work. Any help? O.o
Rohwedder
Posts: 7627
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: Dirt Rally > WASD + Arrows

05 Mar 2018, 04:13

Hallo,
perhaps:

Code: Select all

Up::w
Down::s
Left::a
Right::d
Fenekie
Posts: 10
Joined: 30 Dec 2017, 13:55

Re: Dirt Rally > WASD + Arrows

05 Mar 2018, 10:29

Yea, I made this script myself, so I know how it works, but I need to use arrows out of the game, so that's why I want to make script, which will detect the game...
User avatar
Nwb
Posts: 444
Joined: 29 Nov 2016, 08:56

Re: Dirt Rally > WASD + Arrows

05 Mar 2018, 11:04

Fenekie wrote:Hello there guys, so as you probably know. in some games you just have only one set of possible keys for game control and also for most of games it's sufficient. But in driving games, I sometimes like to change my hand so the other hand could rest. In Euro Truck Simulator you have possibility to set alternative key bindings, but in Dirt Rally... nope... >.<

Code: Select all

#NoEnv
#InstallKeybdHook
#MaxThreadsPerHotkey 5
#IfWinActive DiRT Rally
{
	Up::W
	Down::S
	Left::A
	Right::D
}
I'm not sure why this just doesn't work. Any help? O.o

Code: Select all

#NoEnv
#InstallKeybdHook
#MaxThreadsPerHotkey 5
#IfWinActive DiRT Rally
	Up::W
	Down::S
	Left::A
	Right::D
#IfWinActive
You forgot the second #IfWinActive to follow. :D
And you need not enclose anything with braces.
I am your average ahk newbie. Just.. a tat more cute. ;)
Fenekie
Posts: 10
Joined: 30 Dec 2017, 13:55

Re: Dirt Rally > WASD + Arrows

05 Mar 2018, 11:59

I'm just used to braces... xD And can you explain me, why do I need another #IfWinActive? O.o
By the way... It still doesn't work... >.<
User avatar
Nwb
Posts: 444
Joined: 29 Nov 2016, 08:56

Re: Dirt Rally > WASD + Arrows

05 Mar 2018, 23:23

Fenekie wrote:I'm just used to braces... xD And can you explain me, why do I need another #IfWinActive? O.o
By the way... It still doesn't work... >.<
What does it say /or/ happens? Maybe you should leave some space after :: before writing w and etc. Or maybe the wintitle for ifwinactive is incorrect.
The second

The second #ifwin is to turn off context sensitivity I don't think it's required oops.
I am your average ahk newbie. Just.. a tat more cute. ;)
Fenekie
Posts: 10
Joined: 30 Dec 2017, 13:55

Re: Dirt Rally > WASD + Arrows

06 Mar 2018, 09:45

Nevermind, it must be game problem. I tried to remove condition, but autohotkey doesn't work in the game...

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: Rohwedder and 69 guests