 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
BF2 Vet
Joined: 26 Jun 2008 Posts: 6
|
Posted: Thu Jun 26, 2008 9:06 am Post subject: |
|
|
Sorry, I meant how do I get the code from my macro to show you..like with yours I can just right click and edit then copy and paste here but with mine I can't do that function.
EDIT: If you would like I can send it VIA email, so you can have a look and maybe make it better, sounds like you are really good. |
|
| Back to top |
|
 |
AZA
Joined: 10 Mar 2008 Posts: 158 Location: USA
|
Posted: Thu Jun 26, 2008 9:40 am Post subject: |
|
|
| U_U wrote: | hi I need some guides for a code in a game
to use WinActivate if the app is in background
to "push" ctrl e and f4 from time to time
something like this btw i desnt work even in an explorer window
| Code: | WinWait, AutoScriptWriter,
IfWinNotActive, AutoScriptWriter, , WinActivate, AutoScriptWriter,
WinWaitActive, AutoScriptWriter,
Sleep, 100
Send, {CTRLDOWN}e{CTRLUP}{F4} |
ty |
try this
| Code: |
Send {ctrl down} {e Down}
Sleep 40
Send {ctrl up} {e up}
Sleep 40
Send {F4 down}
Sleep 40
Send {F4 up}
|
_________________ Check out my BF2 macros here: http://www.autohotkey.com/forum/viewtopic.php?t=29706 |
|
| Back to top |
|
 |
BF2 Vet
Joined: 26 Jun 2008 Posts: 6
|
Posted: Thu Jun 26, 2008 9:48 am Post subject: |
|
|
| So what do you think AZA? |
|
| Back to top |
|
 |
AZA
Joined: 10 Mar 2008 Posts: 158 Location: USA
|
|
| Back to top |
|
 |
BF2 Vet
Joined: 26 Jun 2008 Posts: 6
|
Posted: Thu Jun 26, 2008 10:26 am Post subject: |
|
|
| Yes read my posts from the page before,I have been typing alot to you trying to get this sorted out. |
|
| Back to top |
|
 |
BF2 Vet
Joined: 26 Jun 2008 Posts: 6
|
Posted: Thu Jun 26, 2008 10:27 am Post subject: |
|
|
| And the one on top of this page. |
|
| Back to top |
|
 |
AZA
Joined: 10 Mar 2008 Posts: 158 Location: USA
|
Posted: Thu Jun 26, 2008 10:29 am Post subject: |
|
|
| BF2 Vet wrote: | | Yes read my posts from the page before,I have been typing alot to you trying to get this sorted out. |
You will have to send me your script. You can catch me on msn or pm me. I'm not going to post my email address in a forum thread. _________________ Check out my BF2 macros here: http://www.autohotkey.com/forum/viewtopic.php?t=29706 |
|
| Back to top |
|
 |
chipbuffalo
Joined: 17 Jun 2008 Posts: 14
|
Posted: Fri Jun 27, 2008 10:03 pm Post subject: |
|
|
| Anonymous wrote: | | Chipbuffao who you calling a newbie MR. 13 posts. |
Hey Guest, if you are still lurking around, the guy who blew a gasket at Alekoz for not just writing him a script (which is posted all over this forum) is named "Solo Newbie" I wasn't calling him a newbie. |
|
| Back to top |
|
 |
bf2user Guest
|
Posted: Sat Jun 28, 2008 12:32 pm Post subject: heli gunner script |
|
|
Ok you programming whizz kids
i got a goody for you to solve,
in my efforts to become a bf2 heli god i want to be able to hop to gunner position fire mg for 2 seconds then hop back to pilot seat, this can be used to good effect when solo flyng heli.
which is easy peasy, the tricky bit is this after the 2 sec burst of mg but before the hop back to pilot seat i want to centre the mg so that next time i go to use it i know exactly where its pointing rather than spend the first second of my 2 sec burst getting it on target.
;extract of code
MouseClick, Left, , , , , D
sleep 2000
MouseClick, Left, , , , , U
Sleep 60
; centre mg bit to go here
Send, {Numpad1 Down} ; my jump to pilot mapping
Sleep 60
Send {Numpad1 Up}
return
i have tried
MouseMove, 700, 525
which does centre the mouse at my game screen res setting however the problem is wherever the mg is pointing it just centers it on that screen not back to centre of gunner view ie straight ahead.
comments on a postcard please |
|
| Back to top |
|
 |
AZA
Joined: 10 Mar 2008 Posts: 158 Location: USA
|
Posted: Sat Jun 28, 2008 11:36 pm Post subject: Re: heli gunner script |
|
|
| bf2user wrote: | Ok you programming whizz kids
i got a goody for you to solve,
in my efforts to become a bf2 heli god i want to be able to hop to gunner position fire mg for 2 seconds then hop back to pilot seat, this can be used to good effect when solo flyng heli.
which is easy peasy, the tricky bit is this after the 2 sec burst of mg but before the hop back to pilot seat i want to centre the mg so that next time i go to use it i know exactly where its pointing rather than spend the first second of my 2 sec burst getting it on target.
;extract of code
MouseClick, Left, , , , , D
sleep 2000
MouseClick, Left, , , , , U
Sleep 60
; centre mg bit to go here
Send, {Numpad1 Down} ; my jump to pilot mapping
Sleep 60
Send {Numpad1 Up}
return
i have tried
MouseMove, 700, 525
which does centre the mouse at my game screen res setting however the problem is wherever the mg is pointing it just centers it on that screen not back to centre of gunner view ie straight ahead.
comments on a postcard please |
The most reliable way to do it is move the gun all the way in one direction then back X amount to the center position. However this will be slow because you will require a sleep time in the middle of the 2 moves to get it to be reliable. _________________ Check out my BF2 macros here: http://www.autohotkey.com/forum/viewtopic.php?t=29706 |
|
| Back to top |
|
 |
BF2 Vet
Joined: 26 Jun 2008 Posts: 6
|
Posted: Sun Jun 29, 2008 1:47 pm Post subject: |
|
|
| Hey AZA are you having any luck with that yet? |
|
| Back to top |
|
 |
Guest
|
Posted: Mon Jun 30, 2008 6:06 pm Post subject: |
|
|
| Is this autohot key thingy legit by punkbuster? |
|
| Back to top |
|
 |
Alekoz
Joined: 17 Jun 2007 Posts: 157
|
Posted: Mon Jun 30, 2008 6:42 pm Post subject: |
|
|
| Anonymous wrote: | | Is this autohot key thingy legit by punkbuster? |
legit not...as the rules say your not allowed to user 3d party programs etc etc and some other bs
but its not detectable so you have nothing to fear _________________ My BF2 Scripts |
|
| Back to top |
|
 |
BF2 Vet
Joined: 26 Jun 2008 Posts: 6
|
Posted: Tue Jul 01, 2008 5:17 am Post subject: |
|
|
| Quote: | legit not...as the rules say your not allowed to user 3d party programs etc etc and some other bs
but its not detectable so you have nothing to fear |
Ok well, it IS infact detectable.. I was kicked for it by PB yesterday trying to run one AZA is working on for me, for unknown program or something i forgot. |
|
| Back to top |
|
 |
corrupt
Joined: 29 Dec 2004 Posts: 2402
|
Posted: Tue Jul 01, 2008 6:34 am Post subject: |
|
|
| Code: | pdelay = 60
Random, rpdelay, 5, %pdelay%
Sleep, %rpdelay% |
|
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|