Jump to content

Recommended Posts

Posted

You have for example the string "'Mary' had a little "lamb", its nose 'was' "red" and 'white'"

Would it matter to your script if it were ""Mary" had a little "lamb", its nose "was" "red" and "white""

?

Yes, it would. Thanks for clarifying. :blink:
Posted (edited)

I'm a bit confused...

You just want a way to manually construct one of these peculiar strings, hardcoded into your source, and assign it to a variable??

$q = Chr(34)
$string = "My 'nick' on 'AutoIt' is " & $q & $q & " " & $q & "Spiff59" & $q
MsgBox(1,"",$string)

typo

Edited by Spiff59
Posted

Ok, can you clear something up, if it is changing so often, them why do you have it hard coded into the script?

Shirley it would make more sense to have it read in from a file. If you distrabuting your script you could use fileinstall or even add it as a resource.

AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

Posted

Just put the text into a text file and do a simple FileRead. You say it will be used on multiple PCs, so just include the text file when you compile it.

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
×
×
  • Create New...