Jump to content

Pug Commander Macro. Ahk


8 replies to this topic

#1 zortesh

    Member

  • PipPipPipPipPipPipPip
  • The Merciless
  • The Merciless
  • 624 posts

Posted 28 May 2014 - 11:05 PM

I was really bored one day, so i decided to make a target calling macro, along with some other random commands you can put into chat, like charge or fall back, flank left, flank right etc.

Exe version of the macro

Quote

#IfWinActive, ahk_class CryENGINE
^+a::Send y alpha{!}{Space} alhpa{!}{Space} alhpa{!}{enter}
^+b::Send y bravo{!}{Space} bravo{!}{Space} bravo{!}{enter}
^+c::Send y charlie{!}{Space}charlie{!}{Space}charlie{!}{enter}
^+d::Send y delta{!}{Space}delta{!}{Space}delta{!}{enter}
^+e::Send y echo{!}{Space}echo{!}{Space}echo{!}{enter}
^+f::Send y foxtrot{!}{Space}foxtrot{!}{Space}foxtrot{!}{enter}
^+g::Send y golf{!}{Space}golf{!}{Space}golf{!}{enter}
^+h::Send y hotel{!}{Space}hotel{!}{Space}hotel{!}{enter}
^+i::Send y india{!}{Space}india{!}{Space}india{!}{enter}
^+j::Send y juliet{!}{Space}juliet{!}{Space}juliet{!}{enter}
^+k::Send y kilo{!}{Space}kilo{!}{Space}kilo{!}{enter}
^+l::Send y lima{!}{Space}lima{!}{Space}lima{!}{enter}
^+m::Send y mike{!}{Space}mike{!}{Space}mike{!}{enter}
^+1::Send y push{!}{Space} push!{Space}{Space} push!{enter}
^+2::Send y hold{Space}ground{!}{!}{!}{enter}
^+3::Send y FALL{Space}BACK{!}{!}{!}{enter}
^+4::Send y flank{Space}left.{enter}
^+5::Send y flank{Space}right.{enter}
^+9::Send t MWUHAHAahaHAHAHAhahahHAHAHahahaha{!}{!}{!}{!}{enter}

#IfWinActive


Basic usage ctrl + shift + letter = calling that letter for targeting.

ctrl + shift + 1-5 various movement commands.
1= push
2=hold ground
3= fall back
4=flank left
5= flank right.

I dunno where to post this, so i just throw it in general.

To anyone else that likes to try and command the pugs, good luck.

Edited by zortesh, 29 May 2014 - 09:51 PM.


#2 MalodorousMonkey

    Member

  • PipPipPipPipPipPip
  • Elite Founder
  • Elite Founder
  • 283 posts
  • Location, location, location

Posted 28 May 2014 - 11:09 PM

When I first read the title, I thought you had created a macro to rapidly take and give up company command... That would have been so diabolical, I would have had to have laughed.

#3 zortesh

    Member

  • PipPipPipPipPipPipPip
  • The Merciless
  • The Merciless
  • 624 posts

Posted 28 May 2014 - 11:10 PM

It also would of been quite usless, although if i did that i'd have to make it also randomly scramble all the lances every time it did it.

Cuz thats just way more evil.

#4 MalodorousMonkey

    Member

  • PipPipPipPipPipPip
  • Elite Founder
  • Elite Founder
  • 283 posts
  • Location, location, location

Posted 28 May 2014 - 11:14 PM

(mind blown)
It's a good thing I'm busy, otherwise I'd be getting into trouble right now....

#5 zortesh

    Member

  • PipPipPipPipPipPipPip
  • The Merciless
  • The Merciless
  • 624 posts

Posted 28 May 2014 - 11:27 PM

yeah i think id have to call that macro the "get ruthlessly murdered by friendly premades macro."

#6 Varik Ronain

    Member

  • PipPipPipPipPipPip
  • 219 posts

Posted 29 May 2014 - 03:38 AM

So as someone who is not so computer savy how would I put this into my computer to make it function. I would love to be able to direct some pugging lrms to fire on the enemy ecm once they are marked via tag/narc. This really is something PGI should have done long ago.

#7 zortesh

    Member

  • PipPipPipPipPipPipPip
  • The Merciless
  • The Merciless
  • 624 posts

Posted 29 May 2014 - 09:48 PM

well first you need auto hot key... then you copy my code snippet into a txt file, then rename it and change its extension to .ahk..

Unfortunately newer windows system require you to change **** before extensions are visisble so... screw it.

HERE is a exe version of the macro, you simply open it, and follow the directions in the first post.

Edited by zortesh, 29 May 2014 - 09:50 PM.


#8 evilC

    Member

  • PipPipPipPipPipPipPipPip
  • Legendary Founder
  • Legendary Founder
  • 1,298 posts
  • LocationLondon, UK

Posted 16 June 2014 - 06:57 AM

  • You do not need to use {Space}, just leave a space.
  • You probably want to use SendPlay or SendInput rather than Send.


    SendInput and SendPlay buffer the user's input while typing, so the user input (eg them hitting WSAD) will not be interspersed with what it is typing.
Maybe changing the keys would be more logical.


eg
ctrl+shift+w = push
ctrl+shift+s = fall back
ctrl+shift+a = flank left
ctrl+shift+d = flank right

Edited by evilC, 16 June 2014 - 06:57 AM.


#9 zortesh

    Member

  • PipPipPipPipPipPipPip
  • The Merciless
  • The Merciless
  • 624 posts

Posted 25 June 2014 - 04:00 AM

View PostevilC, on 16 June 2014 - 06:57 AM, said:

  • You do not need to use {Space}, just leave a space.
  • You probably want to use SendPlay or SendInput rather than Send.



    SendInput and SendPlay buffer the user's input while typing, so the user input (eg them hitting WSAD) will not be interspersed with what it is typing.
Maybe changing the keys would be more logical.



eg
ctrl+shift+w = push
ctrl+shift+s = fall back
ctrl+shift+a = flank left
ctrl+shift+d = flank right


Probably is a better way to have the commands, but then i can't sue A to call alpha... and pressing letters to call targets is more important then pressing letters to call directions.

Also i do have to use that space command, i tried just spaces first.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users