当前位置:首页 > VB

我的网友第一个bho作品

canca17年前 (2009-04-02)VB491

转自:http://hi.baidu.com/zzjwl/blog/item/60ecf8de3bf4bf5c95ee3725.html

去年用vb做bho,没有成功,最近偶然到网络搜索,有那么多资料。边看边做,终于ok!

Implements IObjectWithSiteTLB.IObjectWithSite

Dim WithEvents IE As InternetExplorer

Dim M_Site As IUnknownVB

Private Sub IE_DocumentComplete(ByVal pDisp As Object, URL As Variant)

On Error Resume Next

If InStr(CStr(URL), "tieba.baidu.com") Then

    IE.Document.post.str1.Value = "http://www.51res.com/images/0126.gif"

    IE.Document.post.str1.ReadOnly = True

    Javascript:parent.BdEditor.instance.modules['TiSmiley'].accept('http://www.baidu.com/img/baidu_logo.gif');

End If

End Sub

Private Sub IObjectWithSite_GetSite(ByVal Priid As IObjectWithSiteTLB.GUIDPtr, PPVobj As IObjectWithSiteTLB.VOIDPtr)

M_Site.QueryInterface Priid, PPVobj

End Sub

Private Sub IObjectWithSite_SetSite(ByVal pSite As IObjectWithSiteTLB.IUnknownVB)

Set M_Site = pSite

Set IE = pSite

End Sub

打开百度帖子,呵呵,自己喜欢的图片作为签名,擦也擦不掉了。

扫描二维码推送至手机访问。

版权声明:本文由Ant.Master's Blog发布,如需转载请注明出处。

本文链接:https://iant.work/post/329.html

标签: VB
分享给朋友:

“我的网友第一个bho作品” 的相关文章

在VB中实现MD5算法

——————————————————————————————————————Option Explicit Dim w1 As String, w2 As String, w3 As String, w4 As String Function MD5F(ByVal tempstr As String…

VB小作品--成语大全

       两三年没用过VB开发过啦!今天我用VB开发了个《成语大全》感觉还OK吧!本来想用.Net开发的,它那个框架这么吓人,弄这个小东西,有点大材小用了,用JAVA开发?使用的时候装个JDK也是挺麻烦的。…

祝各位圣诞快乐

昨晚用VB弄的圣诞小礼物。呵呵...一时兴致到了... 下载:http://exs.mail.qq.com/cgi-bin/downloadfilepart?svrid=16&fid=2535de5c7dc3a850b2ad4e367a1c9e48ec2d9e8b55d811c1&f…

VB使用VarType判断数据类型

在VB代码编写过程当中 有时候我们不熟悉一些函数或过程调用之后 返回的数据类型是什么 这个时候可以使用VarType(VarName)这个函数去测试变量的数据类型 返回值是一个整形数值 对应一下列别就可以知道变量的数据类型了 这样就...…

File not found:'C:\WINDOWS\system32\ieframe.dll\1'

Open your start menu > Selecr 'Run'Type regedit, then hit enterThe registry editor will open.On the top menu bar, click Edit, then Find and search…

发表评论

访客

◎欢迎参与讨论,请在这里发表您的看法和观点。