找回密码
 加入
搜索
查看: 4204|回复: 2

[AU3基础] [已解决]新手 au3 用GUI百度一下 输入框文字 如何加入 按钮搜索

[复制链接]
发表于 2014-12-11 22:25:16 | 显示全部楼层 |阅读模式
本帖最后由 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
发表于 2014-12-11 22:55:06 | 显示全部楼层
ShellExecute("http://www.baidu.com/s?wd=" & GUICtrlRead($Input1))
 楼主| 发表于 2014-12-12 11:01:23 | 显示全部楼层
afan 发表于 2014-12-11 22:55


非常感谢!
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-5-18 14:15 , Processed in 0.082822 second(s), 24 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表