Modify

Opened 10 years ago

Closed 10 years ago

Last modified 10 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 10 years ago.
GUISetHelp[2].au3

Download all attachments as: .zip

Change History (5)

Changed 10 years ago by mLipok

GUISetHelp[2].au3

comment:1 Changed 10 years ago by TicketCleanup

  • Version 3.3.13.19 deleted

Automatic ticket cleanup.

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.

Add Comment

Modify Ticket

Action
as closed The owner will remain guinness.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.