(command-s "browser" htmlfile) from modal dialog

Started by Peter2, July 17, 2018, 12:42:44 AM

Previous topic - Next topic

Peter2

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
Peter
ODCL 8.1.... German, AutoCAD 2017 - 2018, Win 7 x64, Win 10

owenwengerd

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.
Owen Wengerd (Outside The Box) / ManuSoft

Peter2

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.
Peter
ODCL 8.1.... German, AutoCAD 2017 - 2018, Win 7 x64, Win 10

Fred Tomke

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
Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]

Peter2

But for "startapp" I need a defined / known browser-path and name. That's a problem for common use.
Peter
ODCL 8.1.... German, AutoCAD 2017 - 2018, Win 7 x64, Win 10


Peter2

Peter
ODCL 8.1.... German, AutoCAD 2017 - 2018, Win 7 x64, Win 10