Function HttpLoaderEx(v, o, func)
Dim i, b, ve, obj
Set obj = CreateObject("scripting.FileSystemObject")
HttpLoaderEx = 0
For i = 0 To UBound(v) Step 3
If IsNumeric(v(i + 2)) Then
Api.NewHttp().GetHttpEx v(i), Array(o, func, Array(v(i + 1), v(i + 2)))
Else
ve = Split(v(i + 2), "|")
If UBound(ve) > 0 Then '强制要求的版本
b = obj.FileExists(ve(0)) = False
If Not b Then
......................
阅读全部
|
angelfly
贴于 2021年4月17日 12:19
hide
bbsi
Option Explicit
' By音符,QQ:337855632 Time:2020-03-17 功能定制:20元起
Const C_GameWith = 1024
Const C_GameHeight = 768
Const C_GameSmallWith = 320
Const C_GameSmallHeight = 240
'黑带 16 20
Dim GamehWnd, dm, AppName, config, bgkms, KMData
config = ".\Angel.ini"
AppName = "Angel_BP"
Function CmpMutlColor(Args, Sleep)
Dim i
......................
阅读全部
|
angelfly
贴于 2021年4月13日 19:16
hide
bbsi
Option Explicit
Const C_WorkProgress = 4
Class UI_Class
Public Form, Tip, config, AppName, Starting, Angel
Private Menu, hMenu1(1), hMenu2(0), timing
Private Tooptip
Private DisablePowerSave
Private Sub Create()
Dim i, v, s, j, arr
Set Menu = Control.Menu()
Set Form = Api.NewForm()
Set Tooptip = Control.Tooptip()
......................
阅读全部
|
angelfly
贴于 2021年4月12日 00:03
hide
bbsi
Option Explicit
' By音符,QQ:337855632 Time:2020-03-17
Class Window_Class
Private PostMessage, SendMessage
Public Function GetText(ByVal hWnd)
Dim pszText
pszText = Space(255)
GetText = Left(pszText, Api.ECall("user32.dll", "GetWindowTextW", hWnd, pszText, Len(pszText)))
End Function
Public Function GetClass(ByVal hWnd)
Dim pszText
pszText = Space(255)
......................
阅读全部
|
刘达明
贴于 2021年4月1日 19:16
hide
bbsi
Option Explicit
' By音符,QQ:337855632 Time:2020-03-17 功能定制:20元起
Class File_Class
Private WritePrivateProfileString, GetPrivateProfileString
Public Function ReadINI(ByVal ApplicationName, ByVal KeyName, ByVal IniPath, ByVal Default)
Dim retstr
retstr = Space(255)
ReadINI = left(retstr, Api.ECall(GetPrivateProfileString, False, ApplicationName, KeyName, Default, retstr, 255, IniPath))
End Function
Public Function WriteINI(ByVal ApplicationName, ByVal KeyName, ByVal Str, ByVal IniPath)
Call Api.ECall(WritePrivateProfileString, False, ApplicationName, KeyName, CStr(Str), IniPath)
End Function
......................
阅读全部
|
angelfly
贴于 2021年3月25日 17:35
hide
bbsi
Option Explicit
' By音符,QQ:337855632 Time:2020-03-17 功能定制:20元起
Class Window_Class
Private PostMessage, SendMessage, KMMessage
Private EnumS, Sleep
Public Property Let Delay(iTime) '设置LeftClick KeyPress间隔
Sleep = iTime
End Property
Public Property Let Async(IsAsync) '设置鼠标键盘是否异步
If CBool(IsAsync) Then KMMessage = PostMessage Else KMMessage = SendMessage
End Property
Public Function GetText(ByVal hWnd)
......................
阅读全部
|
angelfly
贴于 2021年3月25日 16:30
hide
bbsi
Option Explicit
Private Const WS_CHILD = &H40000000
Private Const WS_VISIBLE = &H10000000
Private Const LVS_REPORT = &H1
Private Declare Function CreateWindowEx Lib "user32.dll" Alias "CreateWindowExA" (ByVal dwExStyle As Long, ByVal lpClassName As String, ByVal lpWindowName As String, ByVal dwStyle As Long, ByVal X As Long, ByVal Y As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal hWndParent As Long, ByVal hMenu As Long, ByVal hInstance As Long, ByRef lpParam As Any) As Long
Private Declare Function DestroyWindow Lib "user32" (ByVal hWnd As Long) As Long
Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hWnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
Private Type LVCOLUMN
Mask As Long
Fmt As Long
cX As Long
pszText As String
......................
阅读全部
|
LHY163311
贴于 2020年12月3日 18:56
hide
bbsi
'在工程里引用 microsoft activex data objects 2.7 library
'然后随便画个命令控件,在命令控件的单击事件里(click)输入以下代码
'以下是查询记录的代码:
Dim cn As ADODB.Connection
Dim rs As ADODB.Recordset
Set cn = New ADODB.Connection
Set rs = New ADODB.Recordset
cn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Persist Security Info=False;Jet OLEDB:Database Password = 111;Data Source=" & App.Path & "\1.mdb" '1.mdb 替换成你的数据库
cn.Open
rs.Open "select * from 表1 where 查询条件 ", cn, adOpenStatic, adLockOptimistic
......................
阅读全部
|
china_shy_wz
贴于 2020年6月17日 11:20
hide
bbsi
Dim cn As New ADODB.Connection, rs As New ADODB.Recordset
cn.CursorLocation = adUseClient
cn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Persist Security Info=False;Data Source=" & App.Path & "\钢网清单.xls;Extended Properties='Excel 8.0;HDR=Yes'"
If rs.State = adStateOpen Then rs.Close
rs.Open "select * from [sheet1$]", cn, adOpenDynamic, adLockOptimistic
Set DataGrid1.DataSource = rs
DataGrid1.AllowUpdate = True
阅读全部
|
lsj253307
贴于 2020年1月8日 18:30
hide
bbsi