Dec
3
So, I was learning a scripting language awhile back to help automate and secure some things with our public computers. The scripting language is for use with an application called "AutoIT", which is, well, both a compiler and run-time for the scripts themselves.
I needed to detect if an application window was present on the screen, and if it was, take appropriate action. So, looking at the following code documentation:
I wanted to make sure that things were working as they should, so my test for this was as follows:
The problem, which I was unaware of, is that I apparently can't make the test (value) comparison in the manner that I did. The proper way to use this method was as follows:
What a bummer.
I needed to detect if an application window was present on the screen, and if it was, take appropriate action. So, looking at the following code documentation:
WinExists
--------------------------------------------------------------------------------
Checks to see if a specified window exists.
WinExists ( "title" [, "text"] )
I wanted to make sure that things were working as they should, so my test for this was as follows:
The problem, which I was unaware of, is that I apparently can't make the test (value) comparison in the manner that I did. The proper way to use this method was as follows:
What a bummer.




