You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
72 lines
1.7 KiB
Plaintext
72 lines
1.7 KiB
Plaintext
;---ENVIRONMENT---------------------------------------------------------------------
|
|
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
|
|
;#Warn ; Enable warnings to assist with detecting common errors.
|
|
;DetectHiddenWindows, On
|
|
#SingleInstance, Force
|
|
DetectHiddenWindows, ON
|
|
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
|
|
; Menu, Tray, Icon, RMScriptManager.ico
|
|
|
|
;---Notes/Extra Info/#Includes------------------------------------------------------
|
|
|
|
|
|
;---VARIABLES-----------------------------------------------------------------------
|
|
|
|
;---MAIN SCRIPT---------------------------------------------------------------------
|
|
|
|
AHKFilepath = %A_ScriptDir%\Chromedriver-Mover.ahk
|
|
Exefilepath = %A_ScriptDir%\Chromedriver-Mover.exe
|
|
icopath = %A_ScriptDir%\Chromedriver-Mover.ico
|
|
|
|
|
|
|
|
; Kill any active intances of the uploaders so the .exe file can be overwriten by the compilation
|
|
process, close, Chromedriver-Mover.exe
|
|
|
|
sleep, 1000
|
|
|
|
; Delete the .exe file so it can be repalced
|
|
if(FileExist(Exefilepath)){
|
|
FileDelete, %Exefilepath%
|
|
if(ErrorLevel){
|
|
msgbox, failed to delete Exe file. Please delete manually and re-run the compiler.
|
|
ExitApp
|
|
}
|
|
}
|
|
|
|
|
|
if(!FileExist(AHKFilepath)){
|
|
msgbox, %AHKFilepath% does not exist`nExiting
|
|
ExitApp
|
|
}
|
|
|
|
|
|
if(!FileExist(icopath)){
|
|
msgbox, %icopath% does not exist`nExiting
|
|
ExitApp
|
|
}
|
|
|
|
|
|
run, %comspec% /c ""C:\Program Files\AutoHotkey\Compiler\Ahk2Exe.exe" /in "%AHKFilepath%" /out "%exefilepath%" /icon "%icopath%""
|
|
|
|
ExitApp
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;---FUNCTIONS-----------------------------------------------------------------------
|