MSFN Forum: AutoIt Problem - MSFN Forum

Jump to content



Unattended CD/DVD Guide Homepage · MSFN Forum Rules

Welcome to the Applications Installs forum. Make sure you read the forum rules before you start posting.

Links/Requests to warez and/or any illegal material (porn, cracks, serials, etc..) will not be tolerated. Discussion of circumventing WGA/activation/timebombs/keygens or any other illegal activity will also not be tolerated.

We try our best to keep this forum clean of illegal content. If you see any illegal activity use the "report" button you find in every post to report the specific post to the moderators. If you ignore any of the rules you will be banned without notice.

Read Forum Rules
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

AutoIt Problem How do you include " or | in a Statment Rate Topic: -----

#1 User is offline   zippido 

  • Newbie
  • Group: Members
  • Posts: 14
  • Joined: 02-September 05

Posted 13 September 2005 - 05:37 PM

Hi Guys

Im trying to create a Autoit script to install a program for me.
But I seem to have problem:

One of the windows that it need access to auto-click the next button has a " and a | in it. Therefore when I type the statement
WinWaitActive("Atlantis Ocean Mind 1.5")
ControlClick("Atlantis Ocean Mind 1.5","Add to "Start | Programs" menu","TButton2")

and run the sript I get the Error:
ControlClick("Atlantis Ocean Mind 1.5","Add to "Start | Programs" menu","TButton2")
ControlClick("Atlantis Ocean Mind 1.5","Add to ^ ERROR

Erorr: Unable to parse Line.

How to I fix this Error?


#2 User is offline   MHz 

  • SendToA3X v1.7
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,634
  • Joined: 02-August 04

  Posted 13 September 2005 - 06:31 PM

Look in the Helpfile contents for Language Reference / Datatypes and view the area which references Strings.

Quote

Strings
Strings are enclosed in double-quotes like "this".  If you want a string actually contain a double-quote use it twice like:

    "here is a ""double-quote"" - ok?"

You can also use single-quotes like 'this' and 'here is a ' 'single-quote' ' - ok?'



You can mix quote types to make for easier working and to avoid having to double-up your quotes to get what you want.  For example if you want to use a lot of double-quotes in your strings then you should use single-quotes for declaring them:

    'This "sentence" contains "lots" of "double-quotes" does it not?'

is much simpler than:

    "This ""sentence"" contains ""lots"" of ""double-quotes"" does it not?"

Your error has occured because of the double quotes.

Quote

ControlClick("Atlantis Ocean Mind 1.5","Add to "Start | Programs" menu","TButton2")
Just use single quotes to surround the double quotes or you can double up the double quotes.

Quote

ControlClick("Atlantis Ocean Mind 1.5",'Add to "Start | Programs" menu',"TButton2")


Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy