设置点击 F1 时运行的可执行文件.
GUISetHelp ( 文件 [, 句柄] )
文件 | GUI 窗口激活时,点击 F1 时运行的文件名称. |
句柄 | [可选参数] 由 GUICreate 函数返回的窗口句柄 (默认为先前使用的窗口). |
成功: | 返回 1. |
失败: | 返回 0. |
#include <GUIConstantsEx.au3>
Example()
Func Example()
Local
$msg
GUICreate("点击
F1 运行记事本程序") ;
创建居中显示的 GUI 窗口
GUISetHelp("notepad") ;
如果点击 F1, 将运行记事本程序
GUISetState() ; 显示一个空白的窗口
; 运行 GUI, 直到
GUI 被关闭
While
1
$msg = GUIGetMsg()
If $msg = $GUI_EVENT_CLOSE Then ExitLoop
WEnd
EndFunc ;==>Example
provider with jb51.net (unicode) |