找回密码
 加入
搜索
查看: 4448|回复: 6

[IE类操作] 怎么获取IE中的音乐控件

[复制链接]
发表于 2014-4-10 10:40:11 | 显示全部楼层 |阅读模式
本帖最后由 dabaiyun 于 2014-4-10 10:44 编辑
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>

Opt('MustDeclareVars', 1)

#Region
Global $oIE = ObjCreate("Shell.Explorer.2")
Global $She
; 创建一个简单的 GUI
Global $Form1=GUICreate("嵌入式 Web 控件测试", 760, 680, (@DesktopWidth - 640) / 2, (@DesktopHeight - 680) / 2, BitOR($WS_OVERLAPPEDWINDOW, $WS_CLIPSIBLINGS, $WS_CLIPCHILDREN))
GUICtrlCreateObj($oIE, 10, 40, 680, 560)
Global $Radio1 = GUICtrlCreateRadio('百度电台', 10, 620, 100, 30)
Global $Radio2 = GUICtrlCreateRadio('酷狗电台', 120, 620, 100, 30)
Global $Radio3 = GUICtrlCreateRadio("虾米电台", 230, 620, 100, 30)
Global $Radio4 = GUICtrlCreateRadio("多米电台", 330, 620, 100, 30)
Global $Radio5 = GUICtrlCreateRadio("酷我电台", 430, 620, 100, 30)
Global $Radio6 = GUICtrlCreateRadio("豆瓣电台", 530, 620, 100, 30)
GUISetState(@SW_SHOW) ;显示 GUI

$oIE.navigate('http://app.baidu.com/app/enter?appid=122846')
#EndRegion



_Main()
Exit


Func _Main()
        Local $msg
        While 1
                $msg = GUIGetMsg()
                Select
                        Case $msg = $GUI_EVENT_CLOSE
                                If MsgBox(32 + 1, "提示", "确定要退出?", -1, $Form1) = 1 Then
                                        ClipPut("");清空剪切板
                                        _HideWin($Form1)
                                        Exit
                                EndIf
                        Case $msg = $Radio1
                                $oIE.navigate("http:http://app.baidu.com/app/enter?appid=122846")
                        Case $msg = $Radio2
                                $oIE.navigate('')
                        Case $msg = $Radio3
                                $oIE.navigate('http://app.baidu.com/xiamiradio/xiamiradio')
                        Case $msg = $Radio4
                                $oIE.navigate('http://app.baidu.com/duomiwebradio')
                        Case $msg = $Radio5
                                $oIE.navigate('http://yinyue.kuwo.cn/yy/webDiantai/index.jsp')
                        Case $msg = $Radio6
                                $oIE.navigate('http://douban.fm/radio')
                EndSelect
        WEnd
        GUIDelete()
EndFunc   ;==>_Main


Func _HideWin($WinHand)
        WinMove($WinHand, "", @DesktopWidth + 10, Default, Default, Default, 2)
        Exit
EndFunc   ;==>_HideWin

[img][img][/img][/img]

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?加入

×
 楼主| 发表于 2014-4-10 10:55:12 | 显示全部楼层
想要最下面图片的效果,怎么调节着,嘿嘿
发表于 2014-4-10 19:56:46 | 显示全部楼层
束手无策
发表于 2014-4-11 12:36:21 | 显示全部楼层
笨办法  如图

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?加入

×
发表于 2014-4-11 12:41:19 | 显示全部楼层
直接进去  http://kuang.xiami.com/res/kuang/xiamikuang0709.swf  看看行不行
 楼主| 发表于 2014-4-11 18:19:35 | 显示全部楼层
回复 5# 1361739590


    谢谢,的努力的看嘿嘿
发表于 2014-5-25 05:18:30 | 显示全部楼层
牛B啊 我简直是一点也看不懂
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-5-20 00:50 , Processed in 0.083105 second(s), 21 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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