OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: Peter2 on July 17, 2018, 12:42:44 AM

Title: (command-s "browser" htmlfile) from modal dialog
Post by: Peter2 on July 17, 2018, 12:42:44 AM
In a modal dialog I have a click-event which should call the browser:

(command-s "browser" "c:\\test\\myfile.html")

The code for itself does what it should, but invoked from the dialogue nothing happens: no error, no result, no message,..

What's wrong?

Thanks

Peter
Title: Re: (command-s "browser" htmlfile) from modal dialog
Post by: owenwengerd on July 17, 2018, 05:55:56 AM
Commands cannot run while a modal dialog is active. You would need to first close the dialog. Alternatively, find a way to open the browser directly without using a command.
Title: Re: (command-s "browser" htmlfile) from modal dialog
Post by: Peter2 on July 18, 2018, 06:13:33 AM
Quote from: owenwengerd on July 17, 2018, 05:55:56 AM
Commands cannot run while a modal dialog is active. You would need to first close the dialog. ...
:-[  :-[ oops - used to many modeless dialogues in the last time. Thank you.
Title: Re: (command-s "browser" htmlfile) from modal dialog
Post by: Fred Tomke on July 27, 2018, 12:31:46 PM
Hi, Peter, I prefer to use either wscript.shell or (startapp "C:\\Program Files (x86)\\Mozilla Firefox\\firefox.exe" "D:\\Projekte\\SBO\\Bereitschaft\\PDF\\index.html"). Fred
Title: Re: (command-s "browser" htmlfile) from modal dialog
Post by: Peter2 on July 30, 2018, 12:37:41 AM
But for "startapp" I need a defined / known browser-path and name. That's a problem for common use.
Title: Re: (command-s "browser" htmlfile) from modal dialog
Post by: roy_043 on July 30, 2018, 12:51:17 AM
Maybe this?:
https://www.theswamp.org/index.php?topic=44768.msg499952#msg499952
Title: Re: (command-s "browser" htmlfile) from modal dialog
Post by: Peter2 on July 30, 2018, 08:51:20 AM
Thanks, roy_043