Warning: this variable has not been assigned a value
specifically: CabinetWClass (a global variable)
what am I doing wrong?
Code: Select all
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
#Warn ; Enable warnings to assist with detecting common errors.
;SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
;SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
#singleinstance, force
SetTitleMatchMode, 2
if winexist(ahk_class CabinetWClass, "Work Orders")
{
winclose
}
else
{
run, "\\CCDTAFSW3P\DothanUtilities\ELECTRIC\JAMES CURTIS\Work Orders"
}
ExitApp
^#x::
ExitApp