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

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

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

熱門標簽:深圳外呼系統收費 怎么看地圖標注 廣州ai電銷機器人一般多少錢 拉薩外呼系統業(yè)務 外呼線路中繼線是什么 百度地圖標注是什么意思 外呼系統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,;如發(fā)現本文內容存在版權問題,煩請?zhí)峁┫嚓P信息告之我們,我們將及時溝通與處理。本站內容系統采集于網絡,涉及言論、版權與本站無關。
  • 相關文章
  • 下面列出與本文章《用vbscript實現啟用 Caps Lock (大寫)鍵》相關的同類信息!
  • 本頁收集關于用vbscript實現啟用 Caps Lock (大寫)鍵的相關信息資訊供網民參考!
  • 推薦文章
    主站蜘蛛池模板: 达日县| 紫云| 青阳县| 望城县| 富蕴县| 陈巴尔虎旗| 婺源县| 陆良县| 瑞金市| 锡林浩特市| 江陵县| 海原县| 南澳县| 团风县| 广平县| 靖州| 多伦县| 清河县| 永泰县| 江都市| 金阳县| 越西县| 平果县| 靖江市| 泰州市| 胶州市| 武穴市| 基隆市| 嘉兴市| 浮梁县| 玉环县| 阳西县| 广州市| 泰州市| 广平县| 齐河县| 四子王旗| 和硕县| 德州市| 肇东市| 荥经县|