Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;Macro to make demolition work easier in Satisfactory
- ;By Arc
- ;Instructions:- -Install AutoIt from https://www.autoitscript.com/site/autoit/downloads/
- ; -Paste this script into a new script file and run it
- ; -Go to the large ammounts of buildings in Satisfactory that you wish to get rid of
- ; -Press F to bring up the demolish tool
- ; -Now press G (can be changed in the script) this will start mouse clicking and gives you a little time to move your cross hair over the next structure
- ; -To stop demolition press G again
- ; -To start again press G
- ; -To exit the script press H
- ; -To re-run the script right click it in windows and click "Run Script"
- ; DISCLAIMER THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESSED OR IMPLIED WARRANTIES,
- ; INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- ; FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS
- ; BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- ; DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- ; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- ; HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- ; OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- ; SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- #include<misc.au3>
- #include <AutoItConstants.au3>
- Global $g_bPaused = True
- HotKeySet("{g}", "Toggle")
- HotKeySet("{h}", "Terminate")
- While 1
- WEnd
- Func Toggle()
- $g_bPaused = Not $g_bPaused
- If $g_bPaused Then
- MouseUp($MOUSE_CLICK_LEFT) ; Set the left mouse button state as up.
- EndIf
- While $g_bPaused
- Sleep(100)
- ;ToolTip('Script is "Paused"', 0, 0)
- WEnd
- ;ToolTip("")
- While $g_bPaused = False
- MouseDown($MOUSE_CLICK_LEFT) ; Set the left mouse button state as down.
- Sleep(1000)
- MouseUp($MOUSE_CLICK_LEFT) ; Set the left mouse button state as up.
- Sleep(250)
- WEnd
- EndFunc ;==>Toggle
- Func Terminate()
- MouseUp($MOUSE_CLICK_LEFT) ; Set the left mouse button state as up.
- Exit
- EndFunc ;==>Terminate
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement