Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; Lines starting with ; are comments and ignored
- #NoEnv
- SetWorkingDir %A_ScriptDir%
- CoordMode, Mouse, Window
- SendMode Input
- #SingleInstance Force
- SetTitleMatchMode 2
- #WinActivateForce
- SetControlDelay 1
- SetWinDelay 0
- SetKeyDelay -1
- SetMouseDelay -1
- SetBatchLines -1
- ; F3 can be changed to whatever hotkey you want to activate the below macro once the program is started.
- F3::
- Macro1:
- While True
- {
- IfWinExist, D:\Games\Steam\steamapps\common\Skyrim Special Edition\server\Server.exe
- ; This path to Server.exe should be changed to wherever it's located on your system.
- {
- }
- Else
- {
- Run, D:\Games\Steam\steamapps\common\Skyrim Special Edition\server\Server.exe, D:\Games\Steam\steamapps\common\Skyrim Special Edition\server\
- ; 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.
- WinClose, D:\Games\Steam\steamapps\common\Skyrim Special Edition\server\Server.exe
- ; 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!
- Sleep, 333
- }
- }
- Return
- ; F8 stops the program.
- F8::ExitApp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement