Jump to content

Recommended Posts

Posted (edited)

I just want to use:

GUISetHelp(@ScriptDir& '\my.chm')

But this not works.

It works whe I use

GUISetHelp("notepad.exe")

But as the name of the function indicates a function to launch the help file, so it begs the question:
How to run / view CHM file type ? ( of course using GUISetHelp function )

mLipok

 

edit: typo and Title

Edited by mLipok

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

  • Moderators
Posted

mLipok,

I use this syntax: :)

; Set F1 help file
GUISetHelp("hh.exe " & @ScriptDir & "\my.chm")
To run the file directly I use:

ShellExecute(@ScriptDir & "\my.chm")
M23

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

  Reveal hidden contents

 

Posted (edited)

Thanks.

Here is working example:

#include <GUIConstantsEx.au3>

Example_HowTo_Use_CHM_File()

Func Example_HowTo_Use_CHM_File()
    GUICreate("My GUI") ; will create a dialog box that when displayed is centered

    Local $sAutoIt_InstallDir = RegRead('HKEY_LOCAL_MACHINE\SOFTWARE\AutoIt v3\AutoIt', 'InstallDir')

    GUISetHelp('hh.exe "' & $sAutoIt_InstallDir & '\AutoIt.chm"')

    GUISetState(@SW_SHOW) ; will display an empty dialog box

    ; Loop until the user exits.
    While 1
        Switch GUIGetMsg()
            Case $GUI_EVENT_CLOSE
                ExitLoop

        EndSwitch
    WEnd

    GUIDelete()
EndFunc   ;==>Example_HowTo_Use_CHM_File
Edited by mLipok

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...