校园春色亚洲色图_亚洲视频分类_中文字幕精品一区二区精品_麻豆一区区三区四区产品精品蜜桃

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

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

熱門標(biāo)簽:深圳外呼系統(tǒng)收費 怎么看地圖標(biāo)注 廣州ai電銷機器人一般多少錢 拉薩外呼系統(tǒng)業(yè)務(wù) 外呼線路中繼線是什么 百度地圖標(biāo)注是什么意思 外呼系統(tǒng)telrobot 外呼系統(tǒng)免費招代理 合肥高德地圖標(biāo)注
問:
嗨,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.

標(biāo)簽:臺灣 玉林 嘉興 漳州 延安 六安 周口 廣安

巨人網(wǎng)絡(luò)通訊聲明:本文標(biāo)題《用vbscript實現(xiàn)啟用 Caps Lock (大寫)鍵》,本文關(guān)鍵詞  用,vbscript,實現(xiàn),啟用,Caps,;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問題,煩請?zhí)峁┫嚓P(guān)信息告之我們,我們將及時溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無關(guān)。
  • 相關(guān)文章
  • 下面列出與本文章《用vbscript實現(xiàn)啟用 Caps Lock (大寫)鍵》相關(guān)的同類信息!
  • 本頁收集關(guān)于用vbscript實現(xiàn)啟用 Caps Lock (大寫)鍵的相關(guān)信息資訊供網(wǎng)民參考!
  • 推薦文章
    主站蜘蛛池模板: 定远县| 厦门市| 刚察县| 饶阳县| 乐安县| 叶城县| 宾川县| 双鸭山市| 阳东县| 英德市| 永嘉县| 贞丰县| 临西县| 黄梅县| 田东县| 雷州市| 新泰市| 嘉善县| 江口县| 合肥市| 武威市| 宁南县| 和平区| 许昌县| 平定县| 茶陵县| 南和县| 昔阳县| 南城县| 浮梁县| 宁远县| 德阳市| 双牌县| 衡山县| 萍乡市| 车致| 沙坪坝区| 大理市| 邹城市| 二连浩特市| 阳朔县|