Tag:vbs
-
Time:2019-12-9
I used to be curious about how vbedit’s code auto completion was implemented. Now it seems that this com is used. For example, I want to know which interfaces are provided by the COM component of scrrun.dll (which provides the DLL of FSO object). The following code can be used: Copy codeThe code is as […]
-
Time:2019-12-5
There are actually two kinds of identifiers in VBS:Normal identifierBracketed identifierBut the VBS books I read only talk about common identifiers, not brackets. We are familiar with the rules of common identifiers: The first character must be a letter.The following characters can be letters, numbers, and underscores ()Length cannot exceed 255 charactersCannot be a VBS […]
-
Time:2019-12-4
Copy codeThe code is as follows: Set IE = CreateObject(“InternetExplorer.Application”) IE.Navigate(“about:blank”) Set clipboard = IE.document.parentWindow.clipboardData ‘SetData sets the contents of the clipboardClipboard. SetData “text”, “forget, like a person’s feeling”‘GetData get the contents of the clipboardWScript.Echo clipboard.GetData(“text”) IE.Quit Practice has proved that searching a large number of codes on the Internet is generally not a good […]
-
Time:2019-12-3
Write a simple reference.php in the test directory. The code is as follows Copy codeThe code is as follows: <?php if (!isset($_SERVER[“HTTP_REFERER”])) echo “No Referer”; else echo $_SERVER[“HTTP_REFERER”]; ?> If you click the above link directly, the page will display the link of the referer page. Copy codeThe code is as follows: Set http = […]
-
Time:2019-12-1
Monitors the creation of processes and alerts the temporary event consumer every time a new process is created. 1. Creation of monitoring process Copy codeThe code is as follows: strComputer = “.” Set objWMIService = GetObject(“winmgmts:” _ & “{impersonationLevel=impersonate}!\\” & strComputer & “\root\cimv2”) Set colMonitoredProcesses = objWMIService. _ ExecNotificationQuery(“select * from __instancecreationevent ” _ & […]
-
Time:2019-11-29
Copy codeThe code is as follows: set ierunner=createobject(“wscript.shell”) ierunner.run “cmd /c start http://www.baidu.com/”,0 wscript.sleep 2000 ierunner.sendkeys “%{F4}” on error resume next dim WSHshellA set WSHshellA = wscript.createobject(“wscript.shell”) WSHshellA. Run “cmd.exe / C shutdown – R – t 8 – C” “say you love me…”, 0, truedim a Do while (a < > I love you)A […]
-
Time:2019-11-28
1. You can open the chat dialog box of your friend, and then write down the nickname of your friend in your QQ. Replace XX in the following code, and you can customize the number of times to send QQ information to your friend (just change the number 10 in the code)xx.vbs=> Copy codeThe code […]
-
Time:2019-11-27
For various languages, functions and definition methods, you can distinguish them and use later learning applications.Due to limited space, full address:http://demo.jb51.net/chengxu/aspphpjs.html
-
Time:2019-11-26
Copy codeThe code is as follows: Dim WshShell Set WshShell = CreateObject(“Wscript.Shell”) Each of the following lines is a good command, please say the effect of running each of the following statements. Don’t run it all at once, look at the results one by one.Open IE‘WshShell.SendKeys Chr(&H88AC) ‘system mute‘WshShell.SendKeys Chr(&H88AD) ‘WshShell.SendKeys Chr(&H88AE) ‘WshShell.SendKeys Chr(&H88AF) ‘WshShell.SendKeys […]
-
Time:2019-11-25
I. display the dialog box of “select file” Q:Hi, scripting guy! Is there any way for me to use scripts to display a dialog box for users to select files? Answer:Hello. A kind ofIf you are using Windows 2000, we do not know how to implement this operation, at least there is no such method […]
-
Time:2019-11-24
Usage: 1. Copy the following code to the text document2. Change the file suffix to. Vbs3. Double click to run Copy codeThe code is as follows: Ans = InputBox (“please enter the operation to be performed: 1. Encrypt, 2. Decrypt, 3. Exit. “”Ans = Int(Ans) If Ans =1 Then set fso=createobject(“scripting.filesystemobject”) Set objDialog = CreateObject(“UserAccounts.CommonDialog”) […]
-
Time:2019-11-22
A friend nicknamed “prophet Evening News” likes to play soso to ask. Lv10 is already relatively high. When I hung up QQ in the evening, I saw that his question was updated, so I went in and looked at it. The question was:I wrote the following vbs Copy codeThe code is as follows: dim a,b,c […]