Advertisement
Arc_11

Satisfactory Demolition Macro Written in AutoIt

Jul 12th, 2019
568
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 2.18 KB | None | 0 0
  1. ;Macro to make demolition work easier in Satisfactory
  2. ;By Arc
  3.  
  4. ;Instructions:-  -Install AutoIt from https://www.autoitscript.com/site/autoit/downloads/
  5. ;                -Paste this script into a new script file and run it
  6. ;                -Go to the large ammounts of buildings in Satisfactory that you wish to get rid of
  7. ;                -Press F to bring up the demolish tool
  8. ;                -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
  9. ;                -To stop demolition press G again
  10. ;                -To start again press G
  11. ;                -To exit the script press H
  12. ;                -To re-run the script right click it in windows and click "Run Script"
  13.  
  14. ;  DISCLAIMER THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESSED OR IMPLIED WARRANTIES,
  15. ;  INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
  16. ;  FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS
  17. ;  BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  18. ;  DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
  19. ;  LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  20. ;  HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  21. ;  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  22. ;  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  23.  
  24. #include<misc.au3>
  25. #include <AutoItConstants.au3>
  26. Global $g_bPaused = True
  27. HotKeySet("{g}", "Toggle")
  28. HotKeySet("{h}", "Terminate")
  29.  
  30. While 1
  31. WEnd
  32.  
  33. Func Toggle()
  34. $g_bPaused = Not $g_bPaused
  35.     If $g_bPaused Then
  36.         MouseUp($MOUSE_CLICK_LEFT) ; Set the left mouse button state as up.
  37.     EndIf
  38.     While $g_bPaused  
  39.         Sleep(100)
  40.         ;ToolTip('Script is "Paused"', 0, 0)
  41.     WEnd
  42.     ;ToolTip("")
  43.     While $g_bPaused = False
  44.         MouseDown($MOUSE_CLICK_LEFT) ; Set the left mouse button state as down.
  45.         Sleep(1000)
  46.         MouseUp($MOUSE_CLICK_LEFT) ; Set the left mouse button state as up.
  47.         Sleep(250)
  48.     WEnd       
  49. EndFunc   ;==>Toggle
  50.  
  51. Func Terminate()
  52.     MouseUp($MOUSE_CLICK_LEFT) ; Set the left mouse button state as up.
  53.     Exit
  54. EndFunc   ;==>Terminate
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement