婷婷综合国产,91蜜桃婷婷狠狠久久综合9色 ,九九九九九精品,国产综合av

主頁 > 知識庫 > 用vbscript實現啟用 Caps Lock (大寫)鍵

用vbscript實現啟用 Caps Lock (大寫)鍵

熱門標簽:深圳外呼系統收費 怎么看地圖標注 廣州ai電銷機器人一般多少錢 拉薩外呼系統業務 外呼線路中繼線是什么 百度地圖標注是什么意思 外呼系統telrobot 外呼系統免費招代理 合肥高德地圖標注
問:
嗨,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實現啟用 Caps Lock (大寫)鍵》,本文關鍵詞  用,vbscript,實現,啟用,Caps,;如發現本文內容存在版權問題,煩請提供相關信息告之我們,我們將及時溝通與處理。本站內容系統采集于網絡,涉及言論、版權與本站無關。
  • 相關文章
  • 下面列出與本文章《用vbscript實現啟用 Caps Lock (大寫)鍵》相關的同類信息!
  • 本頁收集關于用vbscript實現啟用 Caps Lock (大寫)鍵的相關信息資訊供網民參考!
  • 推薦文章
    主站蜘蛛池模板: 翼城县| 夹江县| 元阳县| 凌源市| 汨罗市| 娱乐| 西华县| 新丰县| 庆城县| 长寿区| 财经| 伽师县| 铜陵市| 同江市| 石棉县| 彩票| 岑溪市| 陆川县| 麦盖提县| 铁岭市| 上饶市| 南陵县| 巴林右旗| 钟祥市| 福州市| 乌海市| 泾阳县| 濮阳市| 堆龙德庆县| 赤城县| 聊城市| 常熟市| 江油市| 伽师县| 调兵山市| 图片| 中卫市| 加查县| 德钦县| 安吉县| 马边|