I'm running the game in Borderless Windowed mode.
1) #IfWinActive is not working, in this way - the script works in the game, but it also continues to work when in a different window, like Notepad++ or a browser. I've tried different WinTitles like the full title, the id, and as you see here a partial which should work.
2) Pressing A or D is intended to move the mouse cursor in the X axis only and it works fine at first. I also can move the cursor around with the mouse. After several minutes the script will move to a very different Y axis, either way up or down, but the Y axis should never change. Very odd, do you think this is some type of anti-mod feature of the game?
Code: Select all
#NoEnv
#SingleInstance Force
SendMode Input
SetWorkingDir %A_ScriptDir%
SetTitleMatchMode 2
#IfWinActive Cry
;0x304b4
;Nomad
;Far Cry® 3
SetNumlockState, AlwaysOn ; sets NumLock to Always On for using Numpad keys
LAlt::N ; maps LAlt to N for strafing (map Strafe Left to N in game)
RAlt::M ; maps RAlt to M for strafing (map Strafe Right to M in game)
LWin::LAlt ; maps LWin to LAlt in case I hit that mother while strafing
RWin::RAlt ; maps RWin to RAlt in case I hit that mother while strafing
!Tab::return ; removes Alt-Tab so I can strafe without alt-tabbing
!Enter::return ; removes Alt-Enter so I don't toggle Fullscreen/Windowed mode
LShift & RShift::AltTab ; requires pressing both LShift & RShift to alt-tab
~a::
MouseMove -5,0,2,R
return
~d::
MouseMove 5,0,2,R
return