Ticket #2966: GUISetHelp[2].au3

File GUISetHelp[2].au3, 595 bytes (added by mLipok, on Jan 7, 2015 at 12:25:57 PM)

GUISetHelp[2].au3

Line 
1#include <GUIConstantsEx.au3>
2
3Example_HowTo_Use_CHM_File()
4
5Func Example_HowTo_Use_CHM_File()
6 GUICreate("My GUI") ; will create a dialog box that when displayed is centered
7
8 Local $sAutoIt_InstallDir = RegRead('HKEY_LOCAL_MACHINE\SOFTWARE\AutoIt v3\AutoIt', 'InstallDir')
9
10 GUISetHelp('hh.exe "' & $sAutoIt_InstallDir & '\AutoIt.chm"')
11
12 GUISetState(@SW_SHOW) ; will display an empty dialog box
13
14 ; Loop until the user exits.
15 While 1
16 Switch GUIGetMsg()
17 Case $GUI_EVENT_CLOSE
18 ExitLoop
19
20 EndSwitch
21 WEnd
22
23 GUIDelete()
24EndFunc ;==>Example_HowTo_Use_CHM_File