Jump to content

Problems with quotation marks in window name


Recommended Posts

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.

Link to comment
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:
Link to comment
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:

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...