This App is No Longer Maintained. Visit the Replacement at StrokesPlus.net

StrokesPlus Forum
                       
StrokesPlus Forum
Home | Profile | 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.
 Forum Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

tia34531

18 Posts

Posted - 12/04/2013 :  13:42:21  Show Profile
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
2615 Posts

Posted - 12/04/2013 :  13:48:32  Show Profile  Visit Rob's Homepage
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
Thank you for your fast reply and 'search key word'.!
Go to Top of Page
  Previous Topic Topic Next Topic  
 Forum Locked
 Printer Friendly
Jump To:
StrokesPlus Forum © 2011-2018 Rob Yapchanyk Go To Top Of Page
Snitz Forums 2000