How can I simulate Alt+Shift to change the language in Windows?

ⅰ亾dé卋堺 提交于 2019-12-23 10:39:52

问题


i need to to force alt + shift in Delphi to make my language of the app. I tried with keybd_event calling it twice, but it didn't do the trick.


回答1:


Do you want to switch input language of your application? Use ActivateKeyboardLayout function for this.




回答2:


Do you control the system to be sure that it's going to respond to that? I have an alternate language installed but it can only be switched via the mouse, I have disabled the keyboard shortcuts. The problem is that I rarely actually need the alternate but I was frequently switching by accident.



来源:https://stackoverflow.com/questions/4607323/how-can-i-simulate-altshift-to-change-the-language-in-windows

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