Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

Far Cry 4 Drive with mouse buttons.



  • Please log in to reply
2 replies to this topic
Sando
  • Members
  • 2 posts
  • Last active: Dec 24 2014 09:39 PM
  • Joined: 23 Dec 2014

So I have been playing Far Cry 4 and I noticed you can't change the walking and vehichle controls separately(When you change one the other changes too). Because of my disability I'm not able to play it like this. So I tried to make a script that remaps LMB to A and RMB to D but I ran into two problems; 1. I can't toggle the script on/off in-game. 2. When I press LMB it acts as A but ALSO as LMB (same with RMB) I want to disable that.
Here's my script. (I'm new to AHK so it's really basic)

 

 

a::LButton
LButton::a
 
d::RButton
RButton::D
 
p::Suspend, Toggle
 
Pause
 
return

I really appreciate any help you can provide.


Dilof
  • Members
  • 74 posts
  • Last active: Jun 28 2015 11:52 AM
  • Joined: 24 Jul 2014
✓  Best Answer

Hey, unfortunately in Far Cry 3&4 you cannot remap a key that's already in use, as it will always trigger it's native function too.

I was thinking of a walk around for this and it seems to work fine.

 

To start off, change shooting and aiming to Numpad5 and Numpad6 ingame.

  • LMB -> Num5
  • RMB -> Num6

Now there are two scripts:

#NoEnv
DetectHiddenWindows On
SetTitleMatchMode 2 

Suspend
f11::Suspend

*LButton::
SendInput {Numpad5 Down}
return

*LButton Up::
SendInput {Numpad5 Up}
return

*RButton::
SendInput {Numpad6 Down}
return

*RButton Up::
SendInput {Numpad6 Up}
return

*LAlt::
Suspend
PostMessage, 0x111, 65305,,, FC4_vehicle.ahk - AutoHotkey
return

f10::
IfWinExist, FC4_vehicle.ahk - AutoHotkey
	WinClose
IfWinExist, FC4_foot.ahk - AutoHotkey
	WinClose

Save this one as FC4_foot.ahk

#NoEnv
DetectHiddenWindows On
SetTitleMatchMode 2 

Suspend
f12::Suspend

*LButton::
SendInput {a Down}
return

*LButton Up::
SendInput {a Up}
return

*RButton::
SendInput {d Down}
return

*RButton Up::
SendInput {d Up}
return

*LAlt::
Suspend
PostMessage, 0x111, 65305,,, FC4_foot.ahk - AutoHotkey
return

f10::
IfWinExist, FC4_foot.ahk - AutoHotkey
	WinClose
IfWinExist, FC4_vehicle.ahk - AutoHotkey
	WinClose

And this one as FC4_vehicle.ahk

 

 

When ingame, press F11 to activate the first script. Pressing LAlt will switch between on foot and in vehicle settings.

To close both scripts press F10.

 

This can be your temporary solution, I'm sure there's a better way of doing it though, I couldn't manage to figure it out.



Sando
  • Members
  • 2 posts
  • Last active: Dec 24 2014 09:39 PM
  • Joined: 23 Dec 2014

Thanks for your help, it's working! :D