本帖最后由 mshuking 于 2014-12-12 11:00 编辑
已解决
新手 au3 用GUI百度一下 输入框文字 如何加入 按钮搜索#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("百度一下", 367, 42, 289, 241)
$Input1 = GUICtrlCreateInput("百度一下", 8, 8, 257, 21)
$Button1 = GUICtrlCreateButton("百度一下", 280, 8, 75, 25)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
ShellExecute("http://www.baidu.com/s?wd=" & GUICtrlRead($Input1))
EndSwitch
WEnd
|