Function Reference


GUISetHelp

Sets an executable file that will be run when F1 is pressed.

GUISetHelp ( helpfile [, winhandle] )

Parameters

helpfile file that will be run if F1 is pressed when the GUI is active.
winhandle [optional] Windows handle as returned by GUICreate (default is the previously used window).

Return Value

Success: Returns 1.
Failure: Returns 0.

Remarks

None.

Related

GUICreate

Example


#include <GUIConstantsEx.au3>

Example()

Func Example()
    Local $msg

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

    GUISetHelp("notepad.exe") ; will run notepad if F1 is typed


    GUISetState() ; will display an empty dialog box

    ; Run the GUI until the dialog is closed
    While 1
        $msg = GUIGetMsg()

        If $msg = $GUI_EVENT_CLOSE Then ExitLoop
    WEnd
EndFunc   ;==>Example