Sign in to follow this  
Followers 0
johanneshahn

Problems with quotation marks in window name

5 posts in this topic

Hi. I have a little problem. I have a part in my script called:

controlclick("This is only an "Example Windows" and so on", "OK", "Button2")

The problem with this is that there are extra quotation marks in the title of the window. AutoIT 3 now thinks, that this is a new command. What shall I do???

Thanks for help.

Regards, Johannes.

Share this post


Link to post
Share on other sites



Try this :

controlclick('"This is only an "Example Windows" and so on"', "OK", "Button2")

Note the use of : '

Share this post


Link to post
Share on other sites

Opt("WinTitleMatchMode", 1)    ;1=start, 2=subStr, 3=exact, 4=...
You could use 2 for this option, so you just need part of the title.

Or leave it as standard and insert the part of the title up to the quotes.

Share this post


Link to post
Share on other sites

Opt("WinTitleMatchMode", 1)    ;1=start, 2=subStr, 3=exact, 4=...
You could use 2 for this option, so you just need part of the title.

Or leave it as standard and insert the part of the title up to the quotes.

<{POST_SNAPBACK}>

That`s a terrible workaround, which in many situations wouldn`t even work.. :idiot:

Share this post


Link to post
Share on other sites

Try this :

controlclick('"This is only an "Example Windows" and so on"', "OK", "Button2")

Note the use of : '

<{POST_SNAPBACK}>

Thx man, this worked :D!!!. I thought of something like this and added the ' to the beginning of "Example Window" so it couldn't work, but thanks!!! Very pursuable!!!

That's it,

:delete please :idiot:

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  
Followers 0