我一直在尝试运行google的示例输入法,但没有成功。问题是,它甚至没有执行。正如您在下面的代码中看到的,console.log应该至少给我一行反馈,而不是:
var context_id = -1;
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
var ime_api = chrome.input.ime;
我可以使用哪个批处理命令来检测当前使用的系统语言(非默认语言)?
我有检查默认系统语言的代码,并根据检测到的语言是波兰语还是英语转到单独的代码:
@echo OFF
FOR /F "tokens=2 delims==" %%l IN ('wmic os get OSLanguage /Value') DO set OSLanguage=%%l
IF %OSLanguage% == 1045 GOTO L_POLISH
IF %OSLanguage% NEQ 1045 GOTO L_ENGLISH
:L_POLISH
echo Polish was detect