|
请教各位兄弟:
想在浏览得到EXE文件路径后,如何获得该程序的完整标题?!
谢谢指教!!!
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=d:\program files\autoit3\gui_designer1.7.0.8汉化版\forms\问题123.kxf
$Form1_1 = GUICreate("Form1", 513, 69, 195, 125)
$Input1 = GUICtrlCreateInput("", 77, 8, 355, 21)
$Label1 = GUICtrlCreateLabel("程序路径:", 13, 12, 64, 17)
$Label2 = GUICtrlCreateLabel("程序标题:", 13, 42, 64, 17)
$Input2 = GUICtrlCreateInput("", 77, 38, 415, 21)
$Button1 = GUICtrlCreateButton("浏览", 440, 7, 52, 22, 0)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
$Path = FileOpenDialog("打开", "", "可执行文件(*.exe)|所有文件(*.*)", 3, "")
If FileExists($Path) Then
GUICtrlSetData($Input1, $Path)
EndIf
EndSwitch
WEnd |
|