回复 1# 简单栽培
新手嘛,还是回复下
#include <IE.au3>
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <SendMessage.au3>
Global Const $SC_MOVE = 0xF010
$Form1 = GUICreate("测试", 450, 60, 520, 1, BitOR($WS_SYSMENU, $WS_POPUP))
$Button1 = GUICtrlCreateButton("123开始", 10, 10, 100, 40, 0)
$Button2 = GUICtrlCreateButton("新浪", 120, 10, 100, 40, 0)
$Button3 = GUICtrlCreateButton("汽车", 230, 10, 100, 40, 0)
$Button4 = GUICtrlCreateButton("好网", 340, 10, 100, 40, 0)
GUISetState(@SW_SHOW)
Func _my_ffs()
$oIE = _IECreate("http://www.hao123.com/", 1, 1, 0)
EndFunc ;==>_my_ffs
While 1
$nMsg = GUIGetMsg()
Select
Case $nMsg = $Button1
WinActivate(_my_ffs())
Case $nMsg = $Button2
$oIE = _IECreate("http://www.sina.com.cn/", 1, 1, 0)
Case $nMsg = $Button3
$oIE = _IECreate("http://www.autohome.com.cn/", 1, 1, 0)
Case $nMsg = $Button4
WinActivate(_my_ffs())
Case $nMsg = $GUI_EVENT_CLOSE
ExitLoop
Case $nMsg = $GUI_EVENT_PRIMARYDOWN
_SendMessage($Form1, $WM_SYSCOMMAND, $SC_MOVE + $HTCAPTION, 0)
EndSelect
WEnd
|