mzscript and comdlgls Thread last updated on 2004-05-27 00:56:51

Posted by member 96591 on 2004-05-26 22:40:20

I use this code to install wallpaper from custom file
*Script bang !CustomWall
*script exec !ComDlgFile !varset path %=^@fp^%=
*script exec !execute ["$miscdir$bsetroot\bsetroot.exe" -full "%{path}"
*Script ~bang

but when nothing selected bsetroot.exe show own alert window "cant find "" file". can i skip this line when nothing selected
*script exec !execute ["$miscdir$bsetroot\bsetroot.exe" -full "%{path}"

Posted by member 99 on 2004-05-27 00:56:51 link

*script exec !ComDlgFile "$miscdir$bsetroot\bsetroot.exe" -full "^@fp^"
?

Or maybe:
*script bang !CustomWall
*script exec !varset path ""
*script exec !ComDlgFile !varset path "^@fp^"
*script gotoif ("%{path}" = "") skip
*script exec "$miscdir$bsetroot\bsetroot.exe" -fill "%{path}"
*script label skip
*script ~bang