Modify ↓
#2966 closed Feature Request (Completed)
GUISetHelp[2].au3 - example proposal
| Reported by: | mLipok | Owned by: | guinness |
|---|---|---|---|
| Milestone: | 3.3.13.20 | Component: | Documentation |
| Version: | Severity: | None | |
| Keywords: | Cc: |
Description
http://www.autoitscript.com/forum/topic/166612-guisethelp-how-to-runexecuteview-chm-file
#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
Attachments (1)
Change History (5)
by , 11 years ago
| Attachment: | GUISetHelp[2].au3 added |
|---|
comment:2 by , 11 years ago
| Milestone: | → 3.3.13.20 |
|---|---|
| Owner: | set to |
| Resolution: | → Completed |
| Status: | new → closed |
Changed by revision [11181] in version: 3.3.13.20
comment:3 by , 11 years ago
small change
I add
SOFTWARE' & ((@AutoItX64) ? '\Wow6432Node':'') & '\AutoIt v3\
here:
Local $sAutoIt_InstallDir = RegRead('HKEY_LOCAL_MACHINE\SOFTWARE' & ((@AutoItX64) ? '\Wow6432Node':'') & '\AutoIt v3\AutoIt', 'InstallDir')
and here is complete 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' & ((@AutoItX64) ? '\Wow6432Node':'') & '\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
Note:
See TracTickets
for help on using tickets.

GUISetHelp[2].au3