Today I define:
Code: Select all
ThisLogfile := "C:\Users\dir\Documents\Script.Test Automation." A_Now ".log"
Code: Select all
ThisLogfile := "%A_WorkingDir%\Script.Test Automation." A_Now ".log"
Code: Select all
ThisLogfile := "A_WorkingDir\Script.Test Automation." A_Now ".log"
The same goes for pics location:
Code: Select all
ImageSearch, FoundX, FoundY, 1200, 1, 1610, 200, C:\Users\dir\Pics\PIC_A.png
Code: Select all
ImageSearch, FoundX, FoundY, 1200, 1, 1610, 200, A_WorkingDir\Pics\PIC_A.png
A_AhkPath? A_ScriptDir? A_ScriptFullPath?
Haven't been able to make this work