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 -



Penguin
Tux
thanks for Tipp.
 


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




Frank
Abbing

I have now watch, that in both Feldern to each Tastendruck the Eingabegebietsschema changed becomes.


Probier time this code, there ought to not More occur:
CompileMarkSeparation
Def ActivateKeyboardLayout(2)!"USER32","ActivateKeyboardLayout"
Def IsFocus(0)!"USER32","GetFocus"
Def &VK_FLAGSR 1 Tastenlayout Russisch
Def &VK_FLAGSD 0 Tastenlayout Deutsch
Declare edit1&,edit2&,text$,x&,y&
WINDOWSTYLE 31+512
Window 0,0-0,1024
Windowtitle "Deutsch - Russisch"
Window 0,0-%maxx,%maxy
UseIcon "Gesicht"
Usefont "Arial",20,0,0,0,0
SetDialogFont 1
edit1& = @Create("MultiEdit",%hWnd,"Russisch",10,10,1000,320)
edit2&=Create("MultiEdit", %hWnd, "Deutsch", 10, 370, 1000, 320)
x&=IsFocus()
y&=0

While 1

    WaitInput
    Case %key=2:Break
    Inc y&

    If x&<>IsFocus()

        x&=IsFocus()
        y&=0

    EndIf

    If ((%GetFocus=edit1&) and (y&=0))

        ActivateKeyboardLayout(0, &VK_FLAGSR)

    ElseIf ((%GetFocus=edit2&) and (y&=0))

        ActivateKeyboardLayout(0, &VK_FLAGSD)

    EndIf

Endwhile

End
 
09/26/08  
 




Dieter
Zornow
the functions but only, if one only 2 Languages tuned has, there it itself Yes circa a Rotation deals. If one How I 3 Languages installs has goes it schief, because then with 3 Layouts rotate becomes
 
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
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  
 




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.332 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