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)
Changed 10 years ago by mLipok
comment:2 Changed 10 years ago by guinness
- Milestone set to 3.3.13.20
- Owner set to guinness
- Resolution set to Completed
- Status changed from new to closed
Changed by revision [11181] in version: 3.3.13.20
comment:3 Changed 10 years ago by mLipok
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
comment:4 Changed 10 years ago by guinness
Done.
Guidelines for posting comments:
- You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
- In-depth discussions should take place on the forum.
For more information see the full version of the ticket guidelines here.
Note: See
TracTickets for help on using
tickets.
GUISetHelp[2].au3