Solved

Any way to stick a keyboard layout to an apps?

Posted on 2011-03-25
8
358 Views
Last Modified: 2012-05-11
Hi,
I have to keyboard layout installed on my Windows 7, FR and EN.

I use FR in Office in general and I also work a lot with unix server where I login using putty which I manually switch to EN everytime.

Is there a way (or an third party application) to make sure my keyboard layout is EN when I start PuTTY?

Thank you!
0
Comment
Question by:Fenplast
  • 2
  • 2
  • 2
8 Comments
 
LVL 22

Expert Comment

by:danaseaman
ID: 35310127
See Public Function SetKbLayout
Const LANG_EN_US As String = "00000409"
Sample usage for EN keyboard: SetKbLayout LANG_EN_US '

http://allapi.mentalis.org/apilist/LoadKeyboardLayout.shtml
http://allapi.mentalis.org/apilist/LoadKeyboardLayout.shtml#
0
 
LVL 24

Expert Comment

by:jimyX
ID: 35312132
Let me check if I understood your requirement correctly, you need the active keyboard language to be En whenever you switch to PuTTY? If yes, then:
Generally there is no way, it has to be programmed in PuTTY itself to select certain language when it's activated.
0
 

Author Comment

by:Fenplast
ID: 35315047
Danaseaman: What you suggest is to use a VB Script to set the keyboard layout, then call PuTTY?

JimyX: You did understand me well, When I start PuTTY, I change the language manually via the language bar, I just wonder if there is a way to automate that.
0
What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

 
LVL 22

Accepted Solution

by:
danaseaman earned 250 total points
ID: 35315618
Esentially yes, but I don' think you can call this code from VbScript.

The code supplied is Vb6 but should work also in VBA.

For vbScript you would probably have to create a DLL using Vb6 and call that from vbScript. Or create a Vb6 Exe and call that from vbScript (ShellExecute)..
0
 
LVL 24

Assisted Solution

by:jimyX
jimyX earned 250 total points
ID: 35317099
Then I doubt if that is possible through easy and clean way. It has to involve hacking/programming, such as embedding the PuTTY in another application that sets the default keyboard layout to any particular language.
0
 

Author Comment

by:Fenplast
ID: 35317462
Ok, thanks for the answers.

You did not gave me the answer I wanted but I understand it is not feasible!

Thanks for your effort :)
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Recently Microsoft released a brand new function called CONCAT. It's supposed to replace its predecessor CONCATENATE. But how does it work? And what's new? In this article, we take a closer look at all of this - we even included an exercise file for…
New Windows 7 Installations take days for Windows-Updates to show up and install. This can easily be fixed. I have finally decided to write an article because this seems to get asked several times a day lately. This Article and the Links apply to…
This Micro Tutorial will give you a basic overview of Windows Live Photo Gallery and show you various editing filters and touches to photos you can apply. This will be demonstrated using Windows Live Photo Gallery on Windows 7 operating system.
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now