Ontosy Posted October 2, 2021 Posted October 2, 2021 (edited) _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 October 2, 2021 by Ontosy
Developers Jos Posted October 2, 2021 Developers Posted October 2, 2021 What is the exact content of $iLanguage? 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.
Developers Jos Posted October 2, 2021 Developers Posted October 2, 2021 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.
Danp2 Posted October 2, 2021 Posted October 2, 2021 (edited) 5 minutes ago, Ontosy said: 00000409 FWIW, that's not the same as 0x0409. Edit: Sniped by @Jos 😅 Edited October 2, 2021 by Danp2 Latest Webdriver UDF Release Webdriver Wiki FAQs
AlessandroAvolio Posted October 2, 2021 Posted October 2, 2021 (edited) Main() Func Main() Local Const $iLanguage = 0x0412 Local Const $iFlag = 0x1 Local Const $aCall = DllCall('user32.dll', 'handle', 'LoadKeyboardLayoutW', 'wstr', Hex($iLanguage, 8), 'uint', $iFlag) EndFunc Works Edited October 2, 2021 by AlessandroAvolio
Developers Jos Posted October 2, 2021 Developers Posted October 2, 2021 @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.
Ontosy Posted October 2, 2021 Author Posted October 2, 2021 I see that I wrong to use 00000409 instead of 0x409. ty.
AlessandroAvolio Posted October 2, 2021 Posted October 2, 2021 1 minute ago, Jos said: @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 The answer can also be deduced in this way
Developers Jos Posted October 2, 2021 Developers Posted October 2, 2021 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now