本帖最后由 dmqhcx88 于 2012/2/4 19:09 编辑
- #NoTrayIcon
- #Region ;**** 参数创建于 ACNWrapper_GUI ****
- #AutoIt3Wrapper_icon=..\..\..\WINDOWS\system32\SHELL32.dll|-23
- #AutoIt3Wrapper_outfile=中国天气查询.exe
- #AutoIt3Wrapper_Compression=4
- #AutoIt3Wrapper_UseUpx=n
- #AutoIt3Wrapper_Res_Description=AM电脑吧
- #AutoIt3Wrapper_Res_Fileversion=1.0.0.0
- #AutoIt3Wrapper_Res_LegalCopyright=(C) AM电脑吧 2012
- #AutoIt3Wrapper_Res_Field=CompanyName|编写:dmqhcx88
- #EndRegion ;**** 参数创建于 ACNWrapper_GUI ****
- #include<ie.au3>
- #include <GUIConstantsEx.au3>
- #include <WindowsConstants.au3>
- #include <Misc.au3>
- HotKeySet("{F4}", "TC")
- If _Singleton("中国天气查询", 1) = 0 Then
- MsgBox(0, "警告", "本程序已在运行,请不要重复运行! ")
- Exit
- EndIf
- $oIE = _IECreateEmbedded()
- $Form1 = GUICreate("中国天气查询", 684, 516, -1, -1)
- GUISetState(@SW_SHOW)
- $GUIActiveX = GUICtrlCreateObj($oIE, -83, -3, 850, 520)
- GUICtrlSetResizing(-1, 1)
- GUISetState()
- _IENavigate($oIE, "http://flash.weather.com.cn/wmaps/index.swf?", 0)
- Func TC()
- If BitAND(WinGetState($Form1), 2) <> 2 Then
- GUISetState(@SW_SHOW)
- Else
- GUISetState(@SW_HIDE)
- EndIf
- EndFunc ;==>TC
- While 1
- $nMsg = GUIGetMsg()
- Switch $nMsg
- Case $GUI_EVENT_CLOSE
- Exit
- EndSwitch
- WEnd
复制代码
|