eyegeegeewhy Posted July 23, 2007 Share Posted July 23, 2007 I always seem to have trouble when I want to run a cmd app that has lots of parameters and use quotes from with autoit (or any other language for that matter). For example I want to run the following convert -density 300 -size 1416x1416 xc:white -fill white -strokewidth 20 -stroke black -draw "circle 708,708 500,40" -strokewidth 5 -draw "roundrectangle 354,930 1062,1250 10,10" -draw "roundrectangle 354,166 1062,300 10,10" -font "Century-Gothic-Bold" -stroke none -pointsize 18 -fill black -draw "text 360,1000 'CD 0001'" -draw "text 360,1100 'Book:235P'" -draw "text 360,1200 'Pages 0023 to 1026'" -draw "text 360,225 'DATE & TIME'" CD_cover.jpg Is there a good rule of thumb (or even better a script) that I can use to make sure i get the quotes in the right place. regards iggy Link to comment Share on other sites More sharing options...
Monamo Posted July 23, 2007 Share Posted July 23, 2007 Just as far as "rule of thumb" is concerned, I always use MsgBox() to verify my quotes placement prior to enabling the Run() command for complicated strings. - MoChr(77)& Chr(97)& Chr(100)& Chr(101)& Chr(32)& Chr(121)& Chr(97)& Chr(32)& Chr(108)& Chr(111)& Chr(111)& Chr(107)-------I've told you 100,000 times not to exaggerate!-------Don't make me hit you with my cigarette hand...-------My scripts:Random Episode Selector, Keyboard MouseMover, CopyPath v2.1, SmartRename for XP,Window Tracer[sup]New![/sup] Link to comment Share on other sites More sharing options...
eyegeegeewhy Posted July 23, 2007 Author Share Posted July 23, 2007 ahh sorted it. Find&replace on the line all " with "" and then just the normal " at the beginning and end of the line. cheers for the msgbox idea Link to comment Share on other sites More sharing options...
Monamo Posted July 23, 2007 Share Posted July 23, 2007 cheers for the msgbox ideaNP, find myself needing to do it all the time. - MoChr(77)& Chr(97)& Chr(100)& Chr(101)& Chr(32)& Chr(121)& Chr(97)& Chr(32)& Chr(108)& Chr(111)& Chr(111)& Chr(107)-------I've told you 100,000 times not to exaggerate!-------Don't make me hit you with my cigarette hand...-------My scripts:Random Episode Selector, Keyboard MouseMover, CopyPath v2.1, SmartRename for XP,Window Tracer[sup]New![/sup] Link to comment Share on other sites More sharing options...
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