SlimShady Posted November 15, 2005 Posted November 15, 2005 I would like to parse strings that contain AutoIt macros. The following does not work. Does anyone have a solution? $Cmd = '@SystemDrive & "\Directory"' $val = Execute('String(' & $Cmd & ')') MsgBox(64, Default, $val)
BigDod Posted November 15, 2005 Posted November 15, 2005 I would like to parse strings that contain AutoIt macros.The following does not work. Does anyone have a solution?$Cmd = '@SystemDrive & "\Directory"' $val = Execute('String(' & $Cmd & ')') MsgBox(64, Default, $val)Is this what you want$Cmd = "@SystemDrive & '\Directory'" $val = Execute("String(' & $Cmd & ')") MsgBox(64, Default, $val)All I did was change the quotes around. Time you enjoyed wasting is not wasted time ......T.S. Elliot Suspense is worse than disappointment................Robert Burns God help the man who won't help himself, because no-one else will...........My Grandmother
Danny35d Posted November 15, 2005 Posted November 15, 2005 I believe this is what you want$Cmd = '@SystemDir & "\Directory"' $val = Execute('String(' & $Cmd & ')') MsgBox(64, Default, $val)I check the help file I didn't see any macro call @SystemDrive so I change it to @SystemDir and work fine... AutoIt Scripts:NetPrinter - Network Printer UtilityRobocopyGUI - GUI interface for M$ robocopy command line
BigDod Posted November 15, 2005 Posted November 15, 2005 (edited) I believe this is what you want$Cmd = '@SystemDir & "\Directory"' $val = Execute('String(' & $Cmd & ')') MsgBox(64, Default, $val)I check the help file I didn't see any macro call @SystemDrive so I change it to @SystemDir and work fine...Shit I was so hell bent on getting something to appear in the msgbox I missed that. Edited November 15, 2005 by BigDod Time you enjoyed wasting is not wasted time ......T.S. Elliot Suspense is worse than disappointment................Robert Burns God help the man who won't help himself, because no-one else will...........My Grandmother
Valuater Posted November 15, 2005 Posted November 15, 2005 this seems to get the same results $Cmd = '@SystemDir & "\Directory"' $val = Execute(String( $Cmd )) MsgBox(64, Default, $val) ??? 8)
SlimShady Posted November 15, 2005 Author Posted November 15, 2005 This too. $Cmd = '@SystemDir & "\Directory"' $val = Execute($Cmd) MsgBox(64, Default, $val) So it is possible! Thank you all
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now