When I attempt to use these variables in a subsequent Click operation, the second MsgBox output shows the variables have reverted to their as-initialized values.
What am I doing wrong?
TIA,
Tony
Code: Select all
DetectHiddenWindows(true)
SetTitleMatchMode 3
#HotIf WinActive("ahk_exe uedit64.exe", )
CoordMode("Mouse", "Screen")
CoordMode("Pixel", "Screen")
#SingleInstance Force
DetectHiddenText False
DetectHiddenWindows False
Temp_X := 0
Temp_Y := 0
^t::
{
MouseGetPos &Temp_X, &Temp_Y
MsgBox "Temp_X = " Temp_X " " "Temp_Y = " Temp_Y
return
}
t::
{
MsgBox "Temp_X = " Temp_X " " "Temp_Y = " Temp_Y
Click Temp_X, Temp_Y
return
}