1
I have been making alot of random scripts lately, none of which are really useful for anything but they help me to understand various things and I use them for reference quite often... anyways, one of the outline button options for one of my scripts is a popup msgbox generator that generates a code that I can just copy and paste (there are alot of message boxes in the script)
but I am having trouble with the variable being displayed in the input '$codebox':
$code = "MsgBox(0, $title, $message)"
GUICtrlSetData($codebox, $code)
this displays:
"MsgBox(0, $title, $message)"
rather than the data stored inside the variable.
Can I contain a variable inside a variable like this? I am not really sure how else to so this.. Does anybody have a possible workaround I could take a look at? I have searched around but I came up empty.
ps: the updated script can be found here
1Tried without the " " around the MsgBox ? (sorry I haven't tested it just a quick glance over the code) I believe the " " makes $code think it is just a string rather than a code. – Darius – 2013-10-06T03:22:24.710
Nice, this got past the error, but doing this brings the message box up and returns a 1 to the codebox.. ? – ICE – 2013-10-06T03:30:28.410
1
I'm still learning about AutoIT script as well, but I do notice MsgBox returns a value after a successful / failed run, hence why the return code http://www.autoitscript.com/autoit3/docs/functions/MsgBox.htm
– Darius – 2013-10-06T07:58:55.377