StrokesPlus Forum
                       
StrokesPlus Forum
Home | Profile | Register | Active Topics
Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Lua Scripts
 General Action Scripts
 TitleName which includes quotation mark in it.
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

tia34531

18 Posts

Posted - 12/04/2013 :  13:42:21  Show Profile  Reply with Quote
Hi....

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...

Edited by - tia34531 on 12/04/2013 13:45:02

Rob

USA
2537 Posts

Posted - 12/04/2013 :  13:48:32  Show Profile  Visit Rob's Homepage  Reply with Quote
You have to escape quotes:

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.
Go to Top of Page

tia34531

18 Posts

Posted - 12/04/2013 :  13:56:56  Show Profile  Reply with Quote
Thank you for your fast reply and 'search key word'.!
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
StrokesPlus Forum © 2011-2018 Rob Yapchanyk Go To Top Of Page
Snitz Forums 2000