I am developing a program that handles both languages, French and English.

In my program, I can Recover and / or modify the language associated with the keyboard using the ChangeKeyboard Function.

My problem is how to detect that the user has to change the language of the keyboard from the taskbar, so from the system without the use of a timer.

My research has allowed me to find that there is a Windows message WM_INPUTLANGCHANGEREQUEST but I admit I do not know how to insert it in WINDEV.

If anyone can help me, thank you in advance.
Re: [WD Keyboard Language] How to detect the change of language?
January 05, 2019 06:12AM
Hello,

I don't think this is directly possible in WD.

I think you should use some third party ActiveX or .NET control.

Personally I would suggest you to look up Desaware's SypWorks (https://www.desaware.com/products/universalcom/spyworks/index.aspx).

HTH

--
Yogi Yang
Re: [WD Keyboard Language] How to detect the change of language?
January 05, 2019 12:41PM
Popoy,

add this line to your project init code or at some other global place
EXTERN "WinConst.WL"

put this line in de opening or init section of your main-window
Event("YourProc", "*.", WM_INPUTLANGCHANGEREQUEST)

And create a procedure in this window like this
PROCEDURE YourProc(nMessage, wParam, lParam)

YourProc should now run whenever the language is changed

Not tested and check the help on Event() for more info

Arie
Thank you for your answers, I ended up finding the answer with the .net
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: