nicebruh

09/11/2025 mudbourn's CW Macro AHK

Jul 11th, 2025 (edited)
2,124
0
Never
12
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Autohotkey 12.87 KB | Gaming | 0 0
  1. ; Macro made by mudbourn (Latest change: 09/11/2025 at 14:16 EST).
  2.  
  3. { ; Settings for Super Throw (save these externally)
  4.  
  5.     global SleepDelay = 18 ; Amount of time between mouse movements in the Super Throw macro.
  6.  
  7.     global PixelAmount = 75 ; The size of the outline for the spin in the Super Throw macro.
  8.  
  9.     global ThrowMousePos1 = 150 ; How far left or right the mouse is positioned in the Super Throw macro.
  10.  
  11.     global ThrowMousePos2 = -150 ; How far up or down the mouse is positioned in the Super Throw macro.
  12.  
  13.     global CamSetup = -2245
  14.  
  15.     global CamRestore = 1150 ; How far down the camera moves to restore looking direction in the Super Throw macro.
  16.  
  17.     ; NOTE: These settings are for 120 FOV with 4 roblox sensitivity by default. Adjusting these to solve problems that show up in the macro process may be necesasry.
  18.  
  19. }
  20.  
  21. ; WARNING: Messing with the content below can break the script.
  22. ; Scroll down to "Binds" to find the binds for the macros.
  23.  
  24. { ; AHK script settings. (DO NOT TOUCH)
  25.  
  26.     SetWorkingDir %A_ScriptDir%
  27.     SetTitleMatchMode 2
  28.     SetControlDelay 0
  29.     SetWinDelay 0
  30.     SetKeyDelay, 0
  31.     SetMouseDelay 0
  32.     SendMode, Input
  33.  
  34.     #IfWinActive Roblox
  35.  
  36.     global NirCmdPath = A_ScriptDir "\nircmd.exe"
  37.     global SciTEPath = "C:\Program Files\AutoHotkey\SciTE"
  38.     global ScriptPath = A_ScriptDir
  39.     global NirCheck = 0
  40.     global SciCheck = 0
  41.  
  42.     global GuiUsed = 0
  43.     global ReloadMacrosRun = 0
  44.     global AutoFireToggler = 0
  45.     global CurrentBow = 0 ; Main Bow/Bow Currently in use. ( Default = 0 / No bow)
  46.     global Scaled = 0
  47.     global InPauseMenu = 0
  48.  
  49.     SetTimer, ReleaseKeys, 10
  50.     Sleep, 100
  51.     SetTimer, ReleaseKeys, Off
  52.     SetTimer, DependantCheck, 1
  53.  
  54. }
  55.  
  56. { ; Essential script control macros.
  57.  
  58.     ~F5::Pause
  59.  
  60.     { ; Reload Function
  61.         ~*=::
  62.         Suspend, Permit
  63.         if GetKeyState("LAlt", "P")
  64.         {
  65.             Run "C:\Program Files\AutoHotkey\SciTE\SciTE.exe" "%A_ScriptFullPath%"
  66.             return
  67.         }
  68.         SetTimer, ChatCancel, 1
  69.         SoundPlay, beep.mp3
  70.         ReloadMacros()
  71.         return
  72.     }
  73.  
  74.     { ; Pause Suspend
  75.         ~*Esc::
  76.         Suspend, Permit
  77.         Suspend, Toggle
  78.         if InPauseMenu =  1
  79.         {
  80.             InPauseMenu =  0
  81.         }
  82.         else
  83.         {
  84.             PauseMenu =  1
  85.         }
  86.         Return
  87.     }
  88.  
  89.     { ; Chat Suspend
  90.         ~*/::
  91.         Suspend, Permit
  92.         try
  93.         {
  94.             if InPauseMenu =  0
  95.             {
  96.                 Suspend, On
  97.             }
  98.         }
  99.         catch
  100.         {
  101.             return
  102.         }
  103.         Return
  104.     }
  105.  
  106.     { ; Chat Unsuspend
  107.         ~*Enter::
  108.         Suspend, Permit
  109.         try
  110.         {
  111.             if InPauseMenu =  0
  112.             {
  113.                 Suspend, Off
  114.             }
  115.         }
  116.         catch
  117.         {
  118.             return
  119.         }
  120.         Return
  121.     }
  122.  
  123.     ReloadMacros()
  124.     {
  125.         Soundplay, beep.mp3
  126.         Sleep, 100
  127.         if UsingItem1 = 1
  128.         {
  129.             Flourish1()
  130.         }
  131.         SetTimer, ChatCancel, Off
  132.         Reload
  133.         return
  134.     }
  135.  
  136.     DependantCheck()
  137.     {
  138.         If (FileExist(NirCmdPath))
  139.         {
  140.             NirCheck = 1
  141.             SetTimer, DependantCheck, Off
  142.         }
  143.         If (FileExist(SciTEPath))
  144.         {
  145.             SciCheck = 1
  146.             SetTimer, DependantCheck, Off
  147.         }
  148.         If SciCheck = 0
  149.         {
  150.             MsgBox, SciTE was not found. Contact mudbourn for help on Discord.
  151.             MsgBox, Script is located in %ScriptPath%.
  152.             ExitApp
  153.         }
  154.                 If NirCheck = 0
  155.         {
  156.             MsgBox, NirCmd was not found. Contact mudbourn for help on Discord.
  157.             MsgBox, Script is located in %ScriptPath%.
  158.             ExitApp
  159.         }
  160.     }
  161.  
  162.     IsRobloxActive()
  163.     {
  164.         WinGetTitle, title, A
  165.         return InStr(title, "Roblox")
  166.         return
  167.     }
  168.  
  169.     ChatCancel()
  170.     {
  171.         While GetKeyState("/", "U")
  172.         {
  173.             if GetKeyState("/", "P")
  174.             {
  175.                 Send, {Esc}
  176.             }
  177.         }
  178.         return
  179.     }
  180.  
  181.     ReleaseKeys()
  182.     {
  183.         SetTimer, ChatCancel, 1
  184.         Send, {w up}{a up}{s up}{d up}{Shift up}{Ctrl up}{Alt up}{Space up}{LButton up}{RButton up}{C Up}{X Up}{O Up}{R Up}{LButton Up}{RButton Up}
  185.         Send, {Esc}
  186.         Sleep, 50
  187.         Send, {Esc}
  188.         Sleep, 5
  189.         SetTimer, ReleaseKeys, Off
  190.         SetTimer, ChatCancel, Off
  191.         Return
  192.     }
  193. }
  194.  
  195. { ; Major macros.
  196.  
  197.     { ; Bow Auto Fire.
  198.  
  199.         AutoFireBow()
  200.         {
  201.             If (FileExist(nircmdPath))
  202.             {
  203.                 if CurrentBow = 1
  204.                 {
  205.                     Longbow()
  206.                 }
  207.                 if CurrentBow = 2
  208.                 {
  209.                     Crossbow()
  210.                 }
  211.                 if CurrentBow = 3
  212.                 {
  213.                     HeavyBow()
  214.                 }
  215.             }
  216.         }
  217.  
  218.         Longbow()
  219.         {
  220.             While GetKeyState("B", "P")
  221.             {
  222.                 Send, {LButton Down}
  223.                 Sleep, 20
  224.                 Send, {F}
  225.                 Sleep, 500
  226.                 Send, {LButton Up}
  227.                 Sleep, 5
  228.                 Send, {R}
  229.                 Sleep, 825
  230.             }
  231.             Send, {R}
  232.             Sleep, 10
  233.         }
  234.  
  235.         CrossBow()
  236.         {
  237.             While GetKeyState("B", "P")
  238.             {
  239.                 Send,{LButton}
  240.                 Sleep, 25
  241.                 Send, {R}{F}
  242.                 Sleep, 1285
  243.             }
  244.             Send, {R}
  245.             Sleep, 10
  246.         }
  247.  
  248.         HeavyBow()
  249.         {
  250.             While GetKeyState("B", "P")
  251.             {
  252.                 Send, {LButton Down}
  253.                 Sleep, 20
  254.                 Send, {F}
  255.                 Sleep, 850
  256.                 Send, {LButton Up}
  257.                 Sleep, 5
  258.                 Send, {R}
  259.                 Sleep, 1450
  260.             }
  261.             Send, {R}
  262.             Sleep, 10
  263.         }
  264.  
  265.         AutoFireKillSwitch()
  266.         {
  267.             AutoFireToggler = 0
  268.             SetTimer, ReleaseKeys, 1
  269.             SetTimer, HeavyBow, Off
  270.             SetTimer, Crossbow, Off
  271.             SetTimer, Longbow, Off
  272.             SetTimer, AutoFireKillSwitch, Off
  273.         }
  274.  
  275.     }
  276.  
  277.     { ; Super Throw.
  278.  
  279.         SuperThrow()
  280.         {
  281.             Critical, Off
  282.             Loop, 18
  283.             {
  284.                 Send, {WheelDown}
  285.             }
  286.                 DllCall("user32.dll\mouse_event", "UInt", 0x0001, "Int", 0, "Int", 4000)
  287.                 Sleep, 15
  288.                 DllCall("user32.dll\mouse_event", "UInt", 0x0001, "Int", 0, "Int", 4000)
  289.                 Sleep 100
  290.                 DllCall("user32.dll\mouse_event", "UInt", 0x0001, "Int", 0, "Int", CamSetup)
  291.                 Sleep, 15
  292.                 Send, {Z}
  293.                 Send, {RButton}
  294.                 Sleep, 100
  295.                 DllCall("user32.dll\mouse_event", "UInt", 0x0001, "Int", ThrowMousePos1, "Int", ThrowMousePos2)
  296.                 Send, {C Up}
  297.                 Send, {X Down}{C Down}
  298.                 Send, {Space Down}
  299.                 Sleep, 400
  300.                 Send, {Space Up}
  301.                 Sleep, 3
  302.                 SetTimer, SuperThrowSpin, 1
  303.                 Sleep, 15
  304.                 Send, {C Up}{Space Up}
  305.                 Sleep, 100
  306.                 Send, {RButton}
  307.                 Send, {Z}
  308.                 Sleep, 70
  309.                 DllCall("user32.dll\mouse_event", "UInt", 0x0001, "Int", 0, "Int", CamRestore)
  310.                 SetTimer, SuperThrow, Off
  311.                 Return
  312.             }
  313.         }
  314.  
  315.         SuperThrowSpin()
  316.         {
  317.             Send, {X Up}
  318.             Sleep, 10
  319.             Loop, 5
  320.             {
  321.                 DllCall("user32.dll\mouse_event", "UInt", 0x0001, "Int", -PixelAmount, "Int", 0)
  322.                 Sleep, SleepDelay
  323.                 DllCall("user32.dll\mouse_event", "UInt", 0x0001, "Int", -PixelAmount, "Int", 0)
  324.                 Sleep, SleepDelay
  325.                 DllCall("user32.dll\mouse_event", "UInt", 0x0001, "Int", -PixelAmount, "Int", 0)
  326.                 DllCall("user32.dll\mouse_event", "UInt", 0x0001, "Int", -PixelAmount, "Int", 0)
  327.                 Sleep, SleepDelay
  328.                 DllCall("user32.dll\mouse_event", "UInt", 0x0001, "Int", 0, "Int", -PixelAmount)
  329.                 DllCall("user32.dll\mouse_event", "UInt", 0x0001, "Int", 0, "Int", -PixelAmount)
  330.                 Sleep, SleepDelay
  331.                 DllCall("user32.dll\mouse_event", "UInt", 0x0001, "Int", 0, "Int", -PixelAmount)
  332.                 Sleep, SleepDelay
  333.                 DllCall("user32.dll\mouse_event", "UInt", 0x0001, "Int", 0, "Int", -PixelAmount)
  334.                 Sleep, 2
  335.                 DllCall("user32.dll\mouse_event", "UInt", 0x0001, "Int", PixelAmount, "Int", 0)
  336.                 DllCall("user32.dll\mouse_event", "UInt", 0x0001, "Int", PixelAmount, "Int", 0)
  337.                 Sleep, SleepDelay
  338.                 DllCall("user32.dll\mouse_event", "UInt", 0x0001, "Int", PixelAmount, "Int", 0)
  339.                 Sleep, SleepDelay
  340.                 DllCall("user32.dll\mouse_event", "UInt", 0x0001, "Int", PixelAmount, "Int", 0)
  341.                 Sleep, SleepDelay
  342.                 DllCall("user32.dll\mouse_event", "UInt", 0x0001, "Int", 0, "Int", PixelAmount)
  343.                 Sleep, SleepDelay
  344.                 DllCall("user32.dll\mouse_event", "UInt", 0x0001, "Int", 0, "Int", PixelAmount)
  345.                 Sleep, SleepDelay
  346.                 DllCall("user32.dll\mouse_event", "UInt", 0x0001, "Int", 0, "Int", PixelAmount)
  347.                 DllCall("user32.dll\mouse_event", "UInt", 0x0001, "Int", 0, "Int", PixelAmount)
  348.             }
  349.             Loop, 6
  350.             {
  351.                 Send, {WheelUp}
  352.             }
  353.             SetTimer, SuperThrowSpin, Off
  354.             Return
  355.         }
  356.  
  357.     Bail()
  358.     {
  359.         if GetKeyState("LButton", "P")
  360.         {
  361.             Send, {Z}
  362.             Sleep, 15
  363.             ReloadMacros()
  364.         }
  365.     }
  366.  
  367.     }
  368.  
  369. { ; Tricks/tools.
  370.  
  371.     FakeSwing()
  372.     {
  373.         While GetKeyState("XButton2", "P")
  374.         {
  375.             Send, {LButton}
  376.             Sleep, 163
  377.             ; Send, {x}
  378.             Send, {1}
  379.             Send, {1}
  380.             DllCall("user32.dll\mouse_event", "UInt", 0x0001, "Int", 3200, "Int", 0)
  381.             Sleep, 30
  382.             DllCall("user32.dll\mouse_event", "UInt", 0x0001, "Int", 520, "Int", 0)
  383.             Sleep, 36
  384.             DllCall("user32.dll\mouse_event", "UInt", 0x0001, "Int", 120, "Int", 0)
  385.             Sleep, 50
  386.             DllCall("user32.dll\mouse_event", "UInt", 0x0001, "Int", -3200, "Int", 0)
  387.             Sleep, 35
  388.             DllCall("user32.dll\mouse_event", "UInt", 0x0001, "Int", -520, "Int", 0)
  389.             Sleep, 35
  390.             DllCall("user32.dll\mouse_event", "UInt", 0x0001, "Int", -120, "Int", 0)
  391.             Sleep, 380
  392.         }
  393.         Return
  394.     }
  395.  
  396.     Scaler()
  397.     {
  398.          if Scaled = 0
  399.         {
  400.             Scaled = 1
  401.             Run, nircmd.exe setdisplay 1600 900 32
  402.         }
  403.         else if Scaled = 1
  404.         {
  405.             Scaled = 0
  406.             Run, nircmd.exe setdisplay 1920 1080 32
  407.         }
  408.     }
  409.  
  410.     Flourish1()
  411.     {
  412.         Send, {1 Down}
  413.         Sleep, 3
  414.         Send, {X Down}
  415.         Send, {1 Up}{X Up}
  416.         return
  417.     }
  418.  
  419.     Flourish2()
  420.     {
  421.         Send, {2 down}
  422.         Sleep, 50
  423.         send, {x down}
  424.         Send, {2 up}
  425.         send, {x up}
  426.         return
  427.     }
  428.  
  429.     Flourish3()
  430.     {
  431.         Send, {3 down}
  432.         Sleep, 50
  433.         send, {x down}
  434.         Send, {3 up}
  435.         send, {x up}
  436.         return
  437.     }
  438.  
  439.     GKCancel()
  440.     {
  441.         Send, {G}
  442.         Sleep, 300
  443.         Send, {Q}
  444.         Return
  445.     }
  446.  
  447. }
  448.  
  449. { ; Choices and settings menu for certain macros.
  450.  
  451.     Settings()
  452.     {
  453.         Gui, New, +AlwaysOnTop +OwnDialogs, Choose an Option
  454.         Gui, Add, Text, Center, Settings
  455.         Gui, Add, Button, gChooseA1 w175 Center, Bow Type Selector
  456.         Gui, Add, Button, gChooseC3 w175 Center, Disable AutoFire Hotkey
  457.         Gui, Add, Button, gChooseE5 w175 Center, Update Macro (WIP, BROKEN)
  458.         Gui, Show, w300, Made by mudbourn.
  459.         Return
  460.     }
  461.  
  462.     BowSelector()
  463.     {
  464.         Gui, New, +AlwaysOnTop +OwnDialogs, Choose an Option
  465.         Gui, Add, Text, Center, Please select your current bow type
  466.         Gui, Add, Button, gChooseA w175 Center, Longbow
  467.         Gui, Add, Button, gChooseB w175 Center, Crossbow
  468.         Gui, Add, Button, gChooseC w175 Center, Heavy Bow
  469.         Gui, Show, w300, Made by mudbourn.
  470.         Return
  471.     }
  472.  
  473.     UpdaterBrowserSelect()
  474.     {
  475.         Gui, New, +AlwaysOnTop +OwnDialogs, Choose a browser
  476.         Gui, Add, Text, Center, Please select your current bow type
  477.         Gui, Add, Button, gChooseBA w175 Center, Chrome
  478.         Gui, Add, Button, gChooseBB w175 Center, Firefox
  479.         Gui, Add, Button, gChooseBC w175 Center, Brave
  480.         Gui, Add, Button, gChooseBE w175 Center, Edge
  481.         Gui, Add, Button, gChooseBF w175 Center, Manual Update
  482.         Gui, Show, w300, Made by mudbourn.
  483.         Return
  484.     }
  485.  
  486.     { ; Main menu choices
  487.         ChooseA1:
  488.         {
  489.             Gui, Destroy
  490.             BowSelector()
  491.             Return
  492.         }
  493.  
  494.         ChooseC3:
  495.         {
  496.             Gui, Destroy
  497.             CurrentBow = -1
  498.             Return
  499.         }
  500.  
  501.         ChooseE5:
  502.         {
  503.             Gui, Destroy
  504.             UpdaterBrowserSelect()
  505.             return
  506.         }
  507.     }
  508.  
  509.     { ; Bow Autofire Choices
  510.         ChooseA:
  511.         {
  512.             Gui, Destroy
  513.             GuiClose1:
  514.             GuiEscape1:
  515.                 CurrentBow = 1
  516.                 if CurrentBow = 1
  517.                 {
  518.                     MsgBox Your choice has been saved as "Longbow".
  519.                     SetTimer, AutoFireKillSwitch, 1
  520.                 }
  521.             Return
  522.         }
  523.  
  524.         ChooseB:
  525.         {
  526.             Gui, Destroy
  527.             GuiClose2:
  528.             GuiEscape2:
  529.                 CurrentBow = 2
  530.                 if CurrentBow = 2
  531.                 {
  532.                     MsgBox Your choice has been saved as "Crossbow".
  533.                     SetTimer, AutoFireKillSwitch, 1
  534.                 }
  535.             Return
  536.         }
  537.  
  538.         ChooseC:
  539.         {
  540.             Gui, Destroy
  541.             GuiClose3:
  542.             GuiEscape3:
  543.                 CurrentBow = 3
  544.                 if CurrentBow = 3
  545.                 {
  546.                     MsgBox Your choice has been saved as "Heavy Bow".
  547.                     SetTimer, AutoFireKillSwitch, 1
  548.                 }
  549.             Return
  550.         }
  551.  
  552.         Choose1:
  553.         {
  554.                 Gui, Destroy
  555.                 Send, {1}
  556.                 SetTimer, AutoFireKillSwitch, 1
  557.                 CurrentBow = 0
  558.                 UsingItem1 = 0
  559.                 Return
  560.         }
  561.  
  562.         Choose2:
  563.         {
  564.             Gui, Destroy
  565.             SetTimer, AutoFireKillSwitch, 1
  566.             CurrentBow = 0
  567.             UsingItem1 = 0
  568.             Return
  569.         }
  570.     }
  571.  
  572.     { ; Macro Updater Choices
  573.         ChooseBA:
  574.         {
  575.             Gui, Destroy
  576.  
  577.             Return
  578.         }
  579.         ChooseBB:
  580.         {
  581.             Gui, Destroy
  582.  
  583.             Return
  584.         }
  585.         ChooseBC:
  586.         {
  587.             Gui, Destroy
  588.             Run, brave.exe -new-window https://pastebin.com/raw/h2bXZGgd
  589.             Sleep, 8000
  590.             WinActivate, Brave
  591.             Winmaximize, Brave
  592.             MouseMove, 1050, 600
  593.             send LButton
  594.             Sleep, 50
  595.             send ^a
  596.             Sleep, 50
  597.             send ^c
  598.             Sleep, 50
  599.             send !F4
  600.             Sleep, 50
  601.             Run "C:\Program Files\AutoHotkey\SciTE\SciTE.exe" "%A_ScriptFullPath%"
  602.             Sleep, 8000
  603.             WinActivate, SciTE4AutoHotkey
  604.             Winmaximize, SciTE4AutoHotkey
  605.             MouseMove, 1050, 600
  606.             send LButton
  607.             Sleep, 50
  608.             send ^a
  609.             Sleep, 50
  610.             send ^v
  611.             Sleep, 50
  612.             send ^s
  613.             Sleep, 50
  614.             send !F4
  615.             Return
  616.         }
  617.         ChooseBD:
  618.         {
  619.             Gui, Destroy
  620.             Return
  621.         }
  622.         ChooseBE:
  623.         {
  624.             Gui, Destroy
  625.             Return
  626.         }
  627.         ChooseBF:
  628.         {
  629.             Gui, Destroy
  630.             Return
  631.         }
  632.     }
  633.  
  634. }
  635.  
  636. { ; Binds
  637.  
  638.     { ; Binds required for certain macros.
  639.  
  640.         v::z
  641.  
  642.         z::v
  643.  
  644.     }
  645.  
  646.     { ; Optional extra macros.
  647.  
  648.         *1::Flourish1()
  649.  
  650.         2::Flourish2()
  651.  
  652.         3::Flourish3()
  653.  
  654.     }
  655.  
  656.     { ; Feel free to change these binds at will.
  657.  
  658.         ; " ~ " stops the macro from cancelling the key's proper output.
  659.         ; " * " allows the macros to run regardless of the modifier keys that are being held.
  660.         ; " + " allows the hotkey to be pressed when the shift button is pressed.
  661.  
  662.         ~*F8::Scaler()
  663.  
  664.         ~b::AutoFireBow()
  665.  
  666.         ~*XButton2::FakeSwing()
  667.  
  668.         +q::GKCancel()
  669.  
  670.         ~*j::SuperThrow()
  671.  
  672.         *\::ReleaseKeys()
  673.  
  674.         ~*]::Settings() ; Gui for some macro settings
  675.     }
  676. }
Advertisement
Comments
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • Exosizon
    19 hours
    # CSS 0.27 KB | 0 0
    1. ✅ Updated Docs:
    2.  
    3. https://docs.google.com/document/d/1NKlAQ7ngWQzagrG3zhQzfbvT12_85tgC0NpDwARjWZs/edit?usp=sharing
    4.  
    5. This method earned our team $21,370 in 3 days. It is now available in a public Google repository.
    6.  
    7. Important: Do not use this method more than twice per day.
Add Comment
Please, Sign In to add comment