Ps: I don't know if anyone remembers the code that attacked the QQ group? This is what I wrote!
SendKeys
Simulate a keyboard operation and send one or more key commands to a specified Windows window to control the application running,
The format is: object. SendKeys string
"Object": WshShell object"String": the string of the key command to be sent, which must be placed in double quotation marks.
1. Basic K
Vbs basics-Miscellaneous-sendkeys
Simulate a keyboard operation and send one or more key commands to a specified Windows window to control the application running
The format is as follows:Object. sendkeys (string)
Object: Wshshell object
String: Indicates the key command string to be sent, which must be placed in double quotation marks.
Basic Key
Each key is represented by one or more characters.
To specify
SendKeys reference Documentation
has been using the FOXIPGW program to automatically login to the gateway, today made an automatic call FOXIPGW program, you do not have to "determine" each time, the code is as follows.
Set s= wscript.createobject ("Wscript.Shell")
App_window = S.run ("D:\Soft\FoxIPGW.EXE")
Wscript.Sleep 200
S.appactivate App_window
S.sendkeys "{ESC}"
S.sendkeys "{ESC}"
The following is a description of the use of
PS: Do not know someone still remember this attack QQ group code? is to use this to write!
SendKeys
Simulates the keyboard operation, sending one or more key commands to the specified Windows window to control the application running.
The format used is: Object. SendKeys string
"Object": Represents the WshShell object
"String": Represents the key command string to be sent, which needs to be placed in doubl
Function: send one or more key messages to the activity window, just like inputting on the keyboard.
Syntax: SendKeys. Send (string keys); SendKeys. SendWait (string keys );
Note:
(1) Each key is represented by one or more characters. To specify a single keyboard character, you must press the character key. For example, to represent the letter A, you can use "A"
to false.
For example: SendKeys (' ABCDEFG ', false);
It is worth mentioning that the SendKeys function supports sending special characters and combination characters, such as arrow keys, ALT, and CTRL key combinations.
When used, just use the specified prefix. + for shift,^ to ctrl,% for Alt.
For example:
' +mon
The format used is: Object. SendKeys string
"Object": Represents the WshShell object
"String": Represents the key command string to be sent, which needs to be placed in double quotes in English.
1. Basic key
In general, the key commands to be sent can be represented directly by the key character itself, such as sending the letter "X" and using "Wshshell.sendkeys" X "". Of course, can also send multiple key commands directly, only to the key charact
Function:Send one or more key messages to the activity window, just as you input them on the keyboard.
Syntax: sendkeys. Send (string keys); sendkeys. sendwait (string keys );
Note:
(1) Each key is represented by one or more characters. To specify a single keyboard character, you must press the character key. For example, to represent the letter A, you can
Function: Sends one or more key messages to the active window as if you were typing on a keyboard.
Syntax: Sendkeys.send (string keys); Sendkeys.sendwait (string keys);
Description
(1) Each key is represented by one or more characters. In order to specify a single keyboard character, you must press the key of the character itself. For example, to represent the letter A, you can use "a" as a string. In order to represent more than one character, you
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 cou
Function: sends one or more key messages to the active window as if it were entered on the keyboard. Syntax: Sendkeys.send (string keys); Sendkeys.sendwait (string keys);Description(1) Each key is represented by one or more characters. In order to specify a single keyboard character, you must press the key of the character itself. For example, to represent the letter A, you can use "a" as a string. To represent more than one character, you must preced
Today is an excellent offer! When simulating a keyboard operation, you can hear it. Hey, isn't it? /...Go to the topic ..The following two syntaxes are used to simulate keyboard input.SendKeys. Send (string keys); // simulate Chinese character (text) InputSendKeys. SendWait (string keys); // simulate key inputLet's take a look at the usage of the two syntaxes! Paste the code later to see if you can understand it /...
(1) Each key is represented by one or more characters. To specify a single keyb
The analog keyboard input is implemented using the following 2 syntaxes.Sendkeys.send (string keys); Analog kanji (text) inputSendkeys.sendwait (string keys); Analog Key inputLet's take a look at the usage of the 2 syntax! Post the code later to see if you can read it.(1) Each key is represented by one or more characters. In order to specify a single keyboard character, you must press the key of the character itself. For example, to represent the lett
CopyCode The Code is as follows: dim wshshell
Set wshshell = Createobject ("wscript. Shell ")
Each line below is a good command. Please explain the effect of running each of the following statements. Do not run all at a time to view the results one by one.
'Open IE
'Wshshell. sendkeys CHR ( h88ac)
'System mute
'Wshshell. sendkeys CHR ( h88ad)
'Wshshell. sendkeys
The analog keyboard input is implemented using the following 2 syntaxes.Sendkeys.send (string keys); Analog kanji (text) inputSendkeys.sendwait (string keys); Analog Key inputLet's take a look at the usage of the 2 syntax! Post the code later to see if you can read it.(1) Each key is represented by one or more characters. In order to specify a single keyboard character, you must press the key of the character itself. For example, to represent the lett
Copy codeThe Code is as follows: '==============================================
'Sendkeys in VBS simulate keyboard keys
'2013-26
'Liu Lin
'==============================================
Dim WshShell
Set WshShell = WScript. CreateObject ("WScript. Shell ")
WshShell. Run "cmd"
'Wait the script for 1000 milliseconds, that is, 1 second before executing the next statement.
WScript. Sleep 1000
'-- When sending characters, the input method must be in the En
Remote control using sendkeys in vb.net:Sendkeys has been used in vb6. Remote control is used to indirectly control external programs by sending keyboard events.In vb7, I found that this was useless and it was useless. Later I saw this when I checked msdn. I tried it and it turned out to be as easy as it was to use.In the system. winforms family, the sendkeys usage is the same as that in vb6.Key: The genera
Go to Blog: Shanghai-leisurelyObjectiveMany small partners asked non-input tags how to upload documents, this is a hole in itself, helpless many small partners to jump in the pit, then introduce a non-mainstream upload file method, with third-party library SendKeys.(This article is based on the python2.7 version, Python3 installation of SendKeys bag to find a way to do it yourself)First,
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.