1.vb����Դ��
vb����Դ��
'你把下面的界面代码保存为Form1.frm,然后双击打开该文件,源码源码用梦幻西游扶摇版源码运行后按提示即可看到结果。界面合约交易源码免费
'呵呵,源码源码用女 假冒 源码资本够详细了,界面刻舟求剑主图源码再不会我也没办法了。源码源码用拍单厅源码
'====文件Form1.frm====
VERSION 5.
Begin VB.Form Form1
Caption = "Form1"
ClientHeight =
ClientLeft =
ClientTop =
ClientWidth =
LinkTopic = "Form1"
ScaleHeight =
ScaleWidth =
StartUpPosition = 3 '窗口缺省
Begin VB.TextBox Text2
Height =
Left =
MultiLine = -1 'True
ScrollBars = 2 'Vertical
TabIndex = 2
Top =
Width =
End
Begin VB.TextBox Text1
Height =
Left =
TabIndex = 1
Text = "我的界面家"
Top =
Width =
End
Begin VB.CommandButton Command1
Caption = "获取HTML源码"
Height =
Left =
TabIndex = 0
Top =
Width =
End
Begin VB.Label Label2
Caption = "注意:获取源码之前必须先用IE打开网址,然后输入窗口标题关键字。源码源码用如www..com的界面标题关键字是:我的家"
Height =
Left =
TabIndex = 4
Top =
Width =
End
Begin VB.Label Label1
Caption = "请输入IE窗口标题:"
Height =
Left =
TabIndex = 3
Top =
Width =
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Function GetIeHtml(IeTitle As String) As String
Dim oShellApp: Set oShellApp = CreateObject("Shell.Application")
Dim oShellAppWindows: Set oShellAppWindows = oShellApp.Windows
Dim owin
'获取弹出的IE窗口
For Each owin In oShellAppWindows '获取弹出的IE窗口
If LCase(TypeName(owin.Document)) = "htmldocument" And _
InStr(1, owin.LocationName, IeTitle, vbTextCompare) > 0 Then '如果找到符合条件的IE窗口
GetIeHtml = owin.Document.activeElement.Document.documentElement.innerHTML '此句可获得完整html代码
GoTo Mend '退出
End If
Next
Mend:
Set oShellAppWindows = Nothing
Set oShellApp = Nothing
Set owin = Nothing
End Function
Private Sub Command1_Click()
Dim S As String
S = GetIeHtml(Text1.Text) '表示获得标题含有"我的家"的html代码
Text2.Text = S
End Sub
Private Sub Form_Load()
'Shell "explorer.exe ""/""", vbNormalNoFocus
End Sub
2024-11-21 00:121479人浏览
2024-11-21 00:08999人浏览
2024-11-21 00:022106人浏览
2024-11-20 23:13134人浏览
2024-11-20 23:002620人浏览
2024-11-20 22:391115人浏览
1.手机提醒有病毒还震动2.进浏览器不小心点了一个网页,然后手机就震动,说是电池感染病毒怎么回事?手机提醒有病毒还震动 手机出现病毒提示可能是第三方浏览器恶意的广告链接,建议按照以下方式尝试操作排
1.软件著作权包括源代码吗2.软件著作权登记源代码要求格式,源代码会不会查重?软著还可以加急3.申请软著需要什么材料4.软著软件源代码应符合什么要求 软著申请源代码格式是什么5.做软著软件的提交的源代