Use vbs sendkeys in hexadecimal notation (enable IE, mute, and enable player)

Source: Internet
Author: User

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 CHR (& h88ae)
'Wshshell. sendkeys CHR (& h88af)
'Wshshell. sendkeys CHR (& h88b4)
'Wshshell. sendkeys CHR (& h88b5)
'Wshshell. sendkeys CHR (& h88b6)
'Wshshell. sendkeys CHR (& h88b7)

Open IE in combination, enter www.jb51.net and press ENTERCopy codeThe Code is as follows: dim wshshell
Set wshshell = Createobject ("wscript. Shell ")
Wshshell. sendkeys CHR (& h88ac)
Wscript. Sleep 2000
Wshshell. sendkeys "www.jb51.net"
Wshshell. sendkeys "{enter }"

Let the system mute code, save the following code as 1.vbs, and double-click to run it.Copy codeThe Code is as follows: dim wshshell
Set wshshell = Createobject ("wscript. Shell ")
Wshshell. sendkeys CHR (& h88ad)

If you study the rest, you can leave a message to supplement the study.
Generally, sendkeys are unreliable because the focus of the window is often unpredictable and difficult to control. The appactivate method sometimes causes the window to flash and cannot be activated again.ProgramThere is no way.
Hexadecimal Description: http://www.jb51.net/article/26388.htm

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.