AutoHotkey Community

It is currently May 27th, 2012, 10:07 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 19 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: June 24th, 2006, 5:54 pm 
I am sorry that it came down to this, I would have liked to have figured it out myself, but I have browsed around the guides, faq, and these forums and have not figured it out.

I am simply amazed at this program and what it does, my question is simple.

BF2 will not recognize my normal keys (a-z) to use as hotkeys. I am trying to make a script that will allow me to use the c key to do the pronespam hump the ground thing, while I am able to use lcntrl for normal crouch movement. I have tried binding c to lcrtl via c::LCntrl command and the sequence doesn't start. I have both c and crtl mapped to crouch in bf2. WHen I simply use c:: to start my script, the script will not function and the sequence does not happen.

I have 2 options, getting my z and c keys to work right, or adding a toggle key and just juse lcntrl and lshift, toggling both dolphin diving and prone spamming scripts off for normal movement or on for when I need them.

The only problem I forsee with that is making sure that they do not conflict, I.e having the dolphin script on and the prone spam script on and doing the prone spam in the middle of the dolphin dive.

Any advice is much apreciated, here are the 2 scripts.

Dolphin Dive:
Code:
#Persistent
#InstallKeybdHook
SetKeyDelay, 75, 75
; increase responsiveness
;#MaxThreadsPerHotkey 20
;#MaxThreadsBuffer on
 
z::
  {
    Sleep, 5
    Send, {Space}
    Sleep, 200
    Send, {LShift}
    Sleep, 500
    Send, {LCtrl}
  }
Return

Prone Spam
Code:
#Persistent
#InstallKeybdHook
SetKeyDelay, 75, 75
; increase responsiveness
;#MaxThreadsPerHotkey 20
;#MaxThreadsBuffer on
 
c::
  {
    Sleep, 5
    Send, {LShift}
    Sleep, 5
    Send, {LCtrl}
    Sleep, 5
    Send, {LShift}
    Sleep, 5
    Send, {LCtrl}
  }
Return

Both scripts work with lcntrl of lshift but not with the desired c or z. I have tried unmapping c and z so that the game does not recognize them and it makes no difference. Is it the timing?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: June 24th, 2006, 6:04 pm 
Quote:
but I have browsed ... these forums and have not figured it out
A search for "bf2" at this forum served 32 hits. Please check those first. In most cases, when it comes to cheating, the target app is to blame (to be exact, the developers of the game - those who try to prevent that you'll be successfull to bypass the rules - btw: my congrats go to them :wink:).


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: June 24th, 2006, 6:22 pm 
I would not have posted had I already done everything in my power to figure this darn thing out.

None of those topics have any helpfull informatoin, I know how annoying spam is and how repetitive questions drive people up walls, trust me, I would not have posted had any of that helped me.

Many scripts do work for bf2, it's just that key's a-z do not work as hotkeys. It may be a timing issue, EA has patched bf2 to make dolphin diving harder, adjusting the timing on the prone command.

I am very new to this program, been reading up on it since yesterday, that is why I came in here for expert help on fixing the problem.

btw I can dolphin dive and prone spam with the best of them the hard way; my hand is numb after a match; I am simply looking into the positbilities of scripting for my clan, it is hard to test something that does not work. I would never "cheat," I am just looking in to how the top clans get it done; marcros are the answer.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: July 25th, 2006, 8:51 pm 
bf2geek wrote:
I would never "cheat," I am just looking in to how the top clans get it done; marcros are the answer.


Most organized competitions consider macros cheating. And the top clans don't have programs playing the game for them, that why they are at the top. Having played with, and against many of them, most indeed, do not use macros, regardless of what all the nubs think.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: July 26th, 2006, 2:59 am 
Offline

Joined: June 12th, 2006, 8:17 pm
Posts: 61
I've heard about top players using macros, such as "spotters"


Report this post
Top
 Profile  
Reply with quote  
 Post subject: dolphin dive
PostPosted: July 27th, 2006, 10:45 pm 
i was able to get dolphin dive to work using this script:


;code

MButton::
If GetKeyState("Xbutton2", "P") = 1
{
Sendinput {Space down}
Sleep 5
Sendinput {Space up}
}
Loop
{
GetKeyState, state, Xbutton2, P
if state=U
break
Sleep 10
Sendinput {Z down}
Sleep 1
Sendinput {Z up}
Sleep 10
Sendinput {Z down}
Sleep 1
Sendinput {Z up}
Sleep 10
Sendinput {LCtrl down}
Sleep 1
Sendinput {LCtrl up}
Sleep 10
Sendinput {Space down}
Sleep 1
Sendinput {Space up}
}


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: July 28th, 2006, 12:18 am 
Code:
~c::
 
    Sleep, 5
    Send, {LShift}
    Sleep, 5
    Send, {LCtrl}
    Sleep, 5
    Send, {LShift}
    Sleep, 5
    Send, {LCtrl}
 
Return


That should work, tell me if it does.


Report this post
Top
  
Reply with quote  
 Post subject: no it doesnt
PostPosted: August 8th, 2006, 10:23 am 
i got crouch mapped to c and L Ctrl and prone to L Shift and pressing C does nothing.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: August 9th, 2006, 1:49 am 
dolphin dive

Do you excuse but from few I am understanding how to make to work this kind of things, is it possible to understand as settare the everything?
A Final draft and it Glues to put in the Document: p


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: August 9th, 2006, 7:08 am 
#Persistent
#InstallKeybdHook
SetKeyDelay, 75, 75
; increase responsiveness
;#MaxThreadsPerHotkey 20
;#MaxThreadsBuffer on

$LWin::
{
Sleep, 5
Send, {Space}
Sleep, 70
Send, {Z}
Sleep, 70
Send, {Z}
Sleep, 100
Send, {LCtrl}
Sleep, 200
Send, {Space}
Sleep, 70
Send, {Z}
Sleep, 70
Send, {Z}
Sleep, 100
Send, {LCtrl}
}
Return


Try that one out, rename the keys to correspond with what you have you prone and cround set to.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: August 9th, 2006, 7:09 am 
Sorry...

And make sure to use the right hotkey, this one is set to use the left windows key.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: August 9th, 2006, 11:54 am 
I must have wrong some lace, it doesn't work me.
I had put the key "H" to make the commands depart, but it doesn't find me nothing... it is not possible to have a ready of it? I don't succeed really to understand what I am wrong... Grrrr


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: August 9th, 2006, 12:13 pm 
I don't succeed there. I surely mistake some command, Is not there a way to already find them Complete? .. it is one hour that I fight there...


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: August 9th, 2006, 8:14 pm 
That's because it is a bad macro. That's not how you make macros. You need to add the ups and downs. And second your sleeps are wayyyyyy to short. Try putting them all to 80, or all to 100.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: August 9th, 2006, 8:16 pm 
Code:
; AutoHotkey      Version: 1.x
; Language:       English
; Platform:       Win9x/NT
;
; Setup:
;    1.  Map Crouch to 'LCtrl'
;    2.  Map Prone to 'z'
;
; Description:
;     1. Press 'c' to go prone to standing repeatedly
;
#SingleInstance force
#InstallKeybdHook
;
; Only run this script when BF2.exe is running in the foreground
;
SetTimer, KeepRunning
return

KeepRunning:

  ; Get the process name of the active window (i.e. Notepad.exe)
  WinGet, szProcessName, ProcessName, A
  if szProcessName = bf2.exe
  {
    Suspend, off
  }
  else
  {
    Suspend, on
  }
return

$^CapsLock::
   ExitApp
return

NumPad0::Suspend, on
NumPad1::Suspend, off


GetKeyState, state, C, P
if state = D
$c::
   Send, {w down}   
   Sleep 50
   Send, {z Down}
   Sleep 80
   Send, {LCtrl Down}
   Sleep 80
   Send, {Z up}
   Sleep 80
   Send, {LCtrl Up}
   Sleep 80
   Send, {+ down}
   Sleep 140
   Send, {w down}
   Sleep 140
   Send, {+ up}
   Sleep 80
   Send, {z down}
   sleep 50
   Send, {LCtrl down}
   Sleep 80
   Send, {z up}
   Sleep 80
   Send, {LCtrl up}
   Sleep 80
   Send, {W up}
   return



(C is the hotkey)


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 19 posts ]  Go to page 1, 2  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: BrandonHotkey, Google [Bot], Maestr0, Yahoo [Bot] and 64 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group