我用的是Visual Basic 6.0,我需要一条代码!
我用的是VisualBasic6.0,我需要一条点下按钮就把qq.com,163.com,hao123.com,114la.com在不弹窗口的请款下一次性就点完的代码!本...
我用的是Visual Basic 6.0,我需要一条点下按钮就把qq.com,163.com,hao123.com,114la.com在不弹窗口的请款下一次性就点完的代码!
本人刚入门,笨!
给个现成的示范最好!
希望大家希声和寡能看的见! 展开
本人刚入门,笨!
给个现成的示范最好!
希望大家希声和寡能看的见! 展开
2个回答
展开全部
Attribute VB_Name = "WEB"
Option Explicit
Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long,ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
Public Sub ShowWebSite(Url As String)
ShellExecute(0,"","qq.com","","","1")
ShellExecute(0,"","163.com","","","1")
ShellExecute(0,"","hao123.com","","","1")
ShellExecute(0,"","114la.com","","","1")
End Sub
Option Explicit
Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long,ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
Public Sub ShowWebSite(Url As String)
ShellExecute(0,"","qq.com","","","1")
ShellExecute(0,"","163.com","","","1")
ShellExecute(0,"","hao123.com","","","1")
ShellExecute(0,"","114la.com","","","1")
End Sub
微测检测5.10
2023-05-10 广告
2023-05-10 广告
您好!建议咨 深圳市微测检测有限公司,已建立起十余个专业实验室,企业通过微测检测就可以获得一站式的测试与认 证解决方案;(EMC、RF、MFi、BQB、QI、USB、安全、锂电池、快充、汽车电子EMC、汽车手机互 联、语音通话质量),认证遇...
点击进入详情页
本回答由微测检测5.10提供
展开全部
Dim a1,a2,a3,a4 As String
Private Sub Command1_Click()
a1="www.qq.com"
a2="www.163.com"
a3="www.hao123.com"
a4="www.114la.com"
openme(a1)
DoEvents
openme(a2)
DoEvent
sopenme(a3)
DoEvents
openme(a4)
DoEvents
End Sub
Function openme(urlme)
Open App.Path & "\d.bat" For Output As #1
Print #1, "echo off"
Print #1, "start " & urlme
Close #1
Shell App.Path & "\d.bat", vbHide
End Function
Private Sub Command1_Click()
a1="www.qq.com"
a2="www.163.com"
a3="www.hao123.com"
a4="www.114la.com"
openme(a1)
DoEvents
openme(a2)
DoEvent
sopenme(a3)
DoEvents
openme(a4)
DoEvents
End Sub
Function openme(urlme)
Open App.Path & "\d.bat" For Output As #1
Print #1, "echo off"
Print #1, "start " & urlme
Close #1
Shell App.Path & "\d.bat", vbHide
End Function
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询
广告 您可能关注的内容 |