AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

BF2 MACROS (SUMMARY) - post all working macros here please
Goto page Previous  1, 2, 3 ... 116, 117, 118, 119, 120  Next
 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
Alekoz



Joined: 17 Jun 2007
Posts: 157

PostPosted: Wed Jul 23, 2008 2:09 pm    Post subject: Re: hotkeys notwrking Reply with quote

lollerskates wrote:
guys, i start my interpolation script and the quickswitch script before entering bf2 but the keys dont working anymore, they worked before but now have stooped working since i turned UAC bak on vista 64 anyway to make em work again


you need to disable UAC or run them as administrator to work...

vista s*cks Exclamation
_________________
My BF2 Scripts
Back to top
View user's profile Send private message
AZA



Joined: 10 Mar 2008
Posts: 158
Location: USA

PostPosted: Wed Jul 23, 2008 7:01 pm    Post subject: Re: hotkeys notwrking Reply with quote

lollerskates wrote:
guys, i start my interpolation script and the quickswitch script before entering bf2 but the keys dont working anymore, they worked before but now have stooped working since i turned UAC bak on vista 64 anyway to make em work again


I guess this question is at me?

We have not tested these two scripts together, but they should not conflict with each other as long as you use different hotkeys. Remember you can always turn QS off before using the HitRegFixer. (Default is F7) It is most likely that UAC lowered AHK's access level. As far as i know you must run AHK as administrator when using it with BF2, However I'm not a big Vista user so i can't tell you all the ins and outs of setting up the UAC.

This link may help: http://technet2.microsoft.com/WindowsServer2008/en/library/0d75f774-8514-4c9e-ac08-4c21f5c6c2d91033.mspx

or this one: http://www.informationweek.com/news/windows/operatingsystems/showArticle.jhtml?articleID=207801611

Hopefully QS 9 will help to address this issue.
_________________
Check out my BF2 macros here: http://www.autohotkey.com/forum/viewtopic.php?t=29706
Back to top
View user's profile Send private message MSN Messenger
lollerskates
Guest





PostPosted: Thu Jul 24, 2008 7:34 am    Post subject: Reply with quote

its not the hitregfixer its my own script u helped me with before, and theres no option to run these scripts as administrator in .ahk form
Back to top
AZA



Joined: 10 Mar 2008
Posts: 158
Location: USA

PostPosted: Thu Jul 24, 2008 7:49 am    Post subject: Reply with quote

lollerskates wrote:
its not the hitregfixer its my own script u helped me with before, and theres no option to run these scripts as administrator in .ahk form


Autohotkey.exe man!
_________________
Check out my BF2 macros here: http://www.autohotkey.com/forum/viewtopic.php?t=29706
Back to top
View user's profile Send private message MSN Messenger
lollerskates
Guest





PostPosted: Thu Jul 24, 2008 8:01 am    Post subject: Reply with quote

oh lol thnx
Back to top
plaguelord69



Joined: 24 Jul 2008
Posts: 1

PostPosted: Thu Jul 24, 2008 6:59 pm    Post subject: bf2 double click macro Reply with quote

Hi all...can someone make a script that clicks 2 times the left mouse button instead of once...

But i dont want that the script works while throwing nades...
So maybe some off function when i switch to nades and on function when i pull out my pistol or gun.

Thx in adv. Smile
Back to top
View user's profile Send private message
hildeno



Joined: 27 Jul 2008
Posts: 2

PostPosted: Sun Jul 27, 2008 1:26 pm    Post subject: BEEP Reply with quote

hey, Im new to this but I have made this script by looking at others Embarassed

$Wheeldown::
send {F2 down}
sleep 100
send {F2 up}
return
$Wheelup::
send {F1 down}
sleep 100
send {F1 up}
sleep 100
return

So when Im flying solo in heli I just scroll between gunner and pilot. It works great but I have a question. The BEEP sound you get with some macros that I copied from this forum, how can I use them? I want to hear a beep sound when the TV-guided missile has reloaded so I can know when I can shoot again. Does anyone here know the reload time for the tvguided just after its been shot? With that I mean the flytime+reload time after explosion. So is it possible to get the beep sound after I have, for example, pressed right click+left click?

Thanks in advance!
Back to top
View user's profile Send private message
zege



Joined: 28 Jul 2008
Posts: 1

PostPosted: Mon Jul 28, 2008 11:26 am    Post subject: jet spot macro Reply with quote

Hi,
I've used macro that had infantry things and jet spot system in same but recently that jet spotting stopped working... why?
if you could help me out here, I removed all infantry and left just what I would need for jet.
so when I press joy8 it would spot and when press joy 5 it would do samething as pressing v-key (cant map it from bf..) as long as joy5 is down (v-key) should be down. possible?



; Press Joy8 to spot a target directly in front of you using the Cammo Rose while flying
;
$Joy8::
Send, {q Down}
Sleep 100
MouseClick, Left, , , , , D
sleep 40
MouseClick, Left, , , , , U
Send, {q Up}
return


$Joy5::
Send, {v Down}
return
Back to top
View user's profile Send private message
tony119
Guest





PostPosted: Fri Aug 08, 2008 10:23 am    Post subject: Reply with quote

Is there a TV macro that works perfectly in windows Vista? I dont need anything, just a macro that auoclicks LMB when clicking MMB.
Back to top
tony119
Guest





PostPosted: Fri Aug 08, 2008 10:24 am    Post subject: Reply with quote

edit: anything else
Back to top
Chopper-God
Guest





PostPosted: Fri Aug 08, 2008 5:20 pm    Post subject: Reply with quote

;===============================================
;== BF2 Autoclicker Script (TV - MissLe)
;===============================================
;= START OF SCRIPT
;===============================================

#NoEnv
#SingleInstance force
#InstallKeybdHook
#InstallMouseHook
#Persistent

Hotkey,LButton, Off

;===============================================
;HOTKEYS ON/OFF
;===============================================

onoff = 0

$Home::
if (!onoff)
{
onoff:=1
Hotkey,LButton, On
SoundBeep, 500, 100
return
}
else
{
Hotkey,LButton, Off
SoundBeep, 500, 100
SoundBeep, 500, 100
onoff:=0
}
return



;===============================================
;Autoklicker
;===============================================

~LButton::
IfWinActive, BF2 (
; Checks if BF2 is active so you don't get clicks in other windows
AttackchopperTV()

AttackchopperTV()
{


loop
{


Click down left
Sleep 12
Click up left
Sleep 12
GetKeyState, LButtonState, LButton, P
IF LButtonState = U
{
break
}

}


}

;======================================================
; END OF SCRIPT
;======================================================


Heres My TV-Missle Script it works fine for me!

Just experiment with the sleep timings to get your clickspeed!

Im using it with Gui but i give a simple vers. of mine
Back to top
Guest






PostPosted: Fri Aug 08, 2008 5:46 pm    Post subject: Reply with quote

Chopper-God wrote:
;===============================================
;== BF2 Autoclicker Script (TV - MissLe)
;===============================================
;= START OF SCRIPT
;===============================================

#NoEnv
#SingleInstance force
#InstallKeybdHook
#InstallMouseHook
#Persistent

Hotkey,LButton, Off

;===============================================
;HOTKEYS ON/OFF
;===============================================

onoff = 0

$Home::
if (!onoff)
{
onoff:=1
Hotkey,LButton, On
SoundBeep, 500, 100
return
}
else
{
Hotkey,LButton, Off
SoundBeep, 500, 100
SoundBeep, 500, 100
onoff:=0
}
return



;===============================================
;Autoklicker
;===============================================

~LButton::
IfWinActive, BF2 (
; Checks if BF2 is active so you don't get clicks in other windows
AttackchopperTV()

AttackchopperTV()
{


loop
{


Click down left
Sleep 12
Click up left
Sleep 12
GetKeyState, LButtonState, LButton, P
IF LButtonState = U
{
break
}

}


}

;======================================================
; END OF SCRIPT
;======================================================


Heres My TV-Missle Script it works fine for me!

Just experiment with the sleep timings to get your clickspeed!

Im using it with Gui but i give a simple vers. of mine


your script lol...most of this code is from a forum member here if i remember right
Back to top
xenon2050
Guest





PostPosted: Fri Aug 08, 2008 8:48 pm    Post subject: Is... Reply with quote

How much does BF2 allow you to macro? Or is it frowned upon? I would think they wouldn't like it... But at the same time if I had the logitec g11 or g15 keyboard and used their "G" keys to make a pistol rapid fire is that against the rules? Just wondering what the thoughts on this are.
Back to top
philskilz



Joined: 25 Jun 2008
Posts: 9
Location: England

PostPosted: Sat Aug 09, 2008 3:53 am    Post subject: BF2 CHOPPER Script 4 Every1 Reply with quote

Code:
;#################################################################
;START OF SCRIPT
;#################################################################
;NOTE: THIS SCRIPT WILL ONLY WORK IN BF2!

#NoEnv
#SingleInstance Force
#InstallKeybdHook
#InstallMouseHook
#IfWinActive, BF2
#Persistent
DetectHiddenWindows, On
CoordMode, Mouse, Screen
SetBatchLines -1
Var = 1
MsgBox, BF2 script by PhilSkilZ.

$*~Ins::Suspend                         ;INSERT pauses the script.
$*~^+X::ExitApp      ;CTRL, SHIFT & X will exit script completely.

;#################################################################
;TV AUTOCLICKER (2)
;#################################################################

$*~LButton::      ;Hold LEFT MOUSE BUTTON for an autoclick effect.
If Var
{
Loop
{
   SendInput {LButton Down}
   Sleep 35.00
   SendInput {LButton Up}
   Sleep 23.00
   GetKeyState, LButtonState, LButton, P
   If LButtonState = U
Break
}
}
Return

$*~Space::                 ;Hold SPACEBAR for an autoclick effect.
Loop
{
   SendInput {LButton Down}
   Sleep 35.00
   SendInput {LButton Up}
   Sleep 23.00
   GetKeyState, SpaceState, Space, P
   If SpaceState = U
Break
}
Return

;#################################################################
;SEAT SWITCHING
;#################################################################

$*~MButton::           ;Press MIDDLE MOUSE BUTTON to switch seats.
x+=1
If Mod(x,2)
{
   SendInput {F2 Down}
   Sleep 50.00
   SendInput {F2 Up}
   SendInput {RButton Down}
   Sleep 50.00
   SendInput {RButton Up}
}
Else
{
   SendInput {F1 Down}
   Sleep 50.00
   SendInput {F1 Up}
   SendInput {C Down}
   Sleep 50.00
   SendInput {C Up}
}
Return

;#################################################################
;CONSOLE COMMANDS - USERSETTINGS
;#################################################################

$*~^1::                             ;CTRL & 1 (default: 0.100000).
   SendInput SettingsManager.floatSet GSDefaultLatencyCompensation
   SendInput {Space}
Return

$*~^2::                                 ;CTRL & 2 (default: 1200).
   SendInput SettingsManager.U32Set GSExtrapolationTime
   SendInput {Space}
Return

$*~^3::                                  ;CTRL & 3 (default: 100).
   SendInput SettingsManager.U32Set GSInterpolationTime
   SendInput {Space}
Return

;####################################################### PHILSKILZ


Chopper script for all.
Back to top
View user's profile Send private message
Disfunction



Joined: 22 May 2008
Posts: 14

PostPosted: Sat Aug 09, 2008 3:27 pm    Post subject: DisfunctioN.Solo^Heli Reply with quote

Here is my Solo HeliCopter Macro which combines some codes i have found on this forum :
I use this on Chopper Matches etc and it works fantastic

Code:

;._______________________________________________________.
;[_________BF2 SOLO HELI by DisfunctioN__________________]
;[_______________________________________________________]

;._______________________________________________________.
;[_________START_________________________________________]
;[_______________________________________________________]

#NoEnv
#SingleInstance force
#InstallKeybdHook
#Persistent

   RegRead BF2Path, HKEY_LOCAL_MACHINE, SOFTWARE\Electronic Arts\EA Games\Battlefield 2, InstallDir

GoSub TrayMenu

;._______________________________________________________.
;[_________KEY SETTINGS__________________________________]
;[_______________________________________________________]

Switch_to_Gunner_and_Fire_Missile_Hotkey = WheelUp
Switch_to_Pilot_Seat_Hotkey = WheelDown
Switch_to_Gunner_MG_Hotkey = Shift
View_Change_Hotkey = XButton1
View_1 = F11
View_2 = F12

;._______________________________________________________.
;[_________RUN BF2 SETTINGS______________________________]
;[_______________________________________________________]

BF2Filename = BF2.exe
Parameters= +menu 1 +fullscreen 1 +restart

;._______________________________________________________.
;[_________HOTKEYS_______________________________________]
;[_______________________________________________________]

HotKey ~%Switch_to_Gunner_and_Fire_Missile_Hotkey%, GunnerSwitch, On UseErrorLevel
HotKey ~%Switch_to_Pilot_Seat_Hotkey%, PilotSwitch, On UseErrorLevel
HotKey ~%Switch_to_Gunner_MG_Hotkey%, MGSwitch, On UseErrorLevel
HotKey ~%View_Change_Hotkey%, ViewChange, On UseErrorLevel

;._______________________________________________________.
;[_________PROCESS CHECK_________________________________]
;[_______________________________________________________]

SetTimer BF2ProcessCheck, 500
   Process Priority, , High
RETURN

BF2ProcessCheck:
   WinGet , szProcessName, ProcessName, A
   If szProcessName = %BF2Filename%
   {
      Suspend Off
      Menu, Tray, UnCheck, Suspend
   }
   Else
   {
      Suspend On
      Menu, Tray, Check, Suspend
   }
RETURN

;._______________________________________________________.
;[_________GUNNER SWITCH & FIRE MISSILE__________________]
;[_______________________________________________________]

GunnerSwitch:
   Send, {F2 Down}
   Sleep, 30
   Send, {F2 Up}
   Sleep, 30
   Click Down Right
   Sleep, 50
   Click Up Right
   Click Down Left
   Sleep, 40
   Click Up Left
   Sleep, 250
   Click Down Left
   Sleep, 40
   Click Up Left
   Sleep, 3500
   Send, {F1 Down}
   Sleep, 30
   Send, {F1 Up}
RETURN

;._______________________________________________________.
;[_________PILOT SWITCH__________________________________]
;[_______________________________________________________]

PilotSwitch:
   Send, {F1 Down}
   Sleep, 30
   Send, {F1 Up}
   Send, {F9 Down}
   Sleep, 30
   Send, {F9 Up}
RETURN

;._______________________________________________________.
;[_________GUNNER MG FIRE TOGGLE_________________________]
;[_______________________________________________________]

MGSwitch:
   If copilot = 1
   {
      Send, {F2 Down}
      Sleep, 30
      Send {F2 Up}
      Sleep, 30
      Send, {C Down}
      Sleep, 30
      Send, {C Up}
      copilot = 0
   }
   Else
   {
      Send, {F1 Down}
      Sleep, 30
      Send, {F1 Up}
      Sleep, 30
      Send, {F9 Down}
      Sleep, 30
      Send, {F9 Up}
      copilot = 1
   }
RETURN

;._______________________________________________________.
;[_________CAMERA CHANGE_________________________________]
;[_______________________________________________________]

ViewChange:
   If change = 1
   {
      change = 0
      Send, {%View_2% Down}
      Sleep, 30
      Send, {%View_2% Up}
   }
   Else
   {
      Send, {%View_1% Down}
      Sleep, 30
      Send, {%View_1% Up}
      change = 1
   }
RETURN

;._______________________________________________________.
;[_________TRAY MENU_____________________________________]
;[_______________________________________________________]

TrayMenu:
   Menu, Tray, Tip, DisfunctioN.Solo^Heli
   Menu, Tray, NoStandard
   Menu, Tray, Add, Run BF2 , Run_BF2
   Menu, Tray, Add, Run BF2 SF, Run_BF2SF
   Menu, Tray, Add
   Menu, Tray, Add, Reload
   Menu, Tray, Add, Edit
   Menu, Tray, Add
   Menu, Tray, Add, Suspend
   Menu, Tray, Add
   Menu, Tray, Add, Exit, Exit
RETURN

Edit:
   Edit
RETURN

Reload:
   Reload
RETURN

Suspend:
   Suspend, Toggle
   Menu, Tray, ToggleCheck, Suspend
   SoundBeep, 500, 100
RETURN

Exit:
   ExitApp
RETURN

;._______________________________________________________.
;[_________RUN BF2_______________________________________]
;[_______________________________________________________]

Run_BF2:
   TrayTip, DisfunctioN.Solo^Heli, Launching Battlefield 2,,1
   SetTimer, RemoveTrayTip, 2000
   Run %BF2Path%\%BF2Filename% %Parameters%, %BF2Path%
RETURN

Run_BF2SF:
   TrayTip, DisfunctioN.Solo^Heli, Launching Battlefield 2 Special Forces,,1
   SetTimer, RemoveTrayTip, 2000
   Run %BF2Path%\%BF2Filename% +modPath mods/xpack %Parameters%, %BF2Path%
RETURN

RemoveTrayTip:
   SetTimer, RemoveTrayTip, Off
   TrayTip
RETURN

;._______________________________________________________.
;[_________EXIT & SUSPEND________________________________]
;[_______________________________________________________]

$*~Pause::
   Suspend, Toggle
   SoundBeep, 500, 100
RETURN

$Scrolllock::ExitApp

/*
?
*/


Keys :
Mouse Wheel Up = Switches to Gunner Seat and Fires Missile

Mouse Wheel Down = Switches to Pilot Seat

Shift = Press once switches to Gunner Seat and Changes Camera so you can fire the MG.If you press it again it will switch back to Pilot Seat

XButton1 = Switches between 2 view sets.(currently i have it switching between Rear View and Fly By)

Pause = Suspends the macro ingame

All hotkeys are customisable through the "KEY SETTINGS" section in the code

AutoClicking not added because punkbuster seems to ban for it.


Last edited by Disfunction on Sat Aug 09, 2008 4:15 pm; edited 1 time in total
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Goto page Previous  1, 2, 3 ... 116, 117, 118, 119, 120  Next
Page 117 of 120

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group