服务的Windows服务器/键盘配置 [英] Windows Server / Keyboard Configuration for Services

查看:197
本文介绍了服务的Windows服务器/键盘配置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有谁知道如何更改Windows服务启动的Windows服务和应用程序的键盘布局。我有一个服务器,我可以找到的每个语言/区域/位置选项都设置为英国英国/英国,但服务器上运行的服务返回的键盘布局名称显示409英国美国。敲门效应是@被解释为〜。

Does anyone know how to change the keyboard layout for windows services and applications started by windows services. I have a server where every language / region / location option I can find is set to English UK / British but the keyboard layout name returned by services running on the server shows 409 which is English US. The knock on effect is that @ are interpreted as ~.

推荐答案

我们的应用程序内置了一个自动化层,用于记录稍后要重放的窗口消息。这允许用户记录报告的生成,然后在需要时回放该报告。有问题的应用程序的一部分是记录收件人电子邮件地址。当从常规桌面启动播放时,@符号正确显示但是当从Windows服务启动播放时,收件人电子邮件地址中的@符号(虚拟键VK_OEM_3)被解释为〜字符,导致SMTP电子邮件失败。创建测试服务以将键盘布局详细信息转储到调试窗口,这是用尽可能少的步骤重现问题的最简单方法。在我测试的机器和其他服务器上,键盘布局按照预期返回809,英国英语。
We have an automation layer built into our applications which records windows messages to be replayed later. This allows a user to 'record' the generation of a report and then 'play' that back when required. Part of the application in question is the recording of a recipient email address. When the playback is launched from a regular desktop the @ symbol appears correctly but when the playback is launched from a windows service the @ symbol (virtual key VK_OEM_3) in the recipient email address is interpreted as a ~ character which causes the SMTP email to fail. Creating a test service to dump the keyboard layout details to the debug window was just the simplest way to reproduce the problem with the least amount of steps possible. On my machine and other servers I've tested the keyboard layout is returned as 809, English UK, as expected.


在这种情况下,您还应该记录应用程序使用的键盘布局要监视,并且播放应用程序应将其键盘布局设置为存储在录制中的值。
In that case, you should also record the keyboard layout used by the application to be monitored, and the playback application should set its keyboard layout to the value stored in the recording.


De =稳定在多个Windows版本上运行多年的软件以处理一个问题服务器不是答案!
De=stabilising software that's been running for years on multiple versions of Windows to handle one problem server is not the answer!


这篇关于服务的Windows服务器/键盘配置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆