| 1 | #include <GUIConstantsEx.au3>
|
|---|
| 2 |
|
|---|
| 3 | Example_HowTo_Use_CHM_File()
|
|---|
| 4 |
|
|---|
| 5 | Func 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()
|
|---|
| 24 | EndFunc ;==>Example_HowTo_Use_CHM_File
|
|---|