Jump to content
Sign in to follow this  

UI Automation variable becomes "undeclared" within a different function

Recommended Posts


I've been using UI Automation for awhile now with success, but have an "undeclared variable error" that has been showing up that I cannot determine the cause of.  I've reduced a script down to just the code that illustrates the issue - Attached.  This script only has functions, for function keys F1 and F2.  F1 reads a value at a screen coordinate and assigns it to a variable.  Then, F2 code is supposed to be able to use the value of this variable - but in the F2 code, it fails to write to the console with an "undeclared variable" error.  Also attached, is a notepad file with the output to the console when I run F1 followed by F2 with a blank (desktop) main display.  I think it can be run with anything in the main display, and will still illustrate the issue.

Any help/direction on this will be appreciated, I've been battling this issue for several days and cannot isolate the cause.






UI Data Capture Issue.au3

Undeclared Variable Issue Console Output.txt

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...