RE: dialog boxes
I tried this code, but i always get 'ret = 1'...
WriteDWORD(84, 0); // FlagsEx
} with OpenFileName
I had to remove the with OpenFileName at the end. Otherwise my script wouldn't even start...
Now, can anyone tell me if there's an error on this page?
And if this should work, how do i obtain the path to the file when i click open in the dialog box?
[EDIT]
Never mind i found it:
ret = 0 => Cancel is clicked
ret = 1 => Open is clicked
var file = s_file.ReadString(0) => the full path to the chosen file
[/EDIT]
This post was edited on 09-13-2006 at 08:09 PM by DeBiese.
|