I think it is awesome to read the title. I have heard that I can use PHP to send text messages (fetion) and Python to implement PyFetion to send text messages (fetion ). I have also read the corresponding PHP and Python source code. The implementation is still complicated. Can I use VBS for implementation?
After seeing the code, I felt that the code was actually implemented using the interface above 10086.cn (Mobile official website). Has the officia
Today, the boring stroll a search to ask, to find such a problem:
Who can provide a detailed procedure for the factorial of 20 in the VBS
Here are some answers to this:
Copy Code code as follows:
function JX (x)
J=1
For i=2 to X
J=j*i
Next
Jx=j
End Function
MsgBox Jx (20)
Run the above program and output 2.43290200817664E+18. Laughing without words, once again proved my previous conclusion, in this site to answe
VBS actually has two types of identifiers:
Generic identifier (Normalidentifier)
Bracket identifier (bracketidentifier)
But all the VBS books I've seen are just plain identifiers, without the bracket identifiers.
Rules for common identifiers we are already familiar with:
The first character must be a letter.The characters that follow can be letters, numbers, and underscores (_)
Length cannot exceed 2
Originally intended to write their own, but see the complexity of the algorithm described on the shrink. Forget it, there are ready-made COM object calls, why to care about the algorithm, directly to use on the line. If the following example code prompts you not to create an object, you need to download the CAPICOM component and register it.
Copy Code code as follows:
Const CAPICOM_HASH_ALGORITHM_MD2 = 1
Const CAPICOM_HASH_ALGORITHM_MD4 = 2
Const CAPICOM_HASH_ALGORITHM_MD5 =
First we look at an example of an input letter:
Copy Code code as follows:
Set S = WScript.CreateObject ("Wscript.Shell")
App=s.run ("C:\windows\notepad.exe")
Code= "Biweilun"
Wscript.Sleep 1000
S.appactivate app
S.sendkeys Code
Wscript.Quit
This VBS will SendKeys method friends know, the role is to open a notepad, and then "Biweilun" this string of characters into, of course, you can replace the code parameter CHR (
End If
Next
If Complete=ubound (arrhttp) +1 Then Exit do
Timeout=timeout+1
If timeout=5*30 Then
' Set according to file size
MsgBox "30 Seconds Timeout!" "
Wscript.Quit
End If
Loop
If FSO. FileExists (filepathfilename) Then fso. DeleteFile (Filepathfilename)
Fso. DeleteFile (filepath "Tmpfile")
Ado. SaveToFile (Filepathfilename)
MsgBox "File Download complete!" "
Function getfilename (URL)
Arrtmp=split (URL, "/")
Getfilename=arrtmp (UBound (arrtmp))
End Function
Function
Because the editor filters some characters, such as Ampersand, the following script may run incorrectly. Reader add this character is OK.
The function of the VBS script is many, but sometimes we only need some of these features, today I suddenly want to study how to use the VBS script implementation to add programs to the self starter ...
Let's start with a paragraph ...
Copy Code code as follows:
parameter is a variable that you define when you define a function, which is used to "catch" the passing
The amount that comes over, such as function Co (T1,T2) T1,T2 is the formal parameter.
In VBScript, parameter passing is a value, not an address (do not understand it does not matter, learn the C language pointer you understand), so we carry on the participation
The number pass is actually a variable assignment, such as we call Co (A1,A2), and in fact the program does one step: t1=a1,t2=a
In a certain time, to run a regular ASP file to perform a task, such as a factory at 9 o'clock in the morning to collect all the meter readings, of course, through in-SQL connection to the various meters, we are now using an ASP file to the table in the SQL of the reading again to focus on MS SQL.
There are a number of ways you can see the timing of running ASP files, but what I'm going to say now is an easy way to make use of a scheduled task to do it easily.
First, you have to write a JS or
File actions
Copy Code code as follows:
Set FSO = WScript.CreateObject ("Scripting.FileSystemObject") ' Creates file system objects to work with drives, folders, and files
Set WshShell = WScript.CreateObject ("Wscript.Shell") ' Creates system Shell objects to run programs and so on
If Fso.fileexists ("D:\ Sword Online\alreadyexist.txt") Then ' if found file ' D:\ Sword online\alreadyexist.txt '
Wshshell.run ("D:\ Sword online\ Sword Online.exe") ' Run ' D:\ Sword online\ Swo
This article to share is the use of VBS to display the current time 2 instances, very simple and practical, the need for small partners can refer to.
VBS displays the current standard time, for example: The following code is displayed: 2013-05-11 19:10:11
?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26-27--28 29---30 31--32 33 34 35 36 37 38-39 40 41 42 45 46 47 48 49 5
Copy Code code as follows:
If not wscript.arguments.count=1 Then WScript.Echo "Please drag the VBS file you want to convert to me!" ": Wscript.Quit
Set fso=createobject ("Scripting.FileSystemObject")
Set Self=fso. OpenTextFile (Wscript.scriptfullname)
Set Vbs=fso. CreateTextFile (Left (wscript.arguments (0), Len (wscript.arguments (0))-4) + "_xorencode.vbs")
Do Until self. AtEndOfStream
Aline=self
' registry unlock success! '
Save as a file with a. vbs extension and double-click it when you use it.
Second, close the win nt/2000 default sharing
Edit the following in Notepad:
Dim WshShell ' defines a variable
Set Wshshell=createobject ("Wscript.Shell") ' creates an object that communicates with the operating system WshShell
Dim FSO,DC
Set fso=createobject ("Scripting.FileSystemObject") ' Creates file system objects
Set DC=FSO. Drives ' Get al
Just look at the title has been very good, heard that you can use PHP to send text messages (fly a letter), but also used the Python implementation of the pyfetion sent a message (fly a letter). I have also seen the corresponding PHP and Python source code, to achieve a more complex, can I use VBS to achieve?
See the code more feel, unexpectedly is the use of 10086.cn (mobile official website) above the interface to achieve, flying letter official ha
nonsense!!! ")
WScript.Echo ("I should have disappeared, but I miss you, God gave another chance.") ")
WScript.Echo ("Do you want to knot me?")
WScript.Echo ("Do you want to knot me?")
WScript.Echo ("Do you want to knot me?")
WScript.Echo ("Do you want to knot me?")
WScript.Echo ("Do you want to knot me?")
WScript.Echo ("Do you want to knot me?")
WScript.Echo ("Do you want to knot me?")
WScript.Echo ("Do you want to knot me?")
WScript.Echo ("Do you want to knot me?")
WScript.Echo ("D
VBScript (Microsoft Visual Basic Script Editon), Microsoft's Visual BASIC Script version). As literally disclosed, VBS (further abbreviated as VBScript) is a Visual Basic-Based Script Language.Lcx shares how to use vbs to execute shellcode. It is believed that it can play a role for security researchers in the penetration test process. The source code is as follows:
'Thanks http://demon.tw/.shellcode It is
When talking about how to use vbs to download files, Do you think of XMLHTTP?
Code :
Ilocal = lcase (wscript. Arguments (1 ))
Iremote = lcase (wscript. Arguments (0 ))
Set xpost = Createobject ("Microsoft. XMLHTTP ")
Xpost. Open "get", iremote, 0
Xpost. Send ()
Set sget = Createobject ("ADODB. Stream ")
Sget. mode = 3
Sget. type = 1
Sget. open ()
Sget. Write xpost. responsebody
Sget. savetofile ilocal, 2
When you save this code as
" menu.
--- Just Do It ---------------------------------
Let the vbs script automatically input a line of text "Hello, welcome to cfan" in the text ".
Dim wshshell
Set wshshell = wscript. Createobject ("wscript. Shell ")
Wshshell. Run "Notepad"
Wscript. Sleep 200
Wshshell. appactivate "untitled-Notepad"
Wshshell. sendkeys "Hello, welcome to cfan"
Our most commonly used notepad does not have the automatic timing storage function like word or Wps. In fa
This article writes that searching for multiple versions of N still cannot solve my problem. Many vbs versions call thunder in the following ways:
Set thunderagent = Createobject ("thunderagent. agent.1 ")
Here we will introduce the addtask function. The first parameter of this function is the URL to be downloaded, the second parameter is the file name to be saved, the third parameter is the Save path, the fourth parameter is the Reference URL, and t
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.