Jump to content

Recommended Posts

Posted

got another dumb question

msgbox("title", "stuff here with $variable but variables don't display")

whats the syntax for that so it gives the value of $variable?

tyty

  • Moderators
Posted

In short, vars can't be in the string itself that way and still be expected to execute.

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Posted

Expanding variables in strings is an alternative method that can be used when needed.

Opt('ExpandVarStrings', 1)

$variable = "VARIABLE"
MsgBox(0, "title", "stuff here with $variable$ but variables don't display")

:lmao:

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...