找回密码
 加入
搜索
查看: 3864|回复: 10

内嵌swf问题

[复制链接]
发表于 2009-9-10 09:42:43 | 显示全部楼层 |阅读模式
本人想内嵌个gui专门把 http://www.weather.com.cn/html/weather/101281901.shtml 中的
揭阳天气实况给嵌进去,试了好几下,老失败


或者这贴的源码要怎么改才能有这个
http://www.autoitx.com/forum.php ... id=7644076#pid41524
发表于 2009-9-10 10:14:31 | 显示全部楼层
那个网站不是swf,只是些gif背景~ 可能内嵌网页局部就可以了吧,没弄过~

评分

参与人数 1金钱 +10 贡献 +9 收起 理由
kn007 + 10 + 9 谢谢,但:http://www.autoit.net.cn/viewt ...

查看全部评分

 楼主| 发表于 2009-9-10 12:22:36 | 显示全部楼层
SWF地址:
http://flash.weather.com.cn/sk2/shikuang.swf?id=
上海=101020100
北京=101010100
如:http://flash.weather.com.cn/sk2/shikuang.swf?id=101010100

现在有个解决法子,就是inetget,但ACNWrapper老报InetGet() [内置] 调用参数的数量错误.,但其实是可以用的,大概是bug

但找不到个合适的下载东西的源码,能给我推荐不?
发表于 2009-9-10 12:26:38 | 显示全部楼层
是这个图表啊,那好像还好办
 楼主| 发表于 2009-9-10 12:31:40 | 显示全部楼层
怎么搞呢?先谢谢先。
能不能直接内嵌网址中的swf就是1楼那个
http://www.autoitx.com/forum.php ... id=7644076#pid41524
像他那样,或者直接改他的,要怎么改,我觉得他的也不错。。。

另外,给个从远程下载东西的例子,麻烦了
发表于 2009-9-10 12:32:38 | 显示全部楼层
#include <GUIConstants.au3>

$Obj = ObjCreate("ShockwaveFlash.ShockwaveFlash.9")
If @error Then Exit
GUICreate("嵌入flash测试", 800, 400)
$control = GUICtrlCreateObj($Obj, 10, 30, 780, 300)
If $control = 0 Then Exit (MsgBox(0, "Error", "Error"))
GUISetState()

$Obj.Movie = "http://flash.weather.com.cn/sk2/shikuang.swf?id=101010100"
$Obj.Play()

While 1
        $msg = GUIGetMsg()
        Select
                Case $msg = $GUI_EVENT_CLOSE
                        OnExit()
        EndSelect
WEnd

Func OnExit()
        GUIDelete()
        Exit
EndFunc   ;==>OnExit

评分

参与人数 1威望 +10 金钱 +50 贡献 +40 收起 理由
kn007 + 10 + 50 + 40 恩,先谢谢,我试试!

查看全部评分

发表于 2009-9-10 12:33:47 | 显示全部楼层
吃饭先,呵呵~
 楼主| 发表于 2009-9-10 12:49:03 | 显示全部楼层
还不错,但能不能让  点击查看详细说明    网页按钮无效?

一按就错误,正确的说,一按弹出新网页,新网页一关,autoit错误退出
发表于 2009-9-10 12:53:14 | 显示全部楼层
这个就没玩过了,不知道怎么限制~
就这个swf界面而言,不知道能否用另外的Gui遮挡链接那部分来实现这个目的~
发表于 2009-9-10 13:08:53 | 显示全部楼层
本帖最后由 afan 于 2009-9-10 13:13 编辑
#include <GUIConstants.au3>
#include <WindowsConstants.au3>

$main_GUI = GUICreate("嵌入flash截取", 800, 400)
GUISetState()

$Obj = ObjCreate("ShockwaveFlash.ShockwaveFlash.9")
If @error Then Exit (MsgBox(0, "Error", "Error"))
GUICreate("", 770, 250, 15, 30, BitOR($WS_CHILD, $WS_TABSTOP), -1, $main_GUI)
$control = GUICtrlCreateObj($Obj, 0, -10, 770, 300)
If $control = 0 Then Exit (MsgBox(0, "Error", "Error"))
GUISetState()

$Obj.Movie = "http://flash.weather.com.cn/sk2/shikuang.swf?id=101010100"
$Obj.Play()

While 1
        $msg = GUIGetMsg()
        Select
                Case $msg = $GUI_EVENT_CLOSE
                        OnExit()
        EndSelect
WEnd

Func OnExit()
        GUIDelete()
        Exit
EndFunc   ;==>OnExit
就像这样,把它截了~~

本帖子中包含更多资源

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

×

评分

参与人数 1威望 +10 金钱 +50 贡献 +50 收起 理由
kn007 + 10 + 50 + 50 THX

查看全部评分

发表于 2009-9-10 14:15:03 | 显示全部楼层
又想了个简单的方法,弄个控件遮住限制点击的地方即可,这样还可以处理以上方法无法做到的处理中间部分~ 呵呵
#include <GUIConstants.au3>

$Obj = ObjCreate("ShockwaveFlash.ShockwaveFlash.9")
If @error Then Exit
GUICreate("嵌入flash测试", 800, 400)
GUICtrlCreateLabel("", 10, 290, 780, 30) 
$control = GUICtrlCreateObj($Obj, 10, 30, 780, 300)
If $control = 0 Then Exit (MsgBox(0, "Error", "Error"))
GUISetState()

$Obj.Movie = "http://flash.weather.com.cn/sk2/shikuang.swf?id=101010100"
$Obj.Play()

While 1
        $msg = GUIGetMsg()
        Select
                Case $msg = $GUI_EVENT_CLOSE
                        OnExit()
        EndSelect
WEnd

Func OnExit()
        GUIDelete()
        Exit
EndFunc   ;==>OnExit

评分

参与人数 1威望 +10 金钱 +50 贡献 +50 收起 理由
kn007 + 10 + 50 + 50 THX

查看全部评分

您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-5-19 14:49 , Processed in 0.076333 second(s), 22 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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