[Dank] Full Macro Release

Discussion in 'TTT Discussion' started by Xproplayer, Jan 7, 2017.

  1. Xproplayer

    Xproplayer VIP Silver

    Here is my entire macro portfolio that I currently use, 99% of them are designed to work on 1080p resolution, if you don't have that you'll haave to capture coordinates yourself using auothotkeys window spy tool and then change the values. Long story short its just a bunch of send click commands. Some may make more sense than others.

    Call this my christmas and new years present to the community, since I don't as much I don't mind these being public. the key listed before "::" is the hotkey to trigger it, i will only help friends of mine with setting it up, lookup guides on autohotkey, it would take you less than 10 minutes to set these up. any ";" means a comment and things after that dont affect the code, use it to disable certain things.

    Frag Nade Single

    Code:
    ;buy frag
    $F11::
    IfWinActive, Garry's Mod
    {
    Send {F3}
    Sleep 400
    Click 500, 225
    Sleep 25
    Click 1200, 500
    Sleep 25
    Click 945, 560
    Sleep 25
    Send {F3}
    Sleep 300
    Send {NumpadSub}
    }
    IfWinNotActive, Garry's Mod
    {
    Send {F11}
    return
    }
    return
    Incin Nade Single
    Code:
    ;buy incin
    $F10::
    IfWinActive, Garry's Mod
    {
    Send {F3}
    Sleep 400
    Click 500, 225
    Sleep 25
    Click 800, 700
    Sleep 25
    Click 945, 560
    Sleep 25
    Send {F3}
    Sleep 300
    Send {NumpadSub}
    }
    return
    Buy detective
    Code:
    ;buy detective
    $F9::
    IfWinActive, Garry's Mod
    {
    Send {F3}
    Sleep 400
    Click 575, 218
    Sleep 50
    Click 555, 288
    Sleep 10
    Click 945, 560
    Sleep 25
    Send {F3}
    }
    return
    
    Buy Traitor
    Code:
    ;buy tratior
    $F12::
    IfWinActive, Garry's Mod
    {
    Send {F3}
    Sleep 400
    Click 575, 218
    Sleep 50
    Click 785, 288
    Sleep 10
    Click 945, 560
    Sleep 25
    Send {F3}
    }
    return
    
    
    Buy HKSL8
    Code:
    ;buy hksl8
    $F7::
    IfWinActive, Garry's Mod
    {
    Send {F3}
    Sleep 400
    Click 500, 225
    Sleep 50
    Click 1200, 600
    Sleep 25
    Click 945, 560
    Sleep 25
    Send {F3}
    ;SetCapsLockState, off
    }
    IfWinNotActive, Garry's Mod
    {
    Send {F7}
    }
    return
    Buy AK47
    Code:
    ;buy ak47
    $XButton2::
    IfWinActive, Garry's Mod
    {
    Send {F3}
    Sleep 400
    Click 500, 225
    Sleep 50
    Click 1000, 300
    Sleep 25
    Click 945, 560
    Sleep 25
    Send {F3}
    ;SetCapsLockState, on
    }
    IfWinNotActive, Garry's Mod
    {
    Send {XButton2}
    }
    return
    Toggle link skin
    Code:
    ;toggle link skin
    $F8::
    IfWinActive, Garry's Mod
    {
    Send {F3}
    Sleep 400
    Click 745, 220
    Sleep 50
    Click 1465, 875
    Click 1465, 875
    Click 1465, 875
    Sleep 10
    click 590, 315
    Sleep 25
    Send {F3}
    
    }
    return
    Buy AK47 and colt
    Code:
    ;buy ak47 and colt
    $Numpad0::
    IfWinActive, Garry's Mod
    {
    Send {F3}
    Sleep 400
    Click 500, 225
    Sleep 50
    Click 1000, 300
    Sleep 25
    Click 945, 560
    Sleep 25
    Click 1000, 400
    Sleep 25
    Click 945, 560
    Sleep 25
    Send {F3}
    ;SetCapsLockState, on
    }
    IfWinNotActive, Garry's Mod
    {
    Send 0
    }
    return
    Buy HKSL8 and HK45C
    Code:
    ;buy hksl8 and hk45c
    ;$Numpad1::
    IfWinActive, Garry's Mod
    {
    Send {F3}
    Sleep 400
    Click 500, 225
    Sleep 50
    Click 1200, 600
    Sleep 25
    Click 945, 560
    Sleep 25
    Click 550, 700
    Sleep 25
    Click 945, 560
    Sleep 25
    Send {F3}
    ;SetCapsLockState, off
    }
    IfWinNotActive, Garry's Mod
    {
    Send 1
    }
    return
    Buy colt
    Code:
    ;buy colt
    $Browser_Back::
    IfWinActive, Garry's Mod
    {
    Send {F3}
    Sleep 400
    Click 500, 225
    Sleep 50
    Click 1000, 400
    Sleep 25
    Click 945, 560
    Sleep 25
    Send {F3}
    IfWinNotActive, Garry's Mod
    {
    Send {Browser_Back}
    }
    }
    return
    [WARNING] Disable automatic fire this one is disabled because if you put this in you would no longer be able to use full auto weapons, it makes everything semi auto. Use this to gain trigger discipline, use for 3-5 days and your results could be permanent like mine. It is toggled by caps lock
    Code:
    ;$~LButton::
    IfWinActive, Garry's Mod
    {
        if GetKeyState("CapsLock", "T")
        {
            
        }
        else
        {
            Send {LButton Up}
        }
    }
    return
    Buy 2 HKsl8 for ammo:
    Code:
    ;buy 2 hksl8
    $Browser_Forward::
    IfWinActive, Garry's Mod
    {
    Send {F3}
    Sleep 400
    Click 500, 225
    Sleep 50
    Click 1200, 600
    Sleep 25
    Click 945, 560
    Sleep 50
    Click 1200, 600
    Sleep 25
    Click 945, 560
    Sleep 25
    Send {F3}
    IfWinNotActive, Garry's Mod
    {
    Send {Browser_Forward}
    }
    }
    
    
    return
    Buy 2 ak47
    Code:
    ;buy 2 ak47
    $Browser_Refresh::
    IfWinActive, Garry's Mod
    {
    Send {F3}
    Sleep 400
    Click 500, 225
    Sleep 50
    Click 1000, 300
    Sleep 25
    Click 945, 560
    Sleep 50
    Click 1000, 300
    Sleep 25
    Click 945, 560
    Sleep 25
    Send {F3}
    IfWinNotActive, Garry's Mod
    {
    Send {Browser_Refresh}
    }
    }
    return
    Spam buy nades or incins, trigger is control or shift then numpad add, hold to buy infinite nades
    Code:
    ;spam buy nades
    $~NumpadAdd::
    IfWinActive, Garry's Mod
    {
        While GetKeyState("NumpadAdd", "P") {
        Click 1200, 500
        Click 945, 560
        }
    }
    IfWinNotActive, Garry's Mod
    {
    Send {NumpadAdd}
    }
    return
    
    ;spam buy incin nades
    $~+NumpadAdd::
    IfWinActive, Garry's Mod
    {
        While GetKeyState("NumpadAdd", "P")
            {
                While GetKeyState("Shift", "P")
                {
                    Click 800, 700
                    Click 945, 560
                }
            }
    }
    IfWinNotActive, Garry's Mod
    {
    Send {NumpadAdd}
    }
    return
    
    
    Buy kriss vector then ak47 (used for silenced pistol to get ammo and have a weapon to switch to
    Code:
    ;buy kriss then ak47
    $Browser_Favorites::
    IfWinActive, Garry's Mod
    {
    Send {F3}
    Sleep 400
    Click 500, 225
    
    Click 1250, 730
    
    Click 945, 560
    
    Click 1000, 300
    
    Click 945, 560
    }
    Send {F3}
    IfWinNotActive, Garry's Mod
    {
    Send {Browser_Favorites}
    }
    
    return
    
    Set loadout to ak47 + colt
    Code:
    ;set loadout ak47
    $Numpad1::
    IfWinActive, Garry's Mod
    {
    Send, {F3}
    Sleep 400
    MouseClick, left,  957,  214
    Sleep, 100
    MouseClick, left,  541,  363
    Sleep, 100
    MouseClick, left,  877,  298 colt
    ; MouseClick, left,  840, 330 deagle
    Sleep, 100
    MouseClick, left,  1160,  655
    Sleep, 100
    MouseClick, left,  1125,  265
    Sleep, 100
    Send {F3}
    }
    IfWinNotActive, Garry's Mod
    {
    Send {1}
    }
    return
    
    Set loadout to hksl8 + colt, also it sets your nade to frag, if you arent vip+ or higher it does nothing
    Code:
    ;set loadout hksl8
    $Numpad0::
    IfWinActive, Garry's Mod
    {
    Send, {F3}
    Sleep 400
    MouseClick, left,  957,  214
    Sleep, 100
    MouseClick, left,  545,  748
    Sleep, 100
    MouseClick, left,  877,  298 colt
    ; MouseClick, left,  840, 330 deagle
    Sleep, 100
    MouseClick, left,  1160,  655
    Sleep, 100
    MouseClick, left,  1125,  265
    Sleep, 100
    Send {F3}
    }
    IfWinNotActive, Garry's Mod
    {
    Send {0}
    }
    return
    I have 1 more macro to PM an entire server quickly but I don't want to release that because that could cause spam. Cheers all and happy macroing.
     
    • Informative Informative x 11
    • Winner Winner x 3
    • Like Like x 2
    • Bad Spelling Bad Spelling x 1
  2. Togo ✿

    Togo ✿ Nobody Gets it VIP Silver

    Nice hacks
     
    • Like Like x 1
    • Agree Agree x 1
    • Winner Winner x 1
    • Optimistic Optimistic x 1
  3. Pacifist

    Pacifist Cynically Insane VIP Bronze

    MACROS
    MACROS
    MAAAAACROSSSSSS
    macro macro macro macro macro macro macro macro macro macro macro macro macro macro macro macro macro macro macro macro macro macro macro macro macro macro macro macro macro macro macro macro macro macro macro macro macro macro macro macro macro macro macro macro macro macro macro macro macro


    (i wont use this but ya pretty dope thank you xpro)
     
    • Friendly Friendly x 2
  4. Mr. Disco

    Mr. Disco Jeff Lynne is a musical genius. VIP

    Click 500, 225

    Is this where it is located on any screen or just your resolution?

    I'm just asking because who knows, I might code a macro.
     
  5. Xproplayer

    Xproplayer VIP Silver

    Thats based on 1080p resolution for an offset, if you arent on 1080p youll need to get different coordinates by using the window spy and hovering over your target.
     
    • Informative Informative x 2
    • Like Like x 1
  6. Silent Rebel

    Silent Rebel Lead Shitposter VIP

    This is awesome! I've always wanted a hot key / macro to quickly change skins
     
  7. If I find out how to set these up, I'll be banned for what I do
     
    • Optimistic Optimistic x 1
  8. Santa Claus

    Santa Claus Best Member VIP Bronze

    Hey do you think I can multiply these values for 1440p?
    Like for example:
    Click 945, 560 -> [945/1920*2560] , [560/1080*1440]
     
  9. Xproplayer

    Xproplayer VIP Silver

    You might be able to for certain things, but most of this is pointshop coordinates that will not probably scale properly as pointshop always centers. If you have two monitors open window spy and use your primary monitor to find the coordinates, or hover over what you want then alt tab without moving the mouse and it should give you the same screen coordinates. I also only use fullscreen to ensure there arent changes between sessions.
     
    • Like Like x 2
  10. So im kinda not smart with these, i keep copying it all and pasting it raw into console; obviously thats not how it works apparantly. Is there something i should edit first? Cus it keeps sayign "uknown command buy" or some shit
     
    • Funny Funny x 1
  11. Xproplayer

    Xproplayer VIP Silver

    Goddamn you better be trolling or you're dumb as fuck. You have to install and use autohotkey jesus.
     
    • Like Like x 1
    • Funny Funny x 1
    • Winner Winner x 1
    • Dumb Dumb x 1
  12. Osmium

    Osmium Virtue VIP Silver

    Does it scale with sizes?
     
  13. Xproplayer

    Xproplayer VIP Silver

    Unlikely, see my post above.
     
    • Like Like x 1
  14. Elvis

    Elvis TheRockStars VIP Silver

    Everytime the script ends, it forces me to look down. Is there a way to prevent this? It can be quite annoying if im mid battle and buying a T weapon and then instead of still looking at the dude I just look down.

    EDIT: and it shoots whatever gun I am currently holding.

    EDITEDIT: in case you dont know what im talking about here is a video of it https://www.youtube.com/watch?edit=vd&v=YpevblpcOyE
     
    Last edited: Jan 19, 2017
  15. Xproplayer

    Xproplayer VIP Silver

    Two things, first the macro isn't written properly, 2nd you shouldn't be using macros to buy traitor menu equipment, all of it is keybindable.
     
    • Like Like x 1
  16. RaYm0nD

    RaYm0nD VIP Bronze

    Don't worry I won't tell the admins.
    [​IMG]
     
    • Creative Creative x 1
  17. Xproplayer

    Xproplayer VIP Silver

    I sent highwon a link to this thread when I made it. :)
     
    • Like Like x 1
    • Funny Funny x 1
  18. Elvis

    Elvis TheRockStars VIP Silver

    ;buy traitor
    Numpad0::
    IfWinActive, Garry's Mod
    send {F3}
    MouseMove, 485, 106
    Click 1
    MouseMove, 337, 211
    Click 1
    MouseMove, 385, 211
    Click 1
    MouseMove, 613, 346
    Click 1
    send {F3}
    return


    This is my script to buy traitor. Is there anything that stands out? (this is one for another server as the one I have for SGM works just fine but I cant find out why it acts differently)
     
  19. Xproplayer

    Xproplayer VIP Silver

    Not sure you you use Click 1, if you do click x, y itll click at those coords, try removing the 1s
     
    • Like Like x 1
    • Informative Informative x 1
  20. Elvis

    Elvis TheRockStars VIP Silver

    Even after doing that, it still does the spin shoot thingy.