Bestimmt eine ausführbare Datei, die gestartet wird sobald die F1-Taste gedrückt wird.
GUISetHelp ( helpfile [, winhandle] )
helpfile | Datei, die gestartet wird, wenn F1 gedrückt wird während das GUI-Fenster aktiv ist. |
winhandle | [optional] Fenster-Handle wie von GUICreate() zurückgegeben (Standard ist das zuvor verwendete Fenster). |
Erfolg: | 1. |
Fehler: | 0. |
- - - - - - - - Erklärung der Controls - - - - - - - -
#include <GUIConstantsEx.au3>
Example()
Func Example()
; X64 Unterstützung
Local $sWow64 = ""
If @AutoItX64 Then $sWow64 = "\Wow6432Node"
Local $hGUI = GUICreate("Beispiel")
Local $sAutoItInstallDir = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE" & $sWow64 & "\AutoIt v3\AutoIt", "InstallDir")
If Not @error Then
GUISetHelp('hh.exe "' & $sAutoItInstallDir & '\AutoIt.chm"')
EndIf
; Display the GUI.
GUISetState(@SW_SHOW, $hGUI)
; Die Schleife wiederholt sich, bis der Benutzer die Beenden-Aktion der GUI auslöst.
While 1
Switch GUIGetMsg()
Case $GUI_EVENT_CLOSE
ExitLoop
EndSwitch
WEnd
GUIDelete()
EndFunc ;==>Example