一起学习网 一起学习网


用vbscript实现启用 Caps Lock (大写)键

网络编程 用vbscript实现启用 Caps Lock (大写)键 06-21
问:
嗨,Scripting Guy!I have a script where users enter some information in an Input box.The information needs to be entered in all-capital letters, so my instructions say, “Please make sure the Caps Lock key is on before entering the information.”They don't always do that, however.Is there a way to turn the Caps Lock key on and off using a script?
-- BW, Medford, OR
答:
Hey, BW.We don't know of a way to turn the Caps Lock key on and off, but we do know a way to mimic the effect of having the Caps Lock key on.After all, the whole point of the Caps Lock key is to turn everything you type into uppercase letters.For example, you might type this:
this is my sentence.
But Caps Lock will make it appear on screen like this:
THIS IS MY SENTENCE.
So how can we achieve the same affect in a script?简单:we just use the VBScript function UCase, which switches all the letters in a string to their uppercase equivalent.For example, here's a simple two-line script that gathers information from a user and then uses the UCase function to switch all the letters to uppercase when echoing the value to the screen:
strMessage = InputBox("Please enter your message:")Wscript.Echo UCase(strMessage)
Incidentally, the above script doesn't actually change the case of the letters in the string strMessage; it just displays them in uppercase.If you really want all the letters converted to uppercase, try this script instead:
strMessage = UCase(InputBox("Please enter your message:"))Wscript.Echo strMessage
Looks crazy, but it works.
For more information about the UCase function, see theVBScript 文档 on MSDN.

vbscript和javascript版的15位, 18位的身份证号码的验证函数.以及根据身份证取省份,生日,性别
工作中需要用到身份证验证,还要支持检查15位和18位。我一时手懒,问同事有没有现成的函数可用,同事google了一下,扔给我一个asp-vbscript版本的函数

发老兵及海洋VBS解包工具代码
关于为什么提供打包程序和打包压缩文件.MDB的解压2006.asp海阳顶端网asp木马2006版文件unpack.vbs打包文件"hytop.mdb"的解开器2006x.exe海阳顶端网asp木马2006c/s

把vbscript发挥到它的极限应用之一(数组)!!!
大家都知道,vb曾得到广范的应用,理由就是他学习简单应用方便,利用actvivx(OLE)技术,几乎是无所不能,但是那却不能堪称为规范的语言,在N些方


编辑:一起学习网

标签:海阳,函数,木马,身份证,同事