NeverGiveUp 0 Posted November 10, 2010 (edited) $Variable = Example (MsgBox,16,$Var1,$Var2) Data extracted from resource is stored in $Variable Main Script Example: Func Test($Var1,$Var2) $Variable EndFunc This does not work... The variable is a string so how can make the string the actual code instead? Edited November 10, 2010 by NeverGiveUp Share this post Link to post Share on other sites
SublimePorte 0 Posted November 10, 2010 I don't think it's very clear what you want to do.. The code you've posted doesn't make sense, and certainly isn't runnable. Like to try and clarify a bit more? Share this post Link to post Share on other sites
Malkey 231 Posted November 10, 2010 Maybe something like this. Global $Variable = "MsgBox(16,$Var1,$Var2)" Local $sStr1 = "Test Example", $sStr2 = "Press OK to finish test." Test($sStr1, $sStr2) Func Test($Var1, $Var2) Execute($Variable) EndFunc ;==>Test Share this post Link to post Share on other sites