Notifications
Clear all
[Closed] Autostart a html page
Jun 02, 2005 8:09 am
I wonder if it’s possible to start a explorer session/html page from max?
I have auto-generated a html page with max and now I want it to auto-open in explorer so – the user of the script can view and print the html document from explorer. Is this possible?
4 Replies
1 Reply
If your page’s URL is in the variable
myPage = “c:/temp/myPage.html”
you just have to call
shalllaunch myPage “”
and the document will open in the currently registered default Windows Web browser.
If you want to bypass the Windows default and launch a specific browser, you could say
shellLaunch “explorer.exe” myPage
Jun 02, 2005 8:09 am
the MXS help contains an active X internet explorer script –
[left]
[/left]
[left]rollout rWebpage "Web page"
[/left]
[left](
[/left]
[left]local txtObj
[/left]
[left]local vpsz = getViewSize()
[/left]
[left]activeXControl ax "http://www.yahoo.com" height:(vpsz.y-50) width:(vpsz.x-50) align:#center
[/left]
[left]
[/left]
[left]fn checkTextObject =
[/left]
[left](
[/left]
[left]if $text01 == undefined then
[/left]
[left](
[/left]
[left]txtObj = text text:"" name:"text01"
[/left]
[left]addModifier txtObj (extrude amount:10)
[/left]
[left]txtObj.wirecolor = red
[/left]
[left])
[/left]
[left]else ( txtObj = $text01 )
[/left]
[left])
[/left]
[left]on rWebpage open do ( checkTextObject() )
[/left]
[left]on ax TitleChange txt do
[/left]
[left](
[/left]
[left]checkTextObject()
[/left]
[left]if not (matchPattern txt pattern:"http:") then
[/left]
[left](
[/left]
[left]if txtObj.text != text then
[/left]
[left](
[/left]
[left]print txt
[/left]
[left]txtObj.text = txt
[/left]
[left]max tool zoomextents all
[/left]
[left])
[/left]
[left])
[/left]
[left])
[/left]
[left])
[/left]
[left]fWebPage = newRolloutFloater "Web page" rWebpage.vpsz.x rWebpage.vpsz.y
[/left]
[left]addRollout rWebPage fWebPage
[/left]
[left]
[/left]
[left]registerViewWindow fWebPage
[/left]
[left]showProperties rWebpage.ax
[/left]
search for internet explorer in the help and you’ll find it!
[left]
[/left]