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
function File_Class() {
var hModule = Api.ProcAddress("kernel32");
var WritePrivateProfileString = Api.ProcAddress(hModule, "WritePrivateProfileStringW");
var GetPrivateProfileString = Api.ProcAddress(hModule, "GetPrivateProfileStringW");
Api.ProcAddress(-hModule); //'FreeLibrary'
var fso = new ActiveXObject('scripting.FileSystemObject');
this.ReadINI = function (ApplicationName, KeyName, IniPath, Default, IsNunber) {
if (Default === undefined) Default = "";
if (IsNunber === undefined && typeof (Default) == 'number') IsNunber = true
var retstr = Api.Malloc(2550);
var l = Api.ECall(GetPrivateProfileString, false, ApplicationName, KeyName, Default.toString(), retstr.GetPtr(0), 2550, IniPath)
......................
阅读全部
|
王宇577
贴于 2022年3月19日 07:50
hide
bbsi
public class HelloWorld{
public static void main (String [] args){
System.out.println("我中意您啊");
}
}
阅读全部
|
崖底啊
贴于 2022年3月18日 17:52
hide
bbsi
import java.lang.Math;
import java.util.Scanner;
public class Test1022
{
public static void main (String[] args)
{
Scanner in=new Scanner(System.in);
int x=in.nextInt();
System.out.println("输入x次:"+x);
for (int i=1;i<=x ;i++ )
{
double n=in.nextDouble();
......................
阅读全部
|
HikT
贴于 2022年3月18日 12:45
hide
bbsi
import java.util.Scanner;
public class Test1021
{
public static void main (String[] args)
{
Scanner in=new Scanner(System.in);
int x=in.nextInt();
System.out.println("输入x次:"+x);
for (int i=1;i<=x ;i++ )
{
int n=in.nextInt();
System.out.println("输入一个正整数n:"+n);
......................
阅读全部
|
HikT
贴于 2022年3月18日 12:06
hide
bbsi
import java.util.Scanner;
public class Test1020
{
public static void main (String[] args)
{
Scanner in=new Scanner(System.in);
int x=in.nextInt();
System.out.println("输入x次:"+x);
for (int i=1;i<=x ;i++ )
{
int n=in.nextInt();
System.out.println("输入一个正整数n:"+n);
......................
阅读全部
|
HikT
贴于 2022年3月18日 11:50
hide
bbsi
import java.util.Scanner;
public class Test1019 {
public static void main(String[] args)
{
Scanner in=new Scanner(System.in);
char c= in.next().charAt(0);
System.out.println("您需要转换的字母:"+c);
change(c);
}
private static void change(char c) {
//如果输入的是大写,+32即可得到小写
if(c>='A' && c<='Z')
......................
阅读全部
|
HikT
贴于 2022年3月18日 11:30
hide
bbsi