Vbs bubble program with a warm prompt in the bottom right corner of the desktop

Source: Internet
Author: User

The principle of this function is to use vbs to generate an EXE file and then run it. However, this EXE is relatively small, so there is no need for two files. One vbs can achieve the vbs bubble effect. CopyCode The Code is as follows: Data = "success"

Function extractfile (filename)
With Createobject ("ADODB. Stream"):. type = 1:. Open:. Write strtobyte (data):. savetofile filename, 2:. Close: end
End Function

Extractfile "C: \ balloontip.exe"
Wscript. createobject ("wscript. shell "). run "cmd.exe/c: \ balloontip.exe" "do not place valuables on the computer desk to prevent theft. Please keep your own virtual accounts. If any Internet cafe is lost, you are not responsible! "" Tip 10000 1 ", 0

Function strtobyte (STR)
Set xmldoc = Createobject ("Microsoft. xmldom ")
Xmldoc. loadxml "<? XML version = "" 1.0 ""?> "
Set PIC = xmldoc. createelement ("pic ")
PIC. datatype = "bin. Hex"
PIC. nodetypedvalue = Str
Strtobyte = pic. nodetypedvalue
End Function

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.