Advertisement
TheKingElessar

Untitled

Jun 12th, 2019
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ; Lines starting with ; are comments and ignored
  2. #NoEnv
  3. SetWorkingDir %A_ScriptDir%
  4. CoordMode, Mouse, Window
  5. SendMode Input
  6. #SingleInstance Force
  7. SetTitleMatchMode 2
  8. #WinActivateForce
  9. SetControlDelay 1
  10. SetWinDelay 0
  11. SetKeyDelay -1
  12. SetMouseDelay -1
  13. SetBatchLines -1
  14.  
  15. ; F3 can be changed to whatever hotkey you want to activate the below macro once the program is started.
  16. F3::
  17. Macro1:
  18. While True
  19. {
  20.     IfWinExist, D:\Games\Steam\steamapps\common\Skyrim Special Edition\server\Server.exe
  21. ; This path to Server.exe should be changed to wherever it's located on your system.
  22.     {
  23.     }
  24.     Else
  25.     {
  26.         Run, D:\Games\Steam\steamapps\common\Skyrim Special Edition\server\Server.exe, D:\Games\Steam\steamapps\common\Skyrim Special Edition\server\
  27. ; The first path is the path to Server.exe (same as above), the second is the directory it's run in. I've just chosen wherever the file is located.
  28.         WinClose, D:\Games\Steam\steamapps\common\Skyrim Special Edition\server\Server.exe
  29. ; For some reason the program opens Server.exe twice. This will fix that by closing one of them. I don't plan to figure out why it does this, because it doesn't cause any problems!
  30.         Sleep, 333
  31.     }
  32. }
  33. Return
  34.  
  35. ; F8 stops the program.
  36. F8::ExitApp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement