Dangerdoggie
09-06-2006, 12:57 PM
You don’t need some stupid ass G15 Logitech $100 keyboard to be an asshole in BF2, just use this keyboard macro program called AutoHotKey, it’s completely free and aside from being able to create scripts for doing things like chucking C4 or Jumping/Proning/Switching to scope view, it’s also a cool program for reassigning keys on your keyboard, ever wanted to make the win logo key something you could map to in a game, reassign it to a normal key letter. Have a game that doesn’t allow you to remap keys? Maybe it has something assigned to your Scroll Lock and you want it closer to your WASD setup, make your Alt key the Scroll Lock.
Anyways, on with the show.
http://www.autohotkey.com/
Download and install the program, you’ll now have a few extra menu options when you right click, one is under New and it’s AutoHotKey Script, pick that and you’ll now have a blank script named New AutoHotKey.ahk on your desktop, right click on it and choose edit script. This is the starting blank template, here’s where the script goes, copy and paste mine, make changes to it and then save it, just click on it and you’ll see an icon in your task trey showing that it’s running.
#NoEnv
#SingleInstance force
#InstallKeybdHook
#InstallMouseHook
Hotkey, *Space, off ; Start with both scripts toggled off
Hotkey, *XButton1, off
*Space:: ; C4 chucking assigned to spacebar
Click down left ; Left mouse down to start the throw
Send, {space down} ; Jump for distance
Sleep 5
Click up left ; release press on left mouse button
Send, {space up} ; release space bar press
Sleep 800
Click down right ; right mouse button to bring up detonator
Sleep 50
Click up right
return
*XButton1::
Send, {space down} ; jump
Sleep 400
Send, {P down} ; prone
Sleep 15
Click down right ; scope
Sleep 5
Send, {space up}
Sleep 5
Send, {P up}
Sleep 5
Click up right
return
*Lctrl::
Hotkey, *XButton1, Toggle
Send, {NumLock} ; turn on numlock light on keyboard
return
*LAlt::
Hotkey, *space, Toggle
Send, {ScrollLock} ; turn on scroll lock light on keyboard
return
So, what does it do and how does it work, first I’ve got a Microsoft Intellimouse Optical, large side buttons on it, I use my left thumb button for prone in the game, in AutoHotKey it’s recognized as XButton1, I use the left Ctrl key to toggle the insta-prone script, and the numlock light on my keyboard tells me if it’s on or off.
When I’m spec ops I use the Left Alt key to toggle my spacebar to activate the C4 chuck mode, and the Scroll Lock light tells me if it’s on or off.
So let’s say there’s a tank on the other side of a fence on karkand, I select C4, turn on my C4 chuck scrip (Left Alt) and then hit the spacebar, C4 flys over the fence and auto switches to my detonator, you could also have the scrip auto fire to detonate but I don’t for those times when it miss-fires and lands at my feet (not that often but it happens).
As for the prone script because I have my left thumb button assigned in game as my prone key I had to assign another key to prone in game so that when the script is running it’ll activate the prone function, I assigned it to P as it’s completely unused in my normal keybinds.
Before I launch BF2 I make sure my numlock and scroll lock indicatator lights are off, click on the AutoHotKey script, then load BF2 or BF2:SF etc like normal.
Now you too can be a lame ass C4 chucking, prone spamming fool!
Cool huh! :sunny:
Anyways, on with the show.
http://www.autohotkey.com/
Download and install the program, you’ll now have a few extra menu options when you right click, one is under New and it’s AutoHotKey Script, pick that and you’ll now have a blank script named New AutoHotKey.ahk on your desktop, right click on it and choose edit script. This is the starting blank template, here’s where the script goes, copy and paste mine, make changes to it and then save it, just click on it and you’ll see an icon in your task trey showing that it’s running.
#NoEnv
#SingleInstance force
#InstallKeybdHook
#InstallMouseHook
Hotkey, *Space, off ; Start with both scripts toggled off
Hotkey, *XButton1, off
*Space:: ; C4 chucking assigned to spacebar
Click down left ; Left mouse down to start the throw
Send, {space down} ; Jump for distance
Sleep 5
Click up left ; release press on left mouse button
Send, {space up} ; release space bar press
Sleep 800
Click down right ; right mouse button to bring up detonator
Sleep 50
Click up right
return
*XButton1::
Send, {space down} ; jump
Sleep 400
Send, {P down} ; prone
Sleep 15
Click down right ; scope
Sleep 5
Send, {space up}
Sleep 5
Send, {P up}
Sleep 5
Click up right
return
*Lctrl::
Hotkey, *XButton1, Toggle
Send, {NumLock} ; turn on numlock light on keyboard
return
*LAlt::
Hotkey, *space, Toggle
Send, {ScrollLock} ; turn on scroll lock light on keyboard
return
So, what does it do and how does it work, first I’ve got a Microsoft Intellimouse Optical, large side buttons on it, I use my left thumb button for prone in the game, in AutoHotKey it’s recognized as XButton1, I use the left Ctrl key to toggle the insta-prone script, and the numlock light on my keyboard tells me if it’s on or off.
When I’m spec ops I use the Left Alt key to toggle my spacebar to activate the C4 chuck mode, and the Scroll Lock light tells me if it’s on or off.
So let’s say there’s a tank on the other side of a fence on karkand, I select C4, turn on my C4 chuck scrip (Left Alt) and then hit the spacebar, C4 flys over the fence and auto switches to my detonator, you could also have the scrip auto fire to detonate but I don’t for those times when it miss-fires and lands at my feet (not that often but it happens).
As for the prone script because I have my left thumb button assigned in game as my prone key I had to assign another key to prone in game so that when the script is running it’ll activate the prone function, I assigned it to P as it’s completely unused in my normal keybinds.
Before I launch BF2 I make sure my numlock and scroll lock indicatator lights are off, click on the AutoHotKey script, then load BF2 or BF2:SF etc like normal.
Now you too can be a lame ass C4 chucking, prone spamming fool!
Cool huh! :sunny: