Author Topic: (command-s "browser" htmlfile) from modal dialog  (Read 755 times)

Peter2

  • Sr. Member
  • ****
  • Posts: 467
(command-s "browser" htmlfile) from modal dialog
« on: July 17, 2018, 12:42:44 AM »
In a modal dialog I have a click-event which should call the browser:

Code: [Select]
(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

  • Administrator
  • Hero Member
  • *****
  • Posts: 2983
    • Outside The Box
Re: (command-s "browser" htmlfile) from modal dialog
« Reply #1 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.

Peter2

  • Sr. Member
  • ****
  • Posts: 467
Re: (command-s "browser" htmlfile) from modal dialog
« Reply #2 on: July 18, 2018, 06:13:33 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

  • OpenDCL Technician
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2050
  • [ Mr. Bad Guy ]
    • Kommunale Entwicklungsplanung auf digitaler Basis - digital landscape and urban design
Re: (command-s "browser" htmlfile) from modal dialog
« Reply #3 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
Fred Tomke
Dipl.-Ing. (FH) Landespflege

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

Peter2

  • Sr. Member
  • ****
  • Posts: 467
Re: (command-s "browser" htmlfile) from modal dialog
« Reply #4 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.
Peter
ODCL 8.1.... German, AutoCAD 2017 - 2018, Win 7 x64, Win 10

roy_043

  • Sr. Member
  • ****
  • Posts: 349

Peter2

  • Sr. Member
  • ****
  • Posts: 467
Re: (command-s "browser" htmlfile) from modal dialog
« Reply #6 on: July 30, 2018, 08:51:20 AM »
Thanks, roy_043
Peter
ODCL 8.1.... German, AutoCAD 2017 - 2018, Win 7 x64, Win 10