Sets the context help identifier for the menu
#include <GuiMenu.au3>
_GUICtrlMenu_SetMenuContextHelpID ( $hMenu, $iHelpID )
$hMenu | Handle of the menu |
$iHelpID | Context help ID |
Success: | True. |
Failure: | False. |
_GUICtrlMenu_GetMenuContextHelpID
#include <GuiMenu.au3>
Example()
Func Example()
Local $hWnd, $hMain, $hFile
; Open Notepad
Run("notepad.exe")
WinWaitActive("[CLASS:Notepad]")
$hWnd = WinGetHandle("[CLASS:Notepad]")
$hMain = _GUICtrlMenu_GetMenu($hWnd)
$hFile = _GUICtrlMenu_GetItemSubMenu($hMain, 0)
; Get/Set File menu help context ID
Writeln("File help context ID: " & _GUICtrlMenu_GetMenuContextHelpID($hFile))
_GUICtrlMenu_SetMenuContextHelpID($hFile, 1234)
Writeln("File help context ID: " & _GUICtrlMenu_GetMenuContextHelpID($hFile))
EndFunc ;==>Example
; Write a line of text to Notepad
Func Writeln($sText)
ControlSend("[CLASS:Notepad]", "", "Edit1", $sText & @CRLF)
EndFunc ;==>Writeln