| View previous topic :: View next topic |
| Author |
Message |
AZA
Joined: 10 Mar 2008 Posts: 159 Location: USA
|
Posted: Wed Jun 04, 2008 9:13 pm Post subject: |
|
|
| whitedragon551 wrote: | I cant get this script to work:
| Code: | n::
Sleep, 500
SetKeyDelay, 50, 50
Send, A
Send, w
Return |
Im using the default keys. I want it to go prone and then shoot. My prone key is Z and my shoot key is the left mouse button. |
Your script doesn't even include the correct keys! Whats up with that?
| Code: | n::
Send {z Down}
Sleep 40
Send {z Up}
Sleep 300 ; may need to change this im just guessing the number
Send {LButton Down}
Sleep 20
Send {LButton Up}
RETURN |
thats just off the top of my head, If you want to fire more than 1 shot add a loop after the sleep 300 e.g
| Code: | Loop 3 ; change for number of shots
{
Send {LButton Down}
Sleep 20
Send {LButton Up}
Sleep 50 ; Change for speed of shots
}
RETURN |
Hope that helps. _________________ Check out my BF2 macros here: http://www.autohotkey.com/forum/viewtopic.php?t=29706 |
|
| Back to top |
|
 |
whitedragon551
Joined: 04 Jun 2008 Posts: 17 Location: USA
|
Posted: Wed Jun 04, 2008 10:08 pm Post subject: |
|
|
| I took that script from the first page. I never fixed it or have tried my own yet. Im not very good at programming. I had a little VB class in high school, but that was about 3 years ago. |
|
| Back to top |
|
 |
SFORTZA
Joined: 05 Jun 2008 Posts: 3
|
Posted: Thu Jun 05, 2008 12:49 pm Post subject: N0oB NEED HELP PLZ |
|
|
hi all,
How I can use all these file .ahz IN BF2 ?
More details plz ...
tnx all |
|
| Back to top |
|
 |
Guest
|
Posted: Thu Jun 05, 2008 1:14 pm Post subject: Re: N0oB NEED HELP PLZ |
|
|
| SFORTZA wrote: | hi all,
How I can use all these file .ahz IN BF2 ?
More details plz ...
tnx all |
how about some reading before you post : http://www.autohotkey.com/docs/Tutorial.htm
and its .ahk not .ahz |
|
| Back to top |
|
 |
SFORTZA
Joined: 05 Jun 2008 Posts: 3
|
Posted: Thu Jun 05, 2008 1:21 pm Post subject: |
|
|
| NOT ANSWER IF YOU DO NOT HAVE A DETAILED ANSWER |
|
| Back to top |
|
 |
Guest
|
Posted: Thu Jun 05, 2008 4:07 pm Post subject: |
|
|
| SFORTZA wrote: | | NOT ANSWER IF YOU DO NOT HAVE A DETAILED ANSWER |
all details are in the link stupid |
|
| Back to top |
|
 |
AZA
Joined: 10 Mar 2008 Posts: 159 Location: USA
|
Posted: Thu Jun 05, 2008 9:27 pm Post subject: |
|
|
| whitedragon551 wrote: | I cant get this script to work:
| Code: | n::
Sleep, 500
SetKeyDelay, 50, 50
Send, A
Send, w
Return |
Im using the default keys. I want it to go prone and then shoot. My prone key is Z and my shoot key is the left mouse button. |
TRY THIS:
| Code: | ;#######################################################
; TEAMWEEDNZ PRONE SHOOT MACROS BY AZA
;#######################################################
v_Version_Number = 0.1
;#######################################################
; PROGRAM SETUP SECTION
;#######################################################
#Persistent
#NoEnv
#SingleInstance Ignore
#InstallKeybdHook
#InstallMouseHook
v_PSKey = n
HotKey *%v_PSKey%, PRONE_SHOOT, On UseErrorLevel
SetTimer KEEP_RUNNING, 3000
RETURN
;##################################################
;##################################################
KEEP_RUNNING:
WinGet , szProcessName, ProcessName, A
If szProcessName = BF2.exe
Suspend Off
Else
Suspend On
RETURN
;##################################################
;##################################################
PRONE_SHOOT:
Send {z Down}
Sleep 40
Send {z Up}
Sleep 600
Loop 3
{
Send {LButton Down}
Sleep 40
Send {LButton Up}
Sleep 50
}
RETURN
;################################################## |
Its a little sloppy with the timings but it works most the time. It takes along time to go fully prone in BF2 so you will find you can go prone and press the mouse button faster than the macro can do it for you. I really don't see the point in this macro at all myself. _________________ Check out my BF2 macros here: http://www.autohotkey.com/forum/viewtopic.php?t=29706 |
|
| Back to top |
|
 |
Alekoz
Joined: 17 Jun 2007 Posts: 157
|
Posted: Thu Jun 05, 2008 9:34 pm Post subject: |
|
|
| AZA wrote: |
Its a little sloppy with the timings but it works most the time. It takes along time to go fully prone in BF2 so you will find you can go prone and press the mouse button faster than the macro can do it for you. I really don't see the point in this macro at all myself. |
i dont see a point in any movement macro at all.you can do EVERYTHING faster with your fingers  _________________ My BF2 Scripts |
|
| Back to top |
|
 |
whitedragon551
Joined: 04 Jun 2008 Posts: 17 Location: USA
|
Posted: Thu Jun 05, 2008 9:46 pm Post subject: |
|
|
Isnt that hook going to get picked up by punkbuster? _________________
|
|
| Back to top |
|
 |
AZA
Joined: 10 Mar 2008 Posts: 159 Location: USA
|
Posted: Thu Jun 05, 2008 9:56 pm Post subject: |
|
|
| whitedragon551 wrote: | | Isnt that hook going to get picked up by punkbuster? |
Without the hooks BF2 wont get the key strokes. PB is currently only picking up some compiled scripts that use certain code portions. _________________ Check out my BF2 macros here: http://www.autohotkey.com/forum/viewtopic.php?t=29706 |
|
| Back to top |
|
 |
whitedragon551
Joined: 04 Jun 2008 Posts: 17 Location: USA
|
Posted: Thu Jun 05, 2008 10:23 pm Post subject: |
|
|
Oh well I just tried it and it didnt work. _________________
|
|
| Back to top |
|
 |
AZA
Joined: 10 Mar 2008 Posts: 159 Location: USA
|
Posted: Thu Jun 05, 2008 10:27 pm Post subject: |
|
|
| whitedragon551 wrote: | | Oh well I just tried it and it didnt work. |
works fine for me and one of my beta testers. You really need to post more info other than doesn't work if you want to get a fix. If you have MSN messenger add me so we can chat. _________________ Check out my BF2 macros here: http://www.autohotkey.com/forum/viewtopic.php?t=29706 |
|
| Back to top |
|
 |
blah! alex Guest
|
Posted: Fri Jun 06, 2008 12:09 am Post subject: difficuilt server |
|
|
| i think my team mates have sussed me out about using macros is there any way i can get them to stop thinking this |
|
| Back to top |
|
 |
AZA
Joined: 10 Mar 2008 Posts: 159 Location: USA
|
Posted: Fri Jun 06, 2008 12:19 am Post subject: Re: difficuilt server |
|
|
| blah! alex wrote: | | i think my team mates have sussed me out about using macros is there any way i can get them to stop thinking this |
It really depends on the macros you use, some macros are less obvious than others. If you use autofire macros then anyone with half a brain will spot them. If your playing somewhere that macros are not allowed then you are cheating. If your clan / team mates dont allow the use of macros then you are betraying there trust. So the answer is simple.....
Stop using them! lol _________________ Check out my BF2 macros here: http://www.autohotkey.com/forum/viewtopic.php?t=29706 |
|
| Back to top |
|
 |
whitedragon551
Joined: 04 Jun 2008 Posts: 17 Location: USA
|
Posted: Fri Jun 06, 2008 4:50 am Post subject: |
|
|
| AZA wrote: | | whitedragon551 wrote: | | Oh well I just tried it and it didnt work. |
works fine for me and one of my beta testers. You really need to post more info other than doesn't work if you want to get a fix. If you have MSN messenger add me so we can chat. |
I have xFire and steam. I was in game and had the macro running and when I pressed the n key to go prone and shoot it never did. _________________
|
|
| Back to top |
|
 |
|