Modify

Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#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)

GUISetHelp[2].au3 (595 bytes ) - added by mLipok 11 years ago.
GUISetHelp[2].au3

Download all attachments as: .zip

Change History (5)

by mLipok, 11 years ago

Attachment: GUISetHelp[2].au3 added

GUISetHelp[2].au3

comment:1 by TicketCleanup, 11 years ago

Version: 3.3.13.19

Automatic ticket cleanup.

comment:2 by guinness, 11 years ago

Milestone: 3.3.13.20
Owner: set to guinness
Resolution: Completed
Status: newclosed

Changed by revision [11181] in version: 3.3.13.20

comment:3 by mLipok, 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

comment:4 by guinness, 11 years ago

Done.

Modify Ticket

Action
as closed The owner will remain guinness.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.