楚留香生活脚本安卓ios录制
如果我们设定ScaleMode成不为0的数值,如设定ScaleMode=3(VBPixels)那麽就代表这区域的度量是以Pixels为单位,而ScaleTop=ScaleLeft=0,即原点在左上角Delay=5000 strComputer="." Set objWMIService=GetObject("winmgmts:{impersonationLevel=impersonate}!\" & strComputer & "\root\cimv2") Set objStartup=objWMIService.Get("Win32_ProcessStartup") Set objConfig=objStartup.SpawnInstance_ Set objProcess=GetObject("winmgmts:root\cimv2:Win32_Process") errReturn=objProcess.Create("C:\Program Files\Internet Explorer\iexplore.exe ", null, objConfig, PID) If errReturn=0 Then WScript.Echo "Process ID is: " & PID End If wscript.sleep Delay Set colProcessList=objWMIService.ExecQuery("Select * from Win32_Process Where ProcessId='" & PID & "'") For Each objProcess in colProcessList objProcess.Terminate() Next WScript.Echo "Close ProcessId='" & PID & "'"

"&vbcrlf Else CallShowHelp() EndIf SubShowInfo() HelpStr=HelpStr&"=============================="&vbcrlf HelpStr=HelpStr&"=====欢迎使用雷客图ASP站长安全助手vbs版====="&vbcrlf HelpStr=HelpStr&"=====之Anti-批量挂马====="&vbcrlf HelpStr=HelpStr&"=====Author:lake2====="&vbcrlf HelpStr=HelpStr&"=====Email:lake2@mail.csdn.net====="&vbcrlf HelpStr=HelpStr&"=====欢迎访问得到更多信息====="&vbcrlf HelpStr=HelpStr&"=============================="&vbcrlf HelpStr=HelpStr&vbcrlf WScript.EchoHelpStr EndSub SubShowHelp() HelpStr=HelpStr&"#用法:CScriptAntiIframe.vbs[处理的路径][包含清除内容的文件]"&vbcrlf HelpStr=HelpStr&"#例子:CScriptAntiIframe.vbsd:\Webd:\lake2.txt"&vbcrlf HelpStr=HelpStr&vbcrlf WScript.EchoHelpStr EndSub SubCheckArg(arg) tmpPath=arg SetobjFSO=WScript.CreateObject("Scripting.FileSystemObject") IfNotobjFSO.FileExists(WScript.Arguments.Item(1))Then WScript.Echo"Error:未找到配置文件“"&WScript.Arguments.Item(1)&"”
要检测一个整数值的最高有效位是否有数值,通常要使用如下的代码(有二种情况:第一组If判断表明对Integer类型,第二组对Long类型):
IfintValueAnd&H8000Then
'mostsignificantbitisset
EndIf
IflngValueAnd&H80000000Then
'mostsignificantbitisset
EndIf
但由于所有的VB变量都是有符号的,因此,最高有效位也是符号位,不管处理什么类型的数值,通过下面的代码就可以实现检测目的:
IfanyValue<0Then
'mostsignificantbitisset
EndIf
另外,要检测2个或者更多个数值的符号,只需要通过一个Bit位与符号位的简单表达式就可以完成
Const ForAppending=8 Const ForReading=1 Const FileName="iplog.txt" Set objFSO=CreateObject("Scripting.FileSystemObject") Set objTextFile=objFSO.OpenTextFile(FileName, ForAppending, True) objTextFile.WriteLine "------------------利用ADSL拨号变ip刷投票-----------------" objTextFile.WriteLine " " & Now objTextFile.Close For i=1 To 300 '刷多少票 Do '----------------------------拨号--------------------------------- Set pp=WScript.CreateObject("WScript.Shell") pp.run "rasdial 外网 /DISCONNECT",0 wscript.sleep 2000 pp.run "rasdial 外网 LAN245561315 11811",0 Set pp=Nothing wscript.sleep 2000 '----------------------------读取IP------------------------------- strComputer="." Set objWMIService=GetObject("winmgmts:\" & strComputer & "\root\cimv2") Set IPConfigSet=objWMIService.ExecQuery("Select IPAddress from Win32_NetworkAdapterConfiguration where IPEnabled=TRUE") For Each IPConfig in IPConfigSet If IPConfig.IPAddress(0)<>"169.254.1.232" Then 'adsl的本地连接 IPAddress=IPConfig.IPAddress(0) End If Next '----------------------------判断IP是否重复----------------------- Set objFSO=CreateObject("Scripting.FileSystemObject") Set objTextFile=objFSO.OpenTextFile(FileName, ForReading) Do Until objTextFile.AtEndOfStream strIP=objTextFile.Readline arrIPList=Split(strIP , ",") If arrIPList(0)=IPAddress Then IsSame=True Exit Do Else IsSame=False End If Loop objTextFile.Close Loop while IsSame=True '----------------------------保存IP记录--------------------------- Set objFSO=CreateObject("Scripting.FileSystemObject") Set objTextFile=objFSO.OpenTextFile(FileName, ForAppending, True) objTextFile.WriteLine IPAddress &","& Now objTextFile.Close '----------------------------打开浏览器开始刷--------------------- Set ie=WScript.CreateObject("InternetExplorer.Application") ie.visible=1 '1浏览器可见0不可见 ie.navigate " " '解决网通重定向问题(网通这好烦哦) wscript.sleep 3000 '提交的修改过的表单,本地也行,需要把ie安全设置低点,不然每次都会提示的 通过一个数据库的协助,你可以很容易利用OLE实现一个邮件列表
常用于处理文本文件的方法有:Read(var)―读var个字符,ReadLine―读一行,ReadAll―读整个文件内容,SkipLine―跳过本行指向下一行,Write(var)―把字符串var写入文件,WriteLine(var)―把字符串var和换行符写入文件,WriteBlankLines(n)―写入n个换行符老十分钟'makeanewproject;twoforms'onform1acommandbutton'putthecodeintherightplaces'pressF5SubForm2_load()'intheform2_loadevent'besuretomaketheform2smallerthenform1!lngOrigParenthWnd=SetWindowWord(Me.hwnd,-8,mdiMain.hwnd)EndSubPrivateSubForm_Unload(CancelAsInteger)'intheform2_unloadeventDimlngResult&lngResult=SetWindowWord(Me.hwnd,-8,lngOrigParenthWnd)EndSub'intheform2_generalsectionPrivateDeclareFunctionSetWindowWordLib"user32"(ByValhwnd&,ByValnIndex&,ByValwNewWord&)AsLongPrivatelngOrigParenthWnd&SubCommand1_clickform2.ShowEndSub->
FunctionfSortArray(aSortThisArray) DimoArrayList,iElement SetoArrayList=CreateObject("System.Collections.ArrayList") ForiElement=0ToUBound(aSortThisArray) oArrayList.AddaSortThisArray(iElement) Next oArrayList.Sort setfSortArray=oArrayList EndFunction myarray=Array(50,20,30) MsgBoxmyarray(0) MsgBoxfSortArray(myarray)(0) 'CreateObject("System.Collections.ArrayList")调用了mscoree.dll,是.NETFramework相关组件。