CONSOLE OUTPUT FROM TEST PROGRAM Variable "$RunBegDate" becomes undefined in F2 hotkey code F1 reads an object in my application - the F1 code works fine and the variable outputs to console F2 is intended to read other data, and also use the variable "$RunBegDate" created in the "F1 code" BUT, when entering the F2 code, "$RunBegDate" is flagged as undeclared variable My Application is not required to observe this issue - The hot key F1 will read whatever happens to be at the defined coordinates - Below I executed F1 then F2 on a blank desktop >"C:\Program Files (x86)\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /run /prod /ErrorStdOut /in "F:\AutoIt Scripts\UI Data Capture Issue.au3" /UserParams +>07:21:47 Starting AutoIt3Wrapper v.14.801.2025.0 SciTE v.3.4.4.0 Keyboard:00000409 OS:WIN_7/Service Pack 1 CPU:X64 OS:X64 Environment(Language:0409) +> SciTEDir => C:\Program Files (x86)\AutoIt3\SciTE UserDir => C:\Users\Doug\AppData\Local\AutoIt v3\SciTE\AutoIt3Wrapper SCITE_USERHOME => C:\Users\Doug\AppData\Local\AutoIt v3\SciTE >Running AU3Check (3.3.12.0) from:C:\Program Files (x86)\AutoIt3 input:F:\AutoIt Scripts\UI Data Capture Issue.au3 +>07:21:47 AU3Check ended.rc:0 >Running:(3.3.12.0):C:\Program Files (x86)\AutoIt3\autoit3_x64.exe "F:\AutoIt Scripts\UI Data Capture Issue.au3" --> Press Ctrl+Alt+Break to Restart or Ctrl+Break to Stop *******RUN BEGINNING DATE******* = Desktop "F:\AutoIt Scripts\UI Data Capture Issue.au3" (126) : ==> Variable used without being declared.: ConsoleWrite("*******RUN BEGINNING DATE, entering RunEnd code******* = " & $RunBegDate & @CRLF) ConsoleWrite("*******RUN BEGINNING DATE, entering RunEnd code******* = " & ^ ERROR ->07:21:51 AutoIt3.exe ended.rc:1 +>07:21:51 AutoIt3Wrapper Finished. >Exit code: 1 Time: 4.527