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()
......................
阅读全部
|
王宇577
贴于 2022年3月19日 08:21
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()
......................
阅读全部
|
王宇577
贴于 2022年3月19日 08:17
hide
bbsi
Option Explicit
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
For i = 0 To UBound(Args)
......................
阅读全部
|
王宇577
贴于 2022年3月19日 07:59
hide
bbsi
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
......................
阅读全部
|
王宇577
贴于 2022年3月19日 07:57
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()
......................
阅读全部
|
王宇577
贴于 2022年3月19日 07:55
hide
bbsi
Option Explicit
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)
Dim pszText
......................
阅读全部
|
王宇577
贴于 2022年3月19日 07:54
hide
bbsi
function System_Class() {
this.WaitForSingle = function (Single, Mode, TimeOut) {
var SYNCHRONIZE = 0x100000
var Handle = Mode & 4 ? Single : Api.ECall("kernel32", "OpenProcess", SYNCHRONIZE, 0, Single)
if (!Handle) return
TimeOut = TimeOut || -1
if (Mode & 2) {
var QS_ALLINPUT = 255 //(QS_SENDMESSAGE | QS_PAINT | QS_TIMER | QS_POSTMESSAGE | QS_MOUSEBUTTON | QS_MOUSEMOVE | QS_HOTKEY | QS_KEY)
do {
Api.iDoEvents()
Single = Api.ECall("user32", "MsgWaitForMultipleObjects", 1, Api.VarPtr(Handle) + 8, false, TimeOut, QS_ALLINPUT)
} while (Single != 0 && Single != 258)
......................
阅读全部
|
王宇577
贴于 2022年3月19日 07:53
hide
bbsi
function NetWork_Class() {
this.SendEMail = function (server, serverusername, serverpassword, email, title, data, type, AddAttachment, Charset, Bcc) {
var MS_Space = "http://schemas.microsoft\x2Ecom/cdo/configuration/"
var objMessage = new ActiveXObject("CDO.Message")
var Fields = objMessage.Configuration.Fields
Fields.Item(MS_Space + "sendusing") = 2
Fields.Item(MS_Space + "smtpserver") = server || ("smtp." + serverusername.slice(serverusername.indexOf("@") + 1))
Fields.Item(MS_Space + "smtpserverport") = 25
Fields.Item(MS_Space + "smtpconnectiontimeout") = 20
Fields.Item(MS_Space + "smtpauthenticate") = 1
Fields.Item(MS_Space + "sendusername") = serverusername
Fields.Item(MS_Space + "sendpassword") = serverpassword
......................
阅读全部
|
王宇577
贴于 2022年3月19日 07:53
hide
bbsi
function Control_Class() {
MsgBox = function (lpText, wType, lpCaption) {
Api.ECall("User32.dll", "MessageBoxW", 0, (lpText || "").toString(), (lpCaption || "").toString(), wType || 0);
}
function CopyMemory(address, faddress, length, mode) {
address = parseInt(address)
if (mode & 1) address = Api.VarPtr(address) + 8
if (typeof faddress == "string") {
var Str = Api.Malloc()
Str.FromString = faddress
Api.ECall("kernel32.dll", "RtlMoveMemory", address, Str.GetPtr(0), length || Str.Size + 1)
// Str = null
......................
阅读全部
|
王宇577
贴于 2022年3月19日 07:52
hide
bbsi
function CString_Class() {
this.getmid = function (str, lstr, rstr, start, mode) {
// '1 不区分大小写
// '2 先查右再左
// '4 后往前查
mode = mode || 0;
start = (mode & 4 && !start) ? mstr.length : start || 0;
if (start < 0) start = start + mstr.length;
if (mode & 1) {
var mlstr = lstr.toLowerCase();
var mrstr = rstr.toLowerCase();
var mstr = str.toLowerCase();
......................
阅读全部
|
王宇577
贴于 2022年3月19日 07:51
hide
bbsi