58 lines
1.0 KiB
AutoHotkey
58 lines
1.0 KiB
AutoHotkey
|
; ENVIRONMENT
|
||
|
;------------------------------------------------
|
||
|
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
|
||
|
;#Warn ; Enable warnings to assist with detecting common errors.
|
||
|
;DetectHiddenWindows, On
|
||
|
#SingleInstance, Force
|
||
|
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
|
||
|
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
|
||
|
;SetKeyDelay, 500
|
||
|
CoordMode, ToolTip, Screen
|
||
|
CoordMode, Mouse, Screen
|
||
|
;#NoTrayIcon
|
||
|
|
||
|
; Notes/Extra Info/#Includes
|
||
|
;------------------------------------------------
|
||
|
Menu, Tray, Icon, %A_ScriptDir%\Assets\Git.ico
|
||
|
|
||
|
|
||
|
|
||
|
; VARIABLES
|
||
|
;------------------------------------------------
|
||
|
|
||
|
|
||
|
|
||
|
; MAIN SCRIPT
|
||
|
;------------------------------------------------
|
||
|
process, close,Whisper-AHK.exe
|
||
|
|
||
|
|
||
|
status := RunCMD("git pull")
|
||
|
|
||
|
MsgBox 0x0, Git Pull Result, %status%
|
||
|
|
||
|
run, %A_ScriptDir%\Whisper-AHK.exe
|
||
|
|
||
|
|
||
|
|
||
|
ExitApp
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
; Functions
|
||
|
;------------------------------------------------
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
; Misc
|
||
|
;------------------------------------------------
|
||
|
; Escape::ExitApp
|