I found one of applications which I use to inlude quotation mark(" ") in its title, which is used to indicate 'Characters' not numbers.. --------------------------------------------------------------------------- acFindWindowByTitleRegex("Virtual Network Adapter "VPN" Status").............. --------------------------------------------------------------------------- or ----------------------------------------------------------------------------- if iTitle=="Virtual Network Adapter "VPN" Status" then.................. -----------------------------------------------------------------------------
Would it be possible to detect window title like that? Using other parameters is not possible...
if iTitle=="Virtual Network Adapter \"VPN\" Status" then
Do a Google search for "lua string escape sequences" for the list of other special characters which need to be escaped.
I'm on my phone, so I can't test, but that should work. The function which uses Regex is more complicated, but uses regular expressions, which you can Google for lots of info regarding usage.