List Separator script

我怕爱的太早我们不能终老 提交于 2019-12-11 05:39:29

问题


How can I change the List separator from the command line?

Normally I have to edit a field in: Control Panel → Change keyboards or other input methods → Additional settings

I would love to create a VBScript that I click which automatically changes from , to ;, and another one that goes back.


回答1:


A single script should suffice. The setting is stored in the registry value HKCU\ControlPanel\International\sList and can be toggled with something like this:

Set sh = CreateObject("WScript.Shell")

path = "HKCU\Control Panel\International\sList"

Set separator = CreateObject("Scripting.Dictionary")
separator.Add True , ";"
separator.Add False, ","

sh.RegWrite path, separator(sh.RegRead(path) = ","), "REG_SZ"


来源:https://stackoverflow.com/questions/27451930/list-separator-script

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!