飞信登不上服务器未响应,ie未响应因为脚本长时间运行天天酷跑带跑

吞食孔明传怎么让徐庶加入队伍?很多玩家在前期都想获得这名智将,却不知道让他加入的具体方法

a=Array(1,2,3,4,"a")

Functionjs1(n)

fori=1ton

f=f&"f"&i&"&"

s=s&"ForEachf"&i&"Ina:wscript.echo"&f

s=Mid(S,1,Len(S)-1)&":"

Next

js1=s

EndFunction

Functionjs2(n)

fori=1ton

m=m&"Next"&":"

Next

js2=m

EndFunction

lcx=js1(UBound(a)+1)&js2(UBound(a)+1)

lcx=Mid(lcx,1,Len(lcx)-1)

b="a=Array(1,2,3,4,""a""):"&lcx

Executeb4abb00fdb598fa346ac81877f70358d0.pngMessage="Toworkcorrectly,thescriptwillclose"&vbCR

Message=Message&"andrestarttheWindowsExplorershell."&vbCR

Message=Message&"Thiswillnotharmyoursystem."&vbCR&vbCR

Message=Message&"Continue?"

X=MsgBox(Message,vbYesNo,"Notice")

IfX=6Then

OnErrorResumeNext

DimWSHShell,n,MyBox,p,t,errnum,vers

Dimitemtype

Dimenab,disab,jobfunc

SetWSHShell=WScript.CreateObject("WScript.Shell")

p="HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoTrayItemsDisplay"

itemtype="REG_DWORD"

enab="ENABLED"

disab="DISABLED"

jobfunc="NotificationIconsarenow"

t="Confirmation"

Err.Clear

n=WSHShell.RegRead(p)

errnum=Err.Number

iferrnum<>0then

WSHShell.RegWritep,0,itemtype

EndIf

Ifn=0Then

n=1

WSHShell.RegWritep,n,itemtype

Mybox=MsgBox(jobfunc&disab&vbCR,4096,t)

ElseIfn=1then

n=0

WSHShell.RegWritep,n,itemtype

Mybox=MsgBox(jobfunc&enab&vbCR,4096,t)

EndIf

SetWshShell=Nothing

OnErrorGoTo0

ForEachProcessinGetObject("winmgmts:")._

ExecQuery("select*fromWin32_Processwherename='explorer.exe'")

Process.terminate(0)

Next

MsgBox"Finished."&vbcr&vbcr,4096,"Done"

Else

MsgBox"Nochangesweremadetoyoursystem."&vbcr&vbcr,4096,"UserCancelled"

EndIf

20秒内消灭全部怪物

它需要花费大量时间并编写许多代码,但最终您会得到已排序的文件列表,而且每个人都会说“哇,那些脚本专家真是为读者尽心尽力,不是吗?”

而事实上,我们并非雄心勃勃和努力工作;我们只是脚本专家

往宛城东南方向行军,抵达滑州

'向指定的文件写字符串,第三个参数指定是否删除原来的内容

Function Z_WriteFile(sFileName, sText, bAppend)

Dim fs, fso, iomode

if bAppend=True Then

iomode=8 'ForAppending

else

iomode=2 'ForWriting

end if

set fs=CreateObject("Scripting.FileSystemObject")

set fso=fs.OpenTextFile(sFileName, iomode, True) '第三个参数表明文件不存在,则新建文件

fso.WriteLine sText

fso.Close

set fso=Nothing

set fs=Nothing

End Function

Dim path, sFileName, sText

path="E:\Program\VBScript"

sFileName=path & "\1.txt"

sText="what can I do for you"

Z_WriteFile sFileName, sText, True

然后点击账号右上角的橙色方框【在EA编辑】

Class VBSFetion

Private [$mobile], [$password], http

'Author: Demon

'Website:

'Date: 2011/6/11

'初始化事件

Private Sub Class_Initialize

Set http=CreateObject("Msxml2.XMLHTTP")

End Sub

'结束事件

Private Sub Class_Terminate

Call Logout()

Set http=Nothing

End Sub

'初始化函数

'mobile 手机号

'password 登陆密码

Public Function Init(mobile, password)

[$mobile]=mobile

[$password]=password

str=Login()

If InStr(str, "密码输入错误") Then

Init=False

Else

Init=True

End If

End Function

'发送飞信

'mobile 对方手机号

'message 发送内容

Public Function SendMsg(mobile, message)

If message="" Then Exit Function

If mobile=[$mobile] Then

Send=ToMyself(message)

Else

uid=GetUid(mobile)

If uid <> -1 Then Send=ToUid(uid, message, False)

End If

End Function

'发送短信

'mobile 对方手机号

' 'message 发送内容

Public Function SendShortMsg(mobile, message)

If message="" Then Exit Function

If mobile=[$mobile] Then

Send=ToMyself(message)

Else

uid=GetUid(mobile)

If uid <> -1 Then Send=ToUid(uid, message, True)

End If

End Function

'登陆

Private Function Login()

url="/im/login/inputpasssubmit1.action"

data="m=" & [$mobile] & "&pass=" & [$password] & "&loginstatus=4"

Login=Post(url, data)

End Function

'登出

Private Function Logout()

url="/im/index/logoutsubmit.action"

Logout=Post(url, "")

End Function

'给自己发飞信

Private Function ToMyself(message)

url="/im/user/sendMsgToMyselfs.action"

message="msg=" & message

ToMyself=Post(url, message)

End Function

'给好友发送飞信(短信)

'uid 飞信ID

'message 飞信(短信)内容

'isshort True为短信,False为飞信

Private Function ToUid(uid, message, isshort)

If isshort Then

url="/im/chat/sendShortMsg.action?touserid=" & uid

data="msg=" & message

Else

url="/im/chat/sendMsg.action?touserid=" & uid

data="msg=" & message

End If

ToUid=Post(url, data)

End Function

'获取飞信ID

'mobile 手机号

Private Function GetUid(mobile)

url="/im/index/searchOtherInfoList.action"

data="searchText=" & mobile

str=Post(url, data)

Set re=New RegExp

re.Pattern="/toinputMsg\.action\?touserid=(\d+)"

If re.Test(str) Then

Set ms=re.Execute(str)

GetUid=ms.Item(0).Submatches(0)

Else

GetUid=-1

End If

End Function

'发送HTTP POST请求

Private Function Post(url, data)

url="" & url

http.open "POST", url, False

http.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"

http.send data

Post=http.responseText

End Function

End Class

示例程序:

'初始对象

Set fetion=New VBSFetion

'登陆飞信

If fetion.Init("11122223333", "123456") Then

'发送飞信

fetion.SendMsg "44455556666", "Hello world"

'发送短信

fetion.SendShortMsg "77788889999", "Hello world"

End If

叉叉无限试用最

古代树森林4区海边默认情况下,如果某文件在驱动器2上已存在,则FileSystemObject不会将其从驱动器1复制到驱动器2上

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值