I have a small but very ennoying issue, just starting to play with AutoHotkey
already spent severals hours to find out why
in the tiny test code below, the 1st msgbox says "YES" but the 2nd (with %var%) says "NOT"
why??
what is the solution to pass as parameter the filename ?
thanks for any input !
Code: Select all
#y::
var=mydoc.txt
if FileExist("c:\mydoc.txt")
MsgBox, YES_exists
else MsgBox, ...NOT_exists
if FileExist("c:\%var%")
MsgBox, YES_exists
else MsgBox, ...NOT_exists
return