Skip to content

Commit

Permalink
Uploaded v0.9.6
Browse files Browse the repository at this point in the history
  • Loading branch information
zspz committed Sep 30, 2023
1 parent 4e5c009 commit 92c257d
Show file tree
Hide file tree
Showing 33 changed files with 1,809 additions and 2,177 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/discord-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
on:
release:
types: [published]

jobs:
release-to-discord:
runs-on: ubuntu-latest
steps:
- name: send-discord-webhook
id: discord
uses: NatroTeam/[email protected]
with:
webhook_url: ${{secrets.WEBHOOK_URL}}
Binary file added NATRO_MACRO.exe
Binary file not shown.
763 changes: 0 additions & 763 deletions Natro Macro Patch Notes.txt

This file was deleted.

83 changes: 83 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
<!--
Thanks for downloading Natro Macro!
To run the macro, just extract the folder and open 'NATRO_MACRO.exe'!
If you need help or just want to discuss, join our Discord at .gg/natromacro!
IMPORTANT: Make sure you are only downloading from an official source!
The only official sources are our GitHub page (https://github.com/NatroTeam/NatroMacro)
and our Discord server (https://discord.gg/natromacro)
>>> IGNORE BELOW THIS LINE <<<
-->

<div align="center">

<!-- logo banner -->
<picture>
<source width="200px" media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/NatroTeam/.github/main/profile/assets/banners/natro-logo-dark.svg"> <!-- dark theme (white text) -->
<img src="https://raw.githubusercontent.com/NatroTeam/.github/main/profile/assets/banners/natro-logo-light.svg"> <!-- light theme (black text) -->
</picture>
<br>

<!-- shields -->
[![][github-release-shield]][github-release-link]
[![][discord-shield]][discord-link]
[![][roblox-shield]][roblox-link]
<br>
An open-source Bee Swarm Simulator macro written in AutoHotkey!

</div>


## ⚙️ Installation

1. Download the latest version from [here][latest-release-link]
2. Right click Natro_Macro_vX.X.X.zip and click 'Extract All...'
3. Open the extracted folder and run 'NATRO_MACRO.exe'


## 🫂 Community

__Join our official [Discord server][discord-link]!__ This is where you can connect with the community, get immediate pings for macro updates, and download custom patterns, paths, and themes.

If Natro Macro helped you, let us know by giving it a ⭐ $\color{yellow}{\textsf{Star}}$ on GitHub!

<a href="https://github.com/NatroTeam/NatroMacro/stargazers">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://reporoster.com/stars/dark/NatroTeam/NatroMacro"> <!-- dark theme -->
<img src="https://reporoster.com/stars/NatroTeam/NatroMacro"> <!-- light theme -->
</picture>
</a>


## ⌨️ Contributing

Natro Macro is an open-source project. We greatly appreciate all contributions, whether you are helping us fix bugs or suggesting new features. If you want to get started, give our [Contributing Guidelines][contributing-link] a read.

- Bugs: If you find an issue or run into an error message while using the macro, please create a [bug report][bug-report-link].
- Suggestions: If you have an idea for a feature that you'd like to see in the macro, please submit a [suggestion][suggestion-link].

For discussion, please join us on our [Discord server][discord-link] instead.


<details><summary><h4>📝 License</h4></summary>

Copyright © 2022-2023 [Natro Team][github-profile-link]<br>
This project is licensed under [GNU GPL v3.0](./LICENSE.md)

</details>

<!-- links -->
[github-release-shield]: https://img.shields.io/github/v/release/NatroTeam/NatroMacro?style=flat-square&logo=github&logoColor=white&labelColor=black&color=2674DA
[github-release-link]: https://github.com/NatroTeam/NatroMacro/releases
[roblox-shield]: https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fgroups.roblox.com%2Fv1%2Fgroups%2F16490149&query=%24.memberCount&suffix=%20members&style=flat-square&logo=roblox&logoColor=white&label=roblox&labelColor=black&color=EC2F2D
[roblox-link]: https://www.roblox.com/groups/16490149/Natro-Macro
[discord-shield]: https://img.shields.io/discord/1012610056921038868?style=flat-square&logo=discord&logoColor=white&label=discord&labelColor=black&color=5865F2
[discord-link]: https://discord.gg/natromacro
[latest-release-link]: https://github.com/NatroTeam/NatroMacro/releases/latest
[contributing-link]: https://github.com/NatroTeam/.github/blob/main/CONTRIBUTING.md
[bug-report-link]: https://github.com/NatroTeam/NatroMacro/issues/new?assignees=&labels=bug%2Cneeds+triage&projects=&template=bug.yml
[suggestion-link]: https://github.com/NatroTeam/NatroMacro/issues/new?assignees=&labels=suggestion%2Cneeds+triage&projects=&template=suggestion.yml
[github-profile-link]: http://github.com/NatroTeam
1,060 changes: 685 additions & 375 deletions lib/Gdip_All.ahk

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions lib/HyperSleep.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
{
static freq, init := DllCall("QueryPerformanceFrequency", "Int64*", freq)
DllCall("QueryPerformanceCounter", "Int64*", begin)
finish := begin + ms * freq / 1000
while (current < finish)
{
if ((finish - current) > 30000)
finish := begin + ms * freq / 1000
while (current < finish)
{
if ((finish - current) > 30000)
{
DllCall("Winmm.dll\timeBeginPeriod", UInt, 1)
DllCall("Sleep", "UInt", 1)
DllCall("Sleep", "UInt", 1)
DllCall("Winmm.dll\timeEndPeriod", UInt, 1)
}
DllCall("QueryPerformanceCounter", "Int64*", current)
}
}
}
15 changes: 14 additions & 1 deletion lib/Walk.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ DetectMovespeed(ByRef s, ByRef f, hasteCap:=0)
global hasty_guard, gifted_hasty, base_movespeed, buff_characters, bitmaps

; check roblox window exists
WinGetClientPos(_x, _y, _w, _h, "Roblox ahk_exe RobloxPlayerBeta.exe")
WinGetClientPos(_x, _y, _w, _h, "ahk_id " GetRobloxHWND())
if (_w = 0)
return (10000000, DllCall("QueryPerformanceCounter", "Int64*", f)) ; large number to break walk loop

Expand Down Expand Up @@ -128,4 +128,17 @@ WinGetClientPos(ByRef X:="", ByRef Y:="", ByRef Width:="", ByRef Height:="", Win
DllCall("ClientToScreen", "UPtr",hWnd, "Ptr",&RECT)
X := NumGet(&RECT, 0, "Int"), Y := NumGet(&RECT, 4, "Int")
Width := NumGet(&RECT, 8, "Int"), Height := NumGet(&RECT, 12, "Int")
}

GetRobloxHWND()
{
if (hwnd := WinExist("Roblox ahk_exe RobloxPlayerBeta.exe"))
return hwnd
else if (WinExist("Roblox ahk_exe ApplicationFrameHost.exe"))
{
ControlGet, hwnd, Hwnd, , ApplicationFrameInputSinkWindow1
return hwnd
}
else
return 0
}
Loading

0 comments on commit 92c257d

Please sign in to comment.