load html page

Altair Forum User
Altair Forum User
Altair Employee
edited October 2020 in Community Q&A

Hi,

Can any one help me how to open a html page in HM.

i tried the below way, it is working only when there is an internet explorer opend else not working , how to fix the same.

proc openfil { } {

package require dde

set FilePath [file join [hm_info -appinfo SPECIFIEDPATH hm_scripts_dir] 'help' 'page.html']

catch {dde execute -async iexplore WWW_OpenURL '$FilePath' }

}

openfil

looking forward to your replie....

Answers

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited November 2009

    you are using the dde package (Docu: This command allows an application to send Dynamic Data Exchange (DDE) command when running under Microsoft Windows).

    As I recall every Windows system comes with the ie - where's the problem?

    using a different browser might work by 'exec firefox.exe $FilePath' (replace path to firefox executable ...)

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited November 2009

    Hi,

    Thank you its working

    Regards

    Ramu

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited November 2009

    maybe you want to add the ampersand at the end of the exec statement, so that the browser will not be connected to hm ...

    exec firefox.exe $FilePath &