PDA

View Full Version : Autohotkey and BF2142 (no cheating)


Rasdan
11-22-2006, 12:30 PM
Do anybody know if it's allowed by EA/DICE/PB or whatever to make scripts using Autohotkey for BF2142, without getting kicked, banned or blacklisted.

I only want to make the 'Q' com rose a little easier to use, by mapping it to my numpad keys.

So if I need AMMO I just have to press 'NUMPAD 3', MEDIC request Press NUMPAD 1, spotted Press 'NUMPAD 5, and so on

I know this software CAN by used to make questionable game scripts.
However I do NOT intent to do this.

My guesstimate is that PB probably scans for software that alters keyboard keys or scripts them.

I don't want to be banned or reset, so if it's impossible I'll just leave it alone

Is this in violation with any rules in BF2142.

urwathrtz
11-22-2006, 12:35 PM
Do anybody know if it's allowed by EA/DICE/PB or whatever to make scripts using Autohotkey for BF2142, without getting kicked, banned or blacklisted.

I only want to make the 'Q' com rose a little easier to use, by mapping it to my numpad keys.

So if I need AMMO I just have to press 'NUMPAD 3', MEDIC request Press NUMPAD 1, spotted Press 'NUMPAD 5, and so on

I know this software CAN by used to make questionable game scripts.
However I do NOT intent to do this.

My guesstimate is that PB probably scans for software that alters keyboard keys or scripts them.

I don't want to be banned or reset, so if it's impossible I'll just leave it alone

Is this in violation with any rules in BF2142.
Yes that would be cool to do. Finally I can get to use all the "G" buttons on my G15.

*FMJ*Power
11-22-2006, 12:37 PM
autohotkeys and all ,acro software i know of will get you punkbuster kicked, its not allowed. you have to buy the EA endorsed macro keyboard if you want to macro like that, the G15.

Drevor
11-22-2006, 12:39 PM
yes that would be great ... but apparently any sort of key mapping software (including simple stuff like Logitech SetPoint) doesnt work with BF2142. I guess its a "feature" but I would really love to set up my hotkey a little bit smarter ... like a "enemy spotted" with a single keystroke to avoid shooting in the air/ground/teammate instead :|:

Rasdan
11-22-2006, 01:07 PM
any sort of key mapping software (including simple stuff like Logitech SetPoint) doesnt work with BF2142. :|:

I don't think this is enterely true.
I use logitech setpoint with the uberoptions extention to assign my 5 extra mouse buttons to keyboard keys. (logitech LX700 keyboard mouse combo)

my extra mousebuttons don't register in the normal BF2142 options so i have done this to get them to work.

So when i press "mouse button 4" I go prone, "mouse button 5" = main weapon and so on.
This works great, and im not getting kicked or banded for this.

However setpoint can not be used to script actions, only to replace one keystroke/mouseclick with another keystroke.
To do this I need autohotkey or something similar.

Example:
A spotted command key script needs a 'q' key press action followed by a leftbutton mouse click. This can not be done in setpoint only in something like autohotkey.

I have made the script and it works great, but i have only used it in SP.

Drevor
11-22-2006, 02:00 PM
wait ... they dont work in the settings but ingame they do?

Ive mapped my buttons to keys and tried to set them .. since it wont work there i figured it wont work while playing too ...

frshhh
11-22-2006, 02:33 PM
I much prefered the BF1942 method of voice commands (F keys).

The amount of times that i try and call for ammo, but actually say "Sorry....Follow me.... (then finally)... Need resuplies" :laugh:

Lanserschrek
11-22-2006, 02:36 PM
yes that would be great ... but apparently any sort of key mapping software (including simple stuff like Logitech SetPoint) doesnt work with BF2142. I guess its a "feature" but I would really love to set up my hotkey a little bit smarter ... like a "enemy spotted" with a single keystroke to avoid shooting in the air/ground/teammate instead :|:

Setpoint as many BF2/BF2142ers will confirm does work with BF2 and BF2142. However you will need to use Logigamer or preferably the UberOptions mod to allow you to create application based profiles through Setpoint or else your settings apply globally and with the UberOptions mod you can just create a profile and assign it to "BF2142.exe" so the button settings only apply to it. I have been using an MX1000 since BF2 first came out and have had all my weapons assigned to the buttons and it still works with BF2142.

Drevor
11-22-2006, 02:46 PM
Setpoint as many BF2/BF2142ers will confirm does work with BF2 and BF2142. However you will need to use Logigamer or preferably the UberOptions mod to allow you to create application based profiles through Setpoint or else your settings apply globally and with the UberOptions mod you can just create a profile and assign it to "BF2142.exe" so the button settings only apply to it. I have been using an MX1000 since BF2 first came out and have had all my weapons assigned to the buttons and it still works with BF2142.

yeah .. done all that ... the thing is I simply stopped trying when the mouse button wouldnt react when trying to set the new controls. Apparently the mapping only works when you joined a server ... got it working now ... now I need to figure a decent setup :]

Rasdan
11-22-2006, 02:54 PM
right now i use

forward mouse button = prone
backward mouse button = crouch
tilt wheel left = main weapon(key 3)
tilt wheel right = Grenade(key 7)

happy to hear u got it to work

and yes i use uberoptions too

DeZaStR
11-22-2006, 02:56 PM
Lanserschrek: Why don't you just direct traffic to that other thread you helped me with a few days ago? Or perhaps repost it here. It seems like it would be a perfect fit here. :) I would do it myself, but the glory is all yours.

Julion
11-22-2006, 03:23 PM
Autohotkey is definitely working with bf2142 and IS NOT kicked by punkbuster.
I'm using it to remap a key according to the context (ex : if i'm playing assault, use the key to select frags, or if I'm in a tank use the same key to switch to the second position of the tank)

Therefore, I'm sure that you should be able to do something for the comm rose :).

Sneaky Assassin
11-22-2006, 03:40 PM
I love my uberoptions such a great little addition to set point and gaming.

Buttoneer
11-22-2006, 04:10 PM
How can this sort of mapping work with the commo rose when it requires a mouse movement to say anything except 'spotted'? Is there a way to get it to say 'thanks' using the keyboard alone? If so, the G15 should work without extra software.

Julion
11-22-2006, 04:26 PM
with autohotkey you can script and assign very specific action such as "keep a key pressed, move the mouse to x,y position, release the key" on any key of your keyboard. I'm don't think you can do that with the G15 as it need to move the mouse.

Drevor
11-22-2006, 04:32 PM
Autohotkey is definitely working with bf2142 and IS NOT kicked by punkbuster.
I'm using it to remap a key according to the context (ex : if i'm playing assault, use the key to select frags, or if I'm in a tank use the same key to switch to the second position of the tank)

Therefore, I'm sure that you should be able to do something for the comm rose :).

did you do anything special? I tried setting one of my mouse keys to F18 then created a autohotkeyF18::
Send Q
MouseClick, left
returnwith no luck...and just for testing I created a mapping for F11F11::
Send Q
returnthat works outside BF .. but ingame it does nothing :|:

Lanserschrek
11-22-2006, 04:32 PM
How can this sort of mapping work with the commo rose when it requires a mouse movement to say anything except 'spotted'? Is there a way to get it to say 'thanks' using the keyboard alone? If so, the G15 should work without extra software.

AutoHotkey can simulate mouse movement and clicking so you can script all the commo rose commands. I used it in BF2 when piloting in conjunction with voice recognition software. However it did prove a bit haphazard, as always though a better solution was around the corner, the 'controls.con' can be edited however to allow you to interact with the commo rose using your NumPad. Basically you press and hold "Q'" as normal and use 8,2 to move up and down, 4,6 to move left and right and 5 to select your highlighted option. This would easily allow you script commo rose commands as they are simply keypresses now.

Details are in this thread http://totalbf2.com/forums/showpost.php?p=803548&postcount=12 under the heading 'Configuring Commo Rose Interaction'. Once again thanks to DosX for his research originating from using the G15 keyboard and thanks to Spuddy for stumbling across his thread.

Actually I think the latest version of the G15 software might allow simulating mouse movements and clicks, not sure though.

Julion
11-22-2006, 04:44 PM
did you do anything special? I tried setting one of my mouse keys to F18 then created a autohotkeyF18::
Send Q
MouseClick, left
returnwith no luck...and just for testing I created a mapping for F11F11::
Send Q
returnthat works outside BF .. but ingame it does nothing :|:

Yes, there is a specific command to write before but I can't remember it right now. I'll post an example when I'll be home tonight.

*FMJ*Power
11-22-2006, 05:09 PM
why the heck is pb kicking for using autohotkeys in bf2 but not in 2142? maybe they just haven't had enough people complain because after everyone bitched about c4 chuckers in bf2 they added detection for it it in the 1.3 patch and added that rule in the roe regarding macros and then i lost all my enemy spotted macros on my joystick :(. maybe i can finally be able to get the enemy spotted cammo rose mapped to my joystick again, hehe.

Julion
11-23-2006, 01:11 AM
here is a small script that work perfectly under bf2142 :

#SingleInstance force
#InstallKeybdHook
#MaxThreadsPerHotkey 20
#MaxThreadsBuffer on

$m::
SetKeyDelay, 50, 50
Send, {Numpad5}{Numpad6}
return