AutoHotkey Community

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

All times are UTC [ DST ]




Post new topic Reply to topic  [ 1913 posts ]  Go to page Previous  1 ... 124, 125, 126, 127, 128
Author Message
PostPosted: December 30th, 2010, 5:15 pm 
Hey,

Basically used macros in BF2 over a year ago before, all worked fine. Now that I've returned to playing I can't seem to use them when BF2 is in the foreground. The macros work fine on my desktop/windows explorer... Just not in game. Is this due to the new 1.5 Patch?

Anyone else having this problem? and can anyone resolve it?

Thanks.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: March 17th, 2011, 11:51 pm 
Looking for "whoot" macro (heli, auto-click), anyone?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: March 30th, 2011, 3:42 pm 
Offline

Joined: March 30th, 2011, 3:38 pm
Posts: 1
who then have a macro for BFBС 2 for SV-98 or other snipers to aim not move


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Prone and Fire
PostPosted: August 3rd, 2011, 8:26 am 
Hi guys,

I've been searching through this insanely long post and the helpfiles yet I can't seem to find or be able to make a simple marco that when I hit LButton with drop me into prone as well.

Is this possible? I have been trying to hours and I can't get anything to work at all - first time using this AHK program.

(for BF2 btw)

Any help is much appreciated.

Allyn


Report this post
Top
  
Reply with quote  
PostPosted: August 22nd, 2011, 5:34 am 
Bigbob wrote:
Hey,

Basically used macros in BF2 over a year ago before, all worked fine. Now that I've returned to playing I can't seem to use them when BF2 is in the foreground. The macros work fine on my desktop/windows explorer... Just not in game. Is this due to the new 1.5 Patch?

Anyone else having this problem? and can anyone resolve it?

Thanks.


I've never used ahk before, but I'm having exactly the same problem. Using the following script to flip to a rear view (in a jet or heli), then back to the cockpit when I press

Code:
Joy9::
Send, i  ; Rear view
KeyWait, Joy9  ; Wait for the user to release the joystick button.
Send, y ; return to interior view
Sleep, 100
Send, c  ; remove cockpit HUD
return

Numpad7::
SendInput, i  ; Rear view
KeyWait, Numpad7  ; Wait for the user to release the button.
SendInput, y ; return to interior view
Sleep, 100
SendInput, c  ; remove cockpit HUD
return


I've set I and Y to duplicate the functions of F11 and F9, for testing purposes. Outside the game it works perfectly - I can load up notepad, hold down numpad 7 or the joystick button, and it types 'i'. As soon as I let go, it types 'y', then 'c'. Works in other 3D apps as well.

It also works in BF2 chat mode. If I press J to chat, then the joystick button behaves as it should - i, followed by y and c. The numpad 7 key, however, prints a '7' to the chat box.

I've tried this with the 32 bit and the 64 bit options in the installer. I've tried replacing SendInput with SendRaw, Send and SendEvent. I've run out of ideas. I'm beginning to suspect that BF2 just won't work with ahk :(


Report this post
Top
  
Reply with quote  
PostPosted: October 19th, 2011, 7:53 pm 
Off the Rails wrote:
I'm beginning to suspect that BF2 just won't work with ahk :(


Fixed it:
Code:

;;;;;;;;;;;;;;;;;;;;;
;; BF2 helper scripts
;;;;;;;;;;;;;;;;;;;;;

#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.
SetTitleMatchMode, 2
#SingleInstance force
#InstallKeybdHook
#InstallMouseHook
#KeyHistory 500

joy7::rearview()
joy8::chaseview()
joy9::flyby()

Cockpit()
{
   SendInput {F9 down}
   Sleep 40
   SendInput {F9 up}
   SendInput {F9 down}
   Sleep 40
   SendInput {F9 up}
}

Chaseview()
{
   SendInput {F10 down}
   Sleep 40
   SendInput {F10 up}
   KeyWait Joy8
   Cockpit()
}

Rearview()
{
   SendInput {F11 down}
   Sleep 40
   SendInput {F11 up}
   KeyWait Joy7
   Cockpit()
}

FlyBy()
{
   SendInput {F12 down}
   Sleep 40
   SendInput {F12 up}
   KeyWait Joy9
   Cockpit()
}


Report this post
Top
  
Reply with quote  
PostPosted: April 2nd, 2012, 2:32 am 
Ok soldiers.

Compile your scripts, right click, run as admin.

New versions of windows, and old, updated versions of windows need to have the ahk script run as admin for it to interact with other applications.


Report this post
Top
  
Reply with quote  
PostPosted: May 8th, 2012, 5:36 am 
Anybody got a script to where you hit LCTRL once then it crouches, held down you go prone (Z) and then press LCTRL to stand back up?


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1913 posts ]  Go to page Previous  1 ... 124, 125, 126, 127, 128

All times are UTC [ DST ]


Who is online

Users browsing this forum: specter333 and 24 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