Forum Discussion

Anonymous's avatar
Anonymous
13 years ago

Mass Effect 2 one button weapon change AH script

;Switching weapons only with mouse with pausing in ME2 SUCKS EEEEAAAASSSSS and totally kills flow of action, so Ive made simple Autohotkey script to change weapons with just single key press, to make it more fluent. F1-F5 for weapons from left2right and u can easily customise it to anything with just text editor. Most ppl familiar with AH will know what 2 do, but planted some notes to make it simpler. It moves cursor onto icons and clicks and the right time. examine each block if unsure, really easy script. Should work straight away, just launch .ahk with autohotkey installed. whole switching process takes about 100-200ms, quick enough for me.

;THIS IS MADE FOR 1920X1080 RESOLUTION AND ASSUMED THAT U HAVE ALL WEAPON SLOTS USED. MOUSE MOVE, X,Y ARE BY PIXELS, SO IT MOST LIKELY WONT WORK PPRLY ON ANY OTHER RESOLUTIONS. WITH OTHER RES, EXPERIMENT WITH x, y VALUES, IT AINT HARD. x goes from left2right and y from up down.


; Ingame, "space" is set by default for COMMAND HUD (at least i think so). Change all "space"'s into wtver u have binded for COMMAND HUD in game, at both send {space down} and send {space up}.




;PISTOL
;u can change f1 below into wtver key u want for that weapon

f1::

BlockInput On
send {space down}
sleep 10
MouseMove, 960, 980, 3
sleep 50
MouseMove, 760, 980, 3
sleep 50
Click
sleep 10
send {space up}
sleep 10
BlockInput Off
return


;SHOTGUN
;u can change f2 below into wtver key u want for that weapon

f2::

BlockInput On
send {space down}
sleep 10
MouseMove, 960, 980, 3
sleep 50
MouseMove, 860, 980, 3
sleep 50
Click
sleep 10
send {space up}
sleep 10
BlockInput Off
return


;ASSAULT RIFLE
;u can change f3 below into wtver key u want for that weapon

f3::

BlockInput On
send {space down}
sleep 10
MouseMove, 960, 980, 3
sleep 30
Click
sleep 10
send {space up}
sleep 10
BlockInput Off
return


;SNIPER
;u can change f4 below into wtver key u want for that weapon

f4::

BlockInput On
send {space down}
sleep 10
MouseMove, 960, 980, 3
sleep 50
MouseMove, 1040, 980, 3
sleep 50
Click
sleep 10
send {space up}
sleep 10
BlockInput Off
return


;SPECIAL WEAPON
;u can change f5 below into wtver key u want for that weapon

f5::

BlockInput On
send {space down}
sleep 10
MouseMove, 960, 980, 3
sleep 50
MouseMove, 1140, 980, 3
sleep 50
Click
sleep 10
send {space up}
sleep 10
BlockInput Off
return

;on/off button (/) in case u need to turn off script
~/::Suspend
+~/::Suspend

;MADE BY SLAVEOFSELF


http://dl.dropbox.com/u/69952870/AH%20SCRIPTS/me2%20wep%20switcher%20by%20SlaveOfSelf.AHK

1 Reply

  • Cool! I plan a new playthrough with a FemShep (no way to romance Garrus with my BroShep in ME3 😕mileyfrustrated🙂. I'll try your script for sure. 😕mileylol:

About Mass Effect Franchise Discussion

The fate of the galaxy lies in your hands. Join the Mass Effect community forums and tell us how you'll fight for it.19,177 PostsLatest Activity: 21 hours ago