Posted: Thu Jul 24, 2014 1:21 am Post subject: Possible Bug in CEOpenDialog CE 6.4
OK I've read a bunch of the posts regarding the failure of using the shellExecute command to launch a file selected using OpenDialog. Here's what's happening to me.
First, this is my simple code.
function CEButton20Click(sender)
filetolaunch=openDialog_execute(MaddenScripts_CEOpenDialog1)
print(filetolaunch) --for debugging
shellExecute(filetolaunch)
end
This code will work if I select the file I want to launch from the Dialog box, but ONLY if I click the cancel button or exit the dialog box. If I do that the program will launch.
If I click the Open button after selecting my file the code fails.
I added the print command to see what filetolaunch was returning from the OpenDialog. As it turns out, when the Open button is clicked nothing is returned to filetolaunch. Is this a bug and is there anything I can do about it to get my launch button to work correctly?
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum