Jump to content

_WinAPI_SetKeyboardLayout hex string


 Share

Recommended Posts

_WinAPI_SetKeyboardLayout :

    Local $aCall = DllCall('user32.dll', 'handle', 'LoadKeyboardLayoutW', 'wstr', Hex($iLanguage, 8), 'uint', $iFlag)
not work

    Local $aCall = DllCall('user32.dll', 'handle', 'LoadKeyboardLayoutW', 'wstr', StringFormat("%.8d", $iLanguage), 'uint', $iFlag)
 

work!

Edited by Ontosy
Link to comment
Share on other sites

  • Developers

This is supposed to be :0x0409 - English U.S. ?
It helps when you post a script that shows what you are doing and explain what you expect that isn't working!

 

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

  • Developers

@AlessandroAvolio,
correct... I fully comprehend what is going wrong here, but the goal should be to make the OP realize what is wrong in stead of force-feeding an answer. ;) 

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

  • Ontosy changed the title to _WinAPI_SetKeyboardLayout hex string
  • Developers
Just now, AlessandroAvolio said:

The answer can also be deduced in this way

Yes ...   whatever. :) 

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...