وليد شوكلاته
22-12-2019, 03:33 AM
السلام عليكم ورحمة الله وبركاته
اخوانى الافاضل وجدت موضوع للاخ المهاجر عن تغيير لغة الادخال من الانجليزية للغة بلدك بواسطة الكود
قمت بتعديل الكود ليعمل اوتوماتيكيا على اختيار اللغه الموجوده على الجهاز لو كان المستخدم يستخدم كمثال
اللغة العربية مصرية الكود سيحددها دون اضافة لغة اخرى وان كان يستخدم اللغة العربية الجزائريه
سيحددها دون اضافة لغة اخرى ايضا وهكذا مع جميع الدول ارجو تجربة الكود فى بلدان مختلفة
وابلاغنا ان كان يعمل او يحتاج تعديل ولكم منا وافر الاحترام والتقدير
الكووووووووووود
language = Registry.GetValue(HKEY_CURRENT_USER, "Control Panel\\International", "sLanguage", true);
if language == 'ARG' then
DLL.CallFunction("user32.dll", "LoadKeyboardLayoutA", "\"00001401\", 3", DLL_RETURN_TYPE_LONG, DLL_CALL_STDCALL)
elseif language == 'ARH' then
DLL.CallFunction("user32.dll", "LoadKeyboardLayoutA", "\"00003C01\", 3", DLL_RETURN_TYPE_LONG, DLL_CALL_STDCALL)
elseif language == 'ARE' then
DLL.CallFunction("user32.dll", "LoadKeyboardLayoutA", "\"00000C01\", 3", DLL_RETURN_TYPE_LONG, DLL_CALL_STDCALL)
elseif language == 'ARI' then
DLL.CallFunction("user32.dll", "LoadKeyboardLayoutA", "\"00000801\", 3", DLL_RETURN_TYPE_LONG, DLL_CALL_STDCALL)
elseif language == 'ARJ' then
DLL.CallFunction("user32.dll", "LoadKeyboardLayoutA", "\"00002C01\", 3", DLL_RETURN_TYPE_LONG, DLL_CALL_STDCALL)
elseif language == 'ARK' then
DLL.CallFunction("user32.dll", "LoadKeyboardLayoutA", "\"00003401\", 3", DLL_RETURN_TYPE_LONG, DLL_CALL_STDCALL)
elseif language == 'ARB' then
DLL.CallFunction("user32.dll", "LoadKeyboardLayoutA", "\"00003001\", 3", DLL_RETURN_TYPE_LONG, DLL_CALL_STDCALL)
elseif language == 'ARL' then
DLL.CallFunction("user32.dll", "LoadKeyboardLayoutA", "\"00001001\", 3", DLL_RETURN_TYPE_LONG, DLL_CALL_STDCALL)
elseif language == 'ARM' then
DLL.CallFunction("user32.dll", "LoadKeyboardLayoutA", "\"00001801\", 3", DLL_RETURN_TYPE_LONG, DLL_CALL_STDCALL)
elseif language == 'ARO' then
DLL.CallFunction("user32.dll", "LoadKeyboardLayoutA", "\"00002001\", 3", DLL_RETURN_TYPE_LONG, DLL_CALL_STDCALL)
elseif language == 'ARQ' then
DLL.CallFunction("user32.dll", "LoadKeyboardLayoutA", "\"00004001\", 3", DLL_RETURN_TYPE_LONG, DLL_CALL_STDCALL)
elseif language == 'ARA' then
DLL.CallFunction("user32.dll", "LoadKeyboardLayoutA", "\"00000401\", 3", DLL_RETURN_TYPE_LONG, DLL_CALL_STDCALL)
elseif language == 'ARS' then
DLL.CallFunction("user32.dll", "LoadKeyboardLayoutA", "\"00002801\", 3", DLL_RETURN_TYPE_LONG, DLL_CALL_STDCALL)
elseif language == 'ART' then
DLL.CallFunction("user32.dll", "LoadKeyboardLayoutA", "\"00001C01\", 3", DLL_RETURN_TYPE_LONG, DLL_CALL_STDCALL)
elseif language == 'ARU' then
DLL.CallFunction("user32.dll", "LoadKeyboardLayoutA", "\"00003801\", 3", DLL_RETURN_TYPE_LONG, DLL_CALL_STDCALL)
elseif language == 'ARY' then
DLL.CallFunction("user32.dll", "LoadKeyboardLayoutA", "\"00002401\", 3", DLL_RETURN_TYPE_LONG, DLL_CALL_STDCALL)
end
نرجو التجربة وبلغونا بالنتيجة
اخوانى الافاضل وجدت موضوع للاخ المهاجر عن تغيير لغة الادخال من الانجليزية للغة بلدك بواسطة الكود
قمت بتعديل الكود ليعمل اوتوماتيكيا على اختيار اللغه الموجوده على الجهاز لو كان المستخدم يستخدم كمثال
اللغة العربية مصرية الكود سيحددها دون اضافة لغة اخرى وان كان يستخدم اللغة العربية الجزائريه
سيحددها دون اضافة لغة اخرى ايضا وهكذا مع جميع الدول ارجو تجربة الكود فى بلدان مختلفة
وابلاغنا ان كان يعمل او يحتاج تعديل ولكم منا وافر الاحترام والتقدير
الكووووووووووود
language = Registry.GetValue(HKEY_CURRENT_USER, "Control Panel\\International", "sLanguage", true);
if language == 'ARG' then
DLL.CallFunction("user32.dll", "LoadKeyboardLayoutA", "\"00001401\", 3", DLL_RETURN_TYPE_LONG, DLL_CALL_STDCALL)
elseif language == 'ARH' then
DLL.CallFunction("user32.dll", "LoadKeyboardLayoutA", "\"00003C01\", 3", DLL_RETURN_TYPE_LONG, DLL_CALL_STDCALL)
elseif language == 'ARE' then
DLL.CallFunction("user32.dll", "LoadKeyboardLayoutA", "\"00000C01\", 3", DLL_RETURN_TYPE_LONG, DLL_CALL_STDCALL)
elseif language == 'ARI' then
DLL.CallFunction("user32.dll", "LoadKeyboardLayoutA", "\"00000801\", 3", DLL_RETURN_TYPE_LONG, DLL_CALL_STDCALL)
elseif language == 'ARJ' then
DLL.CallFunction("user32.dll", "LoadKeyboardLayoutA", "\"00002C01\", 3", DLL_RETURN_TYPE_LONG, DLL_CALL_STDCALL)
elseif language == 'ARK' then
DLL.CallFunction("user32.dll", "LoadKeyboardLayoutA", "\"00003401\", 3", DLL_RETURN_TYPE_LONG, DLL_CALL_STDCALL)
elseif language == 'ARB' then
DLL.CallFunction("user32.dll", "LoadKeyboardLayoutA", "\"00003001\", 3", DLL_RETURN_TYPE_LONG, DLL_CALL_STDCALL)
elseif language == 'ARL' then
DLL.CallFunction("user32.dll", "LoadKeyboardLayoutA", "\"00001001\", 3", DLL_RETURN_TYPE_LONG, DLL_CALL_STDCALL)
elseif language == 'ARM' then
DLL.CallFunction("user32.dll", "LoadKeyboardLayoutA", "\"00001801\", 3", DLL_RETURN_TYPE_LONG, DLL_CALL_STDCALL)
elseif language == 'ARO' then
DLL.CallFunction("user32.dll", "LoadKeyboardLayoutA", "\"00002001\", 3", DLL_RETURN_TYPE_LONG, DLL_CALL_STDCALL)
elseif language == 'ARQ' then
DLL.CallFunction("user32.dll", "LoadKeyboardLayoutA", "\"00004001\", 3", DLL_RETURN_TYPE_LONG, DLL_CALL_STDCALL)
elseif language == 'ARA' then
DLL.CallFunction("user32.dll", "LoadKeyboardLayoutA", "\"00000401\", 3", DLL_RETURN_TYPE_LONG, DLL_CALL_STDCALL)
elseif language == 'ARS' then
DLL.CallFunction("user32.dll", "LoadKeyboardLayoutA", "\"00002801\", 3", DLL_RETURN_TYPE_LONG, DLL_CALL_STDCALL)
elseif language == 'ART' then
DLL.CallFunction("user32.dll", "LoadKeyboardLayoutA", "\"00001C01\", 3", DLL_RETURN_TYPE_LONG, DLL_CALL_STDCALL)
elseif language == 'ARU' then
DLL.CallFunction("user32.dll", "LoadKeyboardLayoutA", "\"00003801\", 3", DLL_RETURN_TYPE_LONG, DLL_CALL_STDCALL)
elseif language == 'ARY' then
DLL.CallFunction("user32.dll", "LoadKeyboardLayoutA", "\"00002401\", 3", DLL_RETURN_TYPE_LONG, DLL_CALL_STDCALL)
end
نرجو التجربة وبلغونا بالنتيجة