Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate

Keypad Buddy for Battlefield Play For Free


  • Please log in to reply
5 replies to this topic
st0mpy
  • Guests
  • Last active:
  • Joined: --
; Keypad Buddy V1.5 for Battlefield Play For Free by St0mpy

; BFP4F Play4free P4F F4P Play for Free Utility



; Features: One Touch Gestures (medic, ammo etc). One Touch Spotted. One Touch Team Chat. Adds Ctl-V Paste support.



; Instructions. DIY. Install autohotkey(.com).  Right click desktop > new > autohotkey script

; Open it in notepad, paste everything in here over everything in there. Save. close. doubleclick to run in tray. Done! use ingame.



; Keypad Only. Num Lock MUST be on for the autochatter to work. This uses default Com key Q and team chat key Y. See Editing to change.

; You may have to give it rights depending on OS, uac mode or how paranoid your antispyware is set since its a script that needs keyboard access(duh).



; Plays safe with other apps, only works while BFPFF window is on top and active, will not affect keypad in other programs. alt tab friendly too.

; Known bug: autochats (not gestures) make you stand up for a second. thats an EA thing, not my fault, opening chat when crouched makes you stand.



; In game CTL - V, CTL-T and CTL-Y pasting is now supported. 

;	CTL-V = Opens the chatbox and pastes in the clipboard for you check. you must press return yourself.

;	CTL-T = Pastes the clipboard directly to main chat

;	CTL-Y = Pastes the clipboard directly to team chat

;	USE CAREFULLY- stupidly pasting something over and over will get you a server ban for word spam



; GESTURES Press keypad

; 	1 to 3 =  Reserved for future EA gestures or taunts

; 	4 = Okay/Affirmative

; 	5 = One Key Spotted

; 	6 = Gimme Ride

; 	7 = Medic!

; 	8 = Need Ammo

; 	9 = Need Repair

; 	Numpad Dot = Show Gesture panel (as in uhh i forgot what those keys above were)



; AUTOCHATTER press keypad

; 	+ = thanks

; 	- = Negative 

; 	* = sorry

; 	/ = SPARE left for ppl to put something in easily

;	0 = Base Clear (for use with bank 0)

;

; BANKS the auto chatter also has several more banks built in, zero Enemy at, + Heading to, - Flanking to, * Need Support at, and some extras on /

;

; ZERO BANK 	Types: Enemy at A (to F)	Use: Hold 0 and press

; 	1 = Enemy at A

; 	2 = Enemy at B

; 	3 = Enemy at C

; 	4 = Enemy at D

; 	5 = Enemy at E

; 	6 = Enemy at F

; 	7 = Get in

; 	8 = BAIL OUT

; 	9 = Go Go Go

; 	+ = youre welcome

; 	- = reloading

; 	* = Cover Me

; 	/ = Repairing Armor



; And more banks of various stuff

; PLUS BANK		Types: Heading to A (to F)					Use: Hold + and press 1 to 6

; PLUS SPARES	Types: SPARE- fill in lower down			Use: Hold + and press 7 8 9 - * /

; NEG BANK		Types: Flanking to A (to F)					Use: Hold - and press 1 to 6

; MULT BANK		Types: Need Support at A (to F)			Use: Hold * and press 1 to 6

; DIV BANK		Types: some random 'helpful' output	Use: Hold / and press 1 to 9



; Q: Why do gestures 1 to 3 play the same as 4 to 6

; A: They will work in future. The lower gestures are unfilled atm and the field limits movement until the devs enable some awesome there.



; Q: Can I copy edit this and put my own things

; A: Sure, its released for anyone to use and edit freely



; Q: It works but editing is really confusing, how can i just put 1 thing in the autochat to say in game?

; A: Scroll down to ---Chat Phrases--- and replace just the letters SPARE with your words, spaces are ok, save, reload



; Q: Is this punkbuster safe?

; A: Absolutely



; Q: Can you just make a file to download rather than instal anything?

; A: I could, but with all the suspicion about cheats and hacked exes id rather let you guys see it 100% and have you run it yourself.



; Q: Do you have a website with BFPFF stuff on?

; A: No this is intended to be a forum release only. Bookmark and share the link to this thread



; Q: This is really cool, how do i show my appreciation?

; A: If you see me ingame a thanks mate is always nice- if not, press div and 9 to spread the love :)



; EDITING: 

; To change commo key: change the q 4 times, twice in gMove, twice in gPeek.

; To change teamsay key: change the y twice in yStart.

; To add autochat: put your text inside the (" "). I have left some with SPARE to quickly replace with your words, or change some help ones.

; To add your own key for a chat/gesture- Scroll to user area and see the instructions.

;

; Remember: Save then double click the file again to load your edits (or reload on the tray icon)



; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

#SingleInstance force



SetTimer, gRuntime, 250

return



gRuntime:

  WinGet, pName, ProcessName, A

  if pName = BFP4f.exe

  {

  Suspend, off

  }

  else

  {

  Suspend, on

  }

  return

  

gMove(xAxis,yAxis)

{Send {q Down}

   Sleep 150

   DllCall("mouse_event", uint,1, int, xAxis, int, yAxis, uint, 0, int, 0)

   Sleep 40

   MouseClick, Left, , , , , D

   sleep 40

   MouseClick, Left, , , , , U

   Send {q Up}

}



gPeek()

{Send, {q Down}

   Sleep 40

   KeyWait NumpadDot

   Send, {q Up}

}

   

yStart()

{Send {y Down}

   Sleep 30

Send {y Up}

   Sleep 40

Send {Backspace Down}

	sleep 40

Send {Backspace Up}

	sleep 40

}



tStart()

{

Send {t Down}

   Sleep 30

Send {t Up}

   Sleep 40

Send {Backspace Down}

	sleep 40

Send {Backspace Up}

	sleep 40

}



fChat(sChat)

	{yStart()

	Loop Parse, sChat

		{Send %A_LoopField%

		sleep 40

		}

	Send {Enter}

	sleep 40

}



mChat(gChat,gChk)

	{

	tstart()	

	Loop Parse, gChat

		{

		Send %A_LoopField%

		sleep 40

		}

	if 	gChk = 1

	Send {Enter}

}



$^y::  ; direct paste to teamchat

fChat(clipboard)

return



$^t::  ; direct paste to open chat

mChat(clipboard,1)

return



$^v::  ; paste to chat board

mChat(clipboard,0)

return



;--------------User Area----------------

; Find and COPY the 2 or 3 line block you need a new key for into this user section, dont cut or remove anything outside this user area

; start the line with a ~ and replace the key up to the :: with your new key

; below are two examples, a gesture and an autochat copied up and set to F11 and F12.

; (Need medic you can see is from next section down, compare how its changed)

; Use these or copy in new ones, theres no limit to how many you copy in here



~$F11::gMove(-150,-40) ; Need Medic

return



~F12::

fChat("BAIL OUT")

return

 

;------------Numpad Gestures------------



$Numpad7::gMove(-150,-40) ; Need Medic

return



$Numpad8::gMove(0, -40)  ; Need Ammo

return



$Numpad9::gMove(150, -40) ; Need Repair

return



$Numpad4::gMove(-150, 0)  ; Affirmative

return



$Numpad5::gMove(0, 0)  ; Spotted

return



$Numpad6::gMove(150, 0)   ; Need Ride

return



$Numpad1::gMove(-150, 40) ;  Unallocated

return



$Numpad2::gMove(0, 40) ; Unallocated

return



$Numpad3::gMove(150, 40)  ; Unallocated

return



$NumpadDot::  ;  Gesture Peek

gPeek()

return



;------------Chat Phrases------------



$NumpadDiv::

fChat("SPARE")

return



$NumpadMult::

fChat("sorry")

return



$NumpadSub::

fChat("Negative")

return



$NumpadAdd::

fChat("thanks")

return



;--------Bank 0 Extra Chat-------------------



Numpad0 & NumpadDiv::

fChat("Repairing Armor")

return



Numpad0 & NumpadMult::

fChat("Cover Me")

return



Numpad0 & NumpadSub::

fChat("reloading")

return



Numpad0 & NumpadAdd::

fChat("youre welcome")

return



Numpad0 & Numpad7::

fChat("Get In")

return



Numpad0 & Numpad8::

fChat("BAIL OUT")

return



Numpad0 & Numpad9::

fChat("Go Go Go")

return





;-------Bank Plus Extra Chat (user spares)-------



NumpadAdd & NumpadDiv::

fChat("SPARE")

return



NumpadAdd & NumpadMult::

fChat("SPARE")

return



NumpadAdd & NumpadSub::

fChat("SPARE")

return



NumpadAdd & Numpad7::

fChat("SPARE")

return



NumpadAdd & Numpad8::

fChat("SPARE")

return



NumpadAdd & Numpad9::

fChat("SPARE")

return



;--------------Enemy at X---------------------



Numpad0::

fChat("Base Clear")

return



Numpad0 & $Numpad1::

fChat("Enemy at A")

return



Numpad0 & Numpad2::

fChat("Enemy at B")

return



Numpad0 & Numpad3::

fChat("Enemy at C")

return



Numpad0 & Numpad4::

fChat("Enemy at D")

return



Numpad0 & Numpad5::

fChat("Enemy at E")

return



Numpad0 & Numpad6::

fChat("Enemy at F")

return



;-------------Heading to X---------------------



NumpadAdd & $Numpad1::

fChat("Heading to A")

return



NumpadAdd & Numpad2::

fChat("Heading to B")

return



NumpadAdd & Numpad3::

fChat("Heading to C")

return



NumpadAdd & Numpad4::

fChat("Heading to D")

return



NumpadAdd & Numpad5::

fChat("Heading to E")

return



NumpadAdd & Numpad6::

fChat("Heading to F")

return



-------Flanking to X-----------



NumpadSub & Numpad1::

fChat("Flanking To A")

return



NumpadSub & Numpad2::

fChat("Flanking To B")

return



NumpadSub & Numpad3::

fChat("Flanking To C")

return



NumpadSub & Numpad4::

fChat("Flanking To D")

return



NumpadSub & Numpad5::

fChat("Flanking To E")

return



NumpadSub & Numpad6::

fChat("Flanking To F")

return



;--------------Support at X---------------------



NumpadMult & $Numpad1::

fChat("Need Support at A")

return



NumpadMult & Numpad2::

fChat("Need Support at B")

return



NumpadMult & Numpad3::

fChat("Need Support at C")

return



NumpadMult & Numpad4::

fChat("Need Support at D")

return



NumpadMult & Numpad5::

fChat("Need Support at E")

return



NumpadMult & Numpad6::

fChat("Need Support at F")

return



;-----------Help----------------



NumpadDiv & Numpad1::

fChat("Spot and trace vehicles for aircrew/engis plz")

return



NumpadDiv & Numpad2::

fChat("Save someones life, Spot an enemy today")

return



NumpadDiv & Numpad3::

fChat("trace vehicles for the engis guys")

return





NumpadDiv & Numpad4::

fChat("stealing flags wins rounds, kills dont count!!")

return



NumpadDiv & Numpad5::

fChat("losers credits takes ages to buy good guns")

return



NumpadDiv & Numpad6::

fChat("flag control wins credits guys, not kills")

return



; 

; medics/assault if you run past someone, drop a pack plz



NumpadDiv & Numpad7::

fChat("Medics throw out packs please")

return



NumpadDiv & Numpad8::

fChat("good job team, push forwards")

return



NumpadDiv & Numpad9::  ;advertise plz

mChat("Pasted ingame with BFPFF Keypad Buddy, get it at http://pastebin.com/iENVMd85",0)

return



chrisj91
  • Members
  • 398 posts
  • Last active: Jun 03 2015 09:03 AM
  • Joined: 11 Apr 2011
Wow, this looks really good st0mpy, I wish I had Battlefield on my PC now instead of PS3.
I may have to make a purchase because this looks really useful!

EDIT: Hold on, is Battlefield Play 4 Free, Free. . . ?? First time I've heard about this after Googling, why didn't I know of this before? I can see a download coming on :)

Thanks st0mpy,

Chris

st0mpy
  • Guests
  • Last active:
  • Joined: --
thanks, glad someone likes it :)

yeah its a new game, well, an old one refreshed and repackaged into the heroes business model, its only just into open beta now, grab a key and join in :)

people have been asking/suggesting one button gestures and pointing out that there are simple replies missing (theres only 6 ingame atm) as well as not being able to paste things like clan URLs ingame, so i took a couple of afternoons to make this up for the community

Zaanko
  • Guests
  • Last active:
  • Joined: --
Looks nice! Gonna check it out :D

Zaanko
  • Guests
  • Last active:
  • Joined: --
Oh and st0mpy, is there a way to make a 360 spin script? .. cause i would freaking love that :D


add me on XFire if you have it -> Zaanko

__alex
  • Guests
  • Last active:
  • Joined: --
Thanks for you script, st0mpy!

I added a new feature - random taunt phrase) Check this out:

taunts1:="yeah baby"
taunts2:=":P"
taunts3:="come back for more"
taunts4:="free missiles and rpgs for everybody today! :)"

tauntsCnt=4
tauntLastUsed=-1

;---

Taunt()
{
   ; use global variables
   global tauntLastUsed
   global tauntsCnt

   loop
   {
      Random rnd, 1, %tauntsCnt%
      if (rnd <> tauntLastUsed)	; prevent chosing the same phrase twice
      {
         tauntLastUsed=%rnd%
         break
      }
   }

   ;SayAll(taunts%rnd%)
   SplashTextOn, , 50, ,% taunts%rnd%
   sleep 1000
   SplashTextOff
}

;---

$NumpadEnter::Taunt()

SayAll() function is something like your fChat(). Hope you will find this useful)