設(shè)置點(diǎn)擊 F1 時運(yùn)行的可執(zhí)行文件.
GUISetHelp ( 文件 [, 句柄] )
文件 | GUI 窗口激活時,點(diǎn)擊 F1 時運(yùn)行的文件名稱. |
句柄 | [可選參數(shù)] 由 GUICreate 函數(shù)返回的窗口句柄 (默認(rèn)為先前使用的窗口). |
成功: | 返回 1. |
失敗: | 返回 0. |
#include <GUIConstantsEx.au3>
Example()
Func Example()
Local
$msg
GUICreate("點(diǎn)擊
F1 運(yùn)行記事本程序") ;
創(chuàng)建居中顯示的 GUI 窗口
GUISetHelp("notepad") ;
如果點(diǎn)擊 F1, 將運(yùn)行記事本程序
GUISetState() ; 顯示一個空白的窗口
; 運(yùn)行 GUI, 直到
GUI 被關(guān)閉
While
1
$msg = GUIGetMsg()
If $msg = $GUI_EVENT_CLOSE Then ExitLoop
WEnd
EndFunc ;==>Example
provider with jb51.net (unicode) |