HaskellScript previous home next  
lambda Questions
HaskellScript
  Documentation
  Download
  Questions
  History
  Acknowledgements

HaskellAgent
HaskellDirect
HaskellObject
  Example
  Documentation
ScriptServer
  Interface

I would like to turn off the confirmation dialog that shows up each time I run a HaskellScript in an HTML page.

Note that turning off the confirmation dialog can be unsafe. Use the demos\hscript\braga\options.html demo to set the Trust option on. This can also be done manually by setting the HKEY_CLASSES_ROOT\HugsScript\Trust value to 0 or 1.

The HTML demos don't work without giving any warning or error. What to do ?

This is probably a security problem. Try to set your security level to medium. If that doesn't work try the Trust option (see the previous question). If it still doesn't work, try to set the value HkeyClassesRoot\HugsScript\SafetyOptions to value 0x0, 0x4 or 0x7 (in that order). Please contact me if you needed to do this.

How can I change the search path / options?

The demos\hscript\braga\options.html demos allows you to change the options from an DHTML page.
HaskellScript's search path can be extended by adding the path to the HKEY_LOCAL_MACHINE\Software\Haskell\Projects\HaskellScript\hugsPath value in the registry. When you add a \ to the path, every direct subdirectory will also be searched. For example, by default the path x:\hscript\lib\ is set. Every subdirectory under lib will be included in the search for modules. HaskellScript reads options from the registry in the following order (last one takes precedence):
  1. HKEY_LOCAL_MACHINE\Software\Haskell\Hugs\Version\Options
  2. HKEY_CURRENT_USER\Software\Haskell\Hugs\Version\Options
  3. HKEY_LOCAL_MACHINE\Software\Haskell\Projects\HaskellScript\hugsPath
  4. HKEY_CURRENT_USER\Software\Haskell\Projects\HaskellScript\hugsPath

The Version is read from the registry entry HKEY_LOCAL_MACHINE\Software\Haskell\Hugs\hugsVersion. Inside a path string you can use {Hugs} for the install directory of Hugs or {HScript} for the install directory of HaskellScript. The value of {Hugs} is read from HKEY_LOCAL_MACHINE\Software\Haskell\Hugs\installDir and the value of {HScript} is read from HKEY_LOCAL_MACHINE\Software\Haskell\HaskellScript\installDir

How can I view and change the registry ?

Use menu start\run and type regedit

Is there a tool to view the COM objects on my system ?

There is a tool called Oleview that let's you view the COM objects on your system
 
previous home next