BF4

Discussion, questions and support.
Post Reply
Bones
Posts: 4
Joined: Nov 10th, ’13, 05:03

Post by Bones » Nov 10th, ’13, 05:15

I play BF4 and hotkey scripts do not work in it. Can I just paste the script into the command area and it work that way or is it different scripting thank autohotkey? Thanks
thinman
Posts: 31
Joined: May 17th, ’13, 15:44

Post by thinman » Nov 10th, ’13, 23:51

Yes, you should absolutely try and download FastKeys. It's free and it works great with Battlefield / BF4. http://fastkeys.vze.com

For me, commands can swallow just about any Autohotkey code. However there might be some cases that this is not possible. For such cases or if you have many hotkeys it would be better to use Script command type to run external ahk script.

Do you have a working script ready? Copy it to a Notepad, save it as bf4.ahk and run it from Fastkeys as a Script.
Bones
Posts: 4
Joined: Nov 10th, ’13, 05:03

Post by Bones » Nov 11th, ’13, 09:38

Thanks for the reply I will try to commands first as the script won't work when BF4 is playing. I have tried to run the .ahk through Fastkeys and it doesn't work.
User avatar
Marko
Posts: 1718
Joined: Mar 2nd, ’13, 21:02

Post by Marko » Nov 11th, ’13, 10:02

Can you give me a link to your script that I can take a look? Running the script from FastKeys is no different from running it by Autohotkey. If it doesn't work there is something wrong with the script.
Bones
Posts: 4
Joined: Nov 10th, ’13, 05:03

Post by Bones » Nov 11th, ’13, 17:29

Thanks, I have put the two scripts up for you to see.

http://teamblade.org/script/

BF4 looks for .ahk files running and disables them, that is why I wanted to use the command area and run it that way so BF4 doesn't see it.
User avatar
Marko
Posts: 1718
Joined: Mar 2nd, ’13, 21:02

Post by Marko » Nov 11th, ’13, 18:25

Hi, there is a syntax error in the first script:

Code: Select all

q,,, 1, 0, D

The second script works fine, however it is known that some games are able to block the send (input) mode. You could try replacing Send commands in your scripts with

Code: Select all

SendPlay

I don't play BF4, so I don't know if it will work. Running from Command area will probably not help.

You can find more information on send modes here: http://www.autohotkey.com/docs/commands/Send.htm
Bones
Posts: 4
Joined: Nov 10th, ’13, 05:03

Post by Bones » Nov 11th, ’13, 23:27

Thanks so much for your help I will look it up and see what I can do. I have to say for such a small program the response time to my questions was fantastic. I have been on many other forums for programs and they can take a week or more or not at all. Thanks again.
Post Reply