Archive: messagebox with /sd option throws error


messagebox with /sd option throws error
Hi all,

I’ve read the documentation and looked at a few examples in this forum and in the docs.
I'm trying to use the /SD option with MessageBox, but the script doesn't compile. I believe syntax is correct, but it'll be great if you can point anything wrong with it:

MessageBox MB_ICONQUESTION|MB_YESNO|MB_DEFBUTTON2 "My text goes here." /SD IDYES +2

The compiler throws an error on this line each time when I compile, but if i take out the /SD switch, the script compiles fine. What could be wrong? Does anything else needs to be set in the script prior to using the /SD switch?


You're missing one IDYES. There should be on for /SD and one for the jump.


thanks that helped. It was using only 1 IDYES