Notifications
Clear all
[Closed] How to open .chm file to specific page?
Jan 25, 2011 11:44 am
Hi!
I try to open chm file to a specific page, but with no success. shelllaunch allows me to do this, but only with IE, Firefox, Opera etc, but I just want to press a button to open Microsoft HTML Help application with specified help item highlighted and its content displayed.
On video below I showed how 3dsMax does this - when the caret is near the name of a control and I press F1 maxscript reference opens the page of the selected control.
http://www.youtube.com/watch?v=okurubV53lY
Can I do this with maxscript or not?
I searched the web for а solutions and found only this:
public static void ShowHelpByKeyword(Control sourceControl, string helpFile, string parameter) {
Help.ShowHelp(sourceControl, helpFile, HelpNavigator.KeywordIndex, parameter)
but Im not very familiar with dotnet and do not know how to use it in maxscript.
Excuse me for my bad English.
3 Replies
Jan 25, 2011 11:44 am
this should get you on the right path
rollout testrollout "test" width:150 height:50
(
dotnetcontrol button "System.Windows.Forms.Button" pos:[5,5] width:100 height:30
on button click do
(
local navigatorType = (dotnetClass "System.Windows.Forms.HelpNavigator").Index
(dotnetclass "Help").showhelp button "C:\\winrar.chm" navigatorType "Switches"
)
)
createdialog testrollout
Jan 25, 2011 11:44 am
another option using mxs:
shellLaunch "hh" "mk:@MSITStore:C:\Program%20Files\Autodesk\3ds%20Max%202011\help\maxscript.chm::/values_rtf/number_values.htm#Numbers_Trigonometry"