English
Forum

Software Changing the Keyboard Layouts

 
- Page 1 -



Penguin
Tux
Hi,

there irgendeine Possibility, one Tool Windows XP/2000 To write, which the Tastaturlayout of german on russian and of russian in german switchen can? moreover need I a simple GUI, since the User not really plenty Idea having go. the important is, that no Registryeinträge changed go, because it otherwise conflicts with the Rechtevergabe the network give could.

thanks Schonmal for eure Help
Tony
CompileMarkSeparation
declare btndlg&,dlgende%,dlg&
dlg&=Create("Window",%hwnd,"Sprache",10,10,200,120)
Startpaint dlg&
UseFont "CANDARA",25,20,1,0,0
TextColor RGB(0,0,0),RGB(255,255,255)
Endpaint
btnDlg& = CreateButton(dlg&,"Deutsch -> Russisch",30,10,120,30)
btnDlg& = CreateButton(dlg&,"Russisch -> Deutsch",30,45,120,30)

WhileNot dlgende%

    WaitInput

    If GetFocus(btnDlg&)

        dlgende% = 1

    EndIf

Endwhile

destroywindow(dlg&ass=s2>)

The GUI is, if too only of optischen since, ready. the code is with safety reinster Garbage and one could it certainly too yet improve. now goes it therefore, The right functions to that right Button To write.
 


OS: Win XP/Debian
XProfan 10
09/23/08  
 



 
- Page 3 -



Frank
Abbing
but ActivateKeyboardLayout() expects still whom Parameter the keyboard layout, there rotate really nothing...
an better idea Have I presently neither and can it neither really testing.
 
09/26/08  
 




Dieter
Zornow
@Frank

HKL_NEXT
Selects the next locale identifier in the circular list of loaded locale identifiers maintained by the system.
HKL_PREV
Selects the previous locale identifier in the circular list of loaded locale identifiers maintained by the system.

The function expects 0 or 1 and goes then to then to next Layout. If I your code teste comes german, english and Thai but no russian. therefore works it Yes only with 2 Languages
 
Er ist ein Mann wie ein Baum. Sie nennen ihn Bonsai., Win 7 32 bit und Win 7 64 bit, mit XProfan X2
09/26/08  
 




Frank
Abbing
correctly.. in the drop must You too yet with LoadKeyboardLayout() or GetKeyboardLayoutList() works. Since I not testing can, create I none code, but the both API shine me very simply anzuwenden To his.
 
09/26/08  
 




Stephan
Sonneborn
I häng me here time dran:

Can with ActivateKeyboardLayout(hKeyboardlayout&, Flag&) too one integrally bestimmtes Layout enable (ggf. too yet before loading, if it not loaded watts)?

somehow could the well with KLF_SETFORPROCESS weg as Flag for ActivateKeyboardLayout() weg.

with 1 or 0 as Flag position one evident only in the list all installierten Layouts the next or. previous Layout circa.
 
Schöne Grüße aus Wittgenstein
von Stephan

Programmierumgebung:| XProfan X4 | WIN10 | AMD FX6100 3,3 GHz
07/18/12  
 



Hello Stephan!

loading goes well by LoadKeyboardLayout but what very have because to or.

I faith i see The question not so correctly.. ^^
 
07/18/12  
 




Stephan
Sonneborn
Hello iF,

It's all right in the principle still around the russian Texts or. its statement.
I have a middle-aged Freeware Schriftsatz found, the kyrillische characters into first 255 characters (means not advanced Zeichensatz) abbildet.
moreover must but with the input the english Tastaturlayout activate go.

If to the installs has, can with ActivateKeyboardLayout(0,1) or. ActivateKeyboardLayout(0,0) zirkular to or back a to the others Zeichensatz enable. the goes to that a alphabetical (if one before sortiert has) or in the Order the Anlegens.

I must means aimed the english Tastaturlayout on and before Verify, whether it installs is.
 
Schöne Grüße aus Wittgenstein
von Stephan

Programmierumgebung:| XProfan X4 | WIN10 | AMD FX6100 3,3 GHz
07/18/12  
 



Ah!

look time this here funktionierte by me on attempt:



I had äöü eingetippt and typical for a us-keyboard watts this in ';[ umgesetzt.

5 kB
Hochgeladen:07/18/12
Downloadcounter162
Download
 
07/18/12  
 




Stephan
Sonneborn
iF (18.07.12)

Ah!

look time this here funktionierte by me on attempt:https://XProfan.com/files/ueeoi.png

I had äöü eingetippt and typical for a us-keyboard watts this in ';< umgesetzt.


super!
the shining then The Solution To his.

How place I the originale Layout again?
Can there before a handle read and hereon again zurücksetzen?

though bleats Profan on, The function be not in the dll present. is The not in the USER32.dll declared?
CompileMarkSeparation
DEF LoadKeyboardLayout(2) !"USER32","LoadKeyboardLayout"
>
 
Schöne Grüße aus Wittgenstein
von Stephan

Programmierumgebung:| XProfan X4 | WIN10 | AMD FX6100 3,3 GHz
07/19/12  
 




Dieter
Zornow
there's LoadKeyboardLayoutA or LoadKeyboardLayoutW
 
XProfan X2
Er ist ein Mann wie ein Baum. Sie nennen ihn Bonsai., Win 7 32 bit und Win 7 64 bit, mit XProfan X2
07/19/12  
 



 
- Page 4 -


@Stephan:

detect and ermittelten worth settle goes z.B. so:
CompileMarkSeparation
 
07/19/12  
 




Stephan
Sonneborn
Dieter Zornow (19.07.12)

there's LoadKeyboardLayoutA or LoadKeyboardLayoutW


Jepp, the wars! Habs unfortunately in my fat Wälzer only without the A or. W found.

Thank you Dieter!
 
Schöne Grüße aus Wittgenstein
von Stephan

Programmierumgebung:| XProfan X4 | WIN10 | AMD FX6100 3,3 GHz
07/19/12  
 




Stephan
Sonneborn
iF (19.07.12)

detect and ermittelten worth settle goes z.B. so:

declare m#
dim m#,9
GetKeyboardLayoutName(m#)
LoadKeyBoardLayout(string$(m#,0),KLF_ACTIVATE)


working lovely!
Thank you iF
 
Schöne Grüße aus Wittgenstein
von Stephan

Programmierumgebung:| XProfan X4 | WIN10 | AMD FX6100 3,3 GHz
07/19/12  
 




Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

32.419 Views

Untitledvor 0 min.
Stringray10/08/17
Wilfried Friebe01/11/16
Georg Teles06/29/15
mein06/02/13
More...

Themeninformationen



Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie