如何点击控件打开Internet Explorer[已解决]
本帖最后由 tianlong 于 2010-5-13 21:17 编辑#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate(" ", 301, 301, 192, 124)
$Button1 = GUICtrlCreateButton("打开主页", 72, 48, 153, 49)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
请教高手怎么才能点击“打开主页”按钮后自动打开Internet Explorer?还有怎么才能设定打开指定的网站如:http://www.autoitx.com 希望高手附上代码谢谢! GUICreate(" ", 301, 301)
$Button1 = GUICtrlCreateButton("打开主页", 72, 48, 153, 49)
GUISetState()
While 1
Switch GUIGetMsg()
Case -3
Exit
Case $Button1
Run(@ProgramFilesDir & '\Internet Explorer\IEXPLORE.EXE http://www.autoitx.com/')
EndSwitch
WEnd afan哥好厉害,谢谢! 正是自己想要学习的知识点啊,感谢分享! 收藏了{:face (356):}
页:
[1]