وعليكم السلام ورحمة الله وبركاته
بإمكانك الكشف عن اللغة الأصلية للنظام واللغة المستخدمة حاليا عن طريق الاوتوات
وذلك باستخدام الـ @OSLang أو @MUILang
@MUILang = لغة النظام المطبقة حاليا
@OSLang = لغة النظام الأصلية (الأساسية عند تنصيب الويندوز)
ويمكن العكس :hh:،، أنت جرب
المهم
تحط له متغير بحيث يطلع قيمة تدل على اللغة على أشكال أرقام (سداسية عشرية) مكون من أربعة ارقام تشمل:
0 1 2 3 4 5 6 7 8 9 a b c d e f
(16 رقم)
مثال:
كود:
[COLOR=#aa0000]$MLg[/COLOR] [COLOR=#ff0000]=[/COLOR] [URL="http://www.autoitscript.com/autoit3/docs/macros.htm#@muilang"][COLOR=#ff33ff]@MUILang[/COLOR][/URL]
[COLOR=#aa0000]$OSLg[/COLOR] [COLOR=#ff0000]=[/COLOR] [URL="http://www.autoitscript.com/autoit3/docs/macros.htm#@oslang"][COLOR=#ff33ff]@OSLang[/COLOR][/URL]
[URL="http://www.autoitscript.com/autoit3/docs/functions/MsgBox.htm"][COLOR=#000090][I]MsgBox[/I][/COLOR][/URL][COLOR=#ff0000]([/COLOR][COLOR=#ac00a9][I]0[/I][/COLOR][COLOR=#ff0000],[/COLOR] [COLOR=#9999cc]""[/COLOR][COLOR=#ff0000],[/COLOR] [COLOR=#9999cc]"لغة النظام الحالية هي: "[/COLOR][COLOR=#ff0000]&[/COLOR][COLOR=#aa0000]$MLg[/COLOR][COLOR=#ff0000])[/COLOR]
[URL="http://www.autoitscript.com/autoit3/docs/functions/Sleep.htm"][COLOR=#000090][I]Sleep[/I][/COLOR][/URL][COLOR=#ff0000]([/COLOR][COLOR=#ac00a9][I]500[/I][/COLOR][COLOR=#ff0000])[/COLOR]
[URL="http://www.autoitscript.com/autoit3/docs/functions/MsgBox.htm"][COLOR=#000090][I]MsgBox[/I][/COLOR][/URL][COLOR=#ff0000]([/COLOR][COLOR=#ac00a9][I]0[/I][/COLOR][COLOR=#ff0000],[/COLOR] [COLOR=#9999cc]""[/COLOR][COLOR=#ff0000],[/COLOR] [COLOR=#9999cc]"لغة النظام الأصلية هي: "[/COLOR][COLOR=#ff0000]&[/COLOR][COLOR=#aa0000]$OSLg[/COLOR][COLOR=#ff0000])[/COLOR]
وهذا هو الجدول الخاص بأكواد اللغات التي تخرج:
كود:
Code Meaning
0436 Afrikaans
041c Albanian
0401 Arabic_Saudi_Arabia
0801 Arabic_Iraq
0c01 Arabic_Egypt
1001 Arabic_Libya
1401 Arabic_Algeria
1801 Arabic_Morocco
1c01 Arabic_Tunisia
2001 Arabic_Oman
2401 Arabic_Yemen
2801 Arabic_Syria
2c01 Arabic_Jordan
3001 Arabic_Lebanon
3401 Arabic_Kuwait
3801 Arabic_UAE
3c01 Arabic_Bahrain
4001 Arabic_Qatar
042b Armenian
042c Azeri_Latin
082c Azeri_Cyrillic
042d Basque
0423 Belarusian
0402 Bulgarian
0403 Catalan
0404 Chinese_Taiwan
0804 Chinese_PRC
0c04 Chinese_Hong_Kong
1004 Chinese_Singapore
1404 Chinese_Macau
041a Croatian
0405 Czech
0406 Danish
0413 Dutch_Standard
0813 Dutch_Belgian
0409 English_United_States
0809 English_United_Kingdom
0c09 English_Australian
1009 English_Canadian
1409 English_New_Zealand
1809 English_Irish
1c09 English_South_Africa
2009 English_Jamaica
2409 English_Caribbean
2809 English_Belize
2c09 English_Trinidad
3009 English_Zimbabwe
3409 English_Philippines
0425 Estonian
0438 Faeroese
0429 Farsi
040b Finnish
040c French_Standard
080c French_Belgian
0c0c French_Canadian
100c French_Swiss
140c French_Luxembourg
180c French_Monaco
0437 Georgian
0407 German_Standard
0807 German_Swiss
0c07 German_Austrian
1007 German_Luxembourg
1407 German_Liechtenstei
408 Greek
040d Hebrew
0439 Hindi
040e Hungarian
040f Icelandic
0421 Indonesian
0410 Italian_Standard
0810 Italian_Swiss
0411 Japanese
043f Kazakh
0457 Konkani
0412 Korean
0426 Latvian
0427 Lithuanian
042f Macedonian
043e Malay_Malaysia
083e Malay_Brunei_Darussalam
044e Marathi
0414 Norwegian_Bokmal
0814 Norwegian_Nynorsk
0415 Polish
0416 Portuguese_Brazilian
0816 Portuguese_Standard
0418 Romanian
0419 Russian
044f Sanskrit
081a Serbian_Latin
0c1a Serbian_Cyrillic
041b Slovak
0424 Slovenian
040a Spanish_Traditional_Sort
080a Spanish_Mexican
0c0a Spanish_Modern_Sort
100a Spanish_Guatemala
140a Spanish_Costa_Rica
180a Spanish_Panama
1c0a Spanish_Dominican_Republic
200a Spanish_Venezuela
240a Spanish_Colombia
280a Spanish_Peru
2c0a Spanish_Argentina
300a Spanish_Ecuador
340a Spanish_Chile
380a Spanish_Uruguay
3c0a Spanish_Paraguay
400a Spanish_Bolivia
440a Spanish_El_Salvador
480a Spanish_Honduras
4c0a Spanish_Nicaragua
500a Spanish_Puerto_Rico
0441 Swahili
041d Swedish
081d Swedish_Finland
0449 Tamil
0444 Tatar
041e Thai
041f Turkish
0422 Ukrainian
0420 Urdu
0443 Uzbek_Latin
0843 Uzbek_Cyrillic
042a Vietnamese
مثال بسيط على كشف اللغة العربية السعودية:
كود:
[COLOR=#aa0000]$MLg[/COLOR] [COLOR=#ff0000]=[/COLOR] [URL="http://www.autoitscript.com/autoit3/docs/macros.htm#@muilang"][COLOR=#ff33ff]@MUILang[/COLOR][/URL]
[COLOR=#aa0000]$OSLg[/COLOR] [COLOR=#ff0000]=[/COLOR] [URL="http://www.autoitscript.com/autoit3/docs/macros.htm#@oslang"][COLOR=#ff33ff]@OSLang[/COLOR][/URL]
[URL="http://www.autoitscript.com/autoit3/docs/keywords.htm#If"][COLOR=#0000ff]If[/COLOR][/URL] [COLOR=#aa0000]$MLg[/COLOR] [COLOR=#ff0000]=[/COLOR] [COLOR=#9999cc]"0401"[/COLOR] [URL="http://www.autoitscript.com/autoit3/docs/keywords.htm#Then"][COLOR=#0000ff]Then[/COLOR][/URL]
[URL="http://www.autoitscript.com/autoit3/docs/functions/MsgBox.htm"][COLOR=#000090][I]MsgBox[/I][/COLOR][/URL][COLOR=#ff0000]([/COLOR][COLOR=#ac00a9][I]0[/I][/COLOR][COLOR=#ff0000],[/COLOR] [COLOR=#9999cc]""[/COLOR][COLOR=#ff0000],[/COLOR] [COLOR=#9999cc]"انت تستخدم اللغة العربية السعودية كـ لغة حالية"[/COLOR][COLOR=#ff0000])[/COLOR]
[URL="http://www.autoitscript.com/autoit3/docs/keywords.htm#Else"][COLOR=#0000ff]Else[/COLOR][/URL]
[URL="http://www.autoitscript.com/autoit3/docs/functions/MsgBox.htm"][COLOR=#000090][I]MsgBox[/I][/COLOR][/URL][COLOR=#ff0000]([/COLOR][COLOR=#ac00a9][I]0[/I][/COLOR][COLOR=#ff0000],[/COLOR] [COLOR=#9999cc]""[/COLOR][COLOR=#ff0000],[/COLOR] [COLOR=#9999cc]"لغة نظامك الحالية ليست اللغة العربية السعودية"[/COLOR][COLOR=#ff0000])[/COLOR]
[URL="http://www.autoitscript.com/autoit3/docs/keywords.htm#EndIf"][COLOR=#0000ff]EndIf[/COLOR][/URL]
[URL="http://www.autoitscript.com/autoit3/docs/keywords.htm#If"][COLOR=#0000ff]If[/COLOR][/URL] [COLOR=#aa0000]$OSLg[/COLOR] [COLOR=#ff0000]=[/COLOR] [COLOR=#9999cc]"0401"[/COLOR] [URL="http://www.autoitscript.com/autoit3/docs/keywords.htm#Then"][COLOR=#0000ff]Then[/COLOR][/URL]
[URL="http://www.autoitscript.com/autoit3/docs/functions/MsgBox.htm"][COLOR=#000090][I]MsgBox[/I][/COLOR][/URL][COLOR=#ff0000]([/COLOR][COLOR=#ac00a9][I]0[/I][/COLOR][COLOR=#ff0000],[/COLOR] [COLOR=#9999cc]""[/COLOR][COLOR=#ff0000],[/COLOR] [COLOR=#9999cc]"لغة نظامك الأصلية هي اللغة العربية السعودية"[/COLOR][COLOR=#ff0000])[/COLOR]
[URL="http://www.autoitscript.com/autoit3/docs/keywords.htm#Else"][COLOR=#0000ff]Else[/COLOR][/URL]
[URL="http://www.autoitscript.com/autoit3/docs/functions/MsgBox.htm"][COLOR=#000090][I]MsgBox[/I][/COLOR][/URL][COLOR=#ff0000]([/COLOR][COLOR=#ac00a9][I]0[/I][/COLOR][COLOR=#ff0000],[/COLOR] [COLOR=#9999cc]""[/COLOR][COLOR=#ff0000],[/COLOR] [COLOR=#9999cc]"لغة نظامك الأصلية ليست اللغة العربية السعودية"[/COLOR][COLOR=#ff0000])[/COLOR]
[URL="http://www.autoitscript.com/autoit3/docs/keywords.htm#EndIf"][COLOR=#0000ff]EndIf[/COLOR][/URL]
مثال قوي على كشف اللغة العربية لجميع الدول العربية: (عبر استخدام أمر وجود كلمة من النص) :kmj-by0000 (72):
كود:
[COLOR=#aa0000]$MLg[/COLOR] [COLOR=#ff0000]=[/COLOR] [URL="http://www.autoitscript.com/autoit3/docs/macros.htm#@muilang"][COLOR=#ff33ff]@MUILang[/COLOR][/URL]
[COLOR=#aa0000]$OSLg[/COLOR] [COLOR=#ff0000]=[/COLOR] [URL="http://www.autoitscript.com/autoit3/docs/macros.htm#@oslang"][COLOR=#ff33ff]@OSLang[/COLOR][/URL]
[COLOR=#aa0000]$AAMLg[/COLOR] [COLOR=#ff0000]=[/COLOR] [URL="http://www.autoitscript.com/autoit3/docs/functions/StringInStr.htm"][COLOR=#000090][I]StringInStr[/I][/COLOR][/URL][COLOR=#ff0000]([/COLOR][COLOR=#9999cc]"0401 0801 0c01 1001 1401 1801 1c01 2001 2401 2801 2c01 3001 3401 3801 3c01 4001"[/COLOR][COLOR=#ff0000],[/COLOR] [COLOR=#aa0000]$MLg[/COLOR][COLOR=#ff0000])[/COLOR] [COLOR=#009933][I];أمر كشف الرقم في النص[/I][/COLOR]
[COLOR=#aa0000]$AAOSLg[/COLOR] [COLOR=#ff0000]=[/COLOR] [URL="http://www.autoitscript.com/autoit3/docs/functions/StringInStr.htm"][COLOR=#000090][I]StringInStr[/I][/COLOR][/URL][COLOR=#ff0000]([/COLOR][COLOR=#9999cc]"0401 0801 0c01 1001 1401 1801 1c01 2001 2401 2801 2c01 3001 3401 3801 3c01 4001"[/COLOR][COLOR=#ff0000],[/COLOR] [COLOR=#aa0000]$OSLg[/COLOR][COLOR=#ff0000])[/COLOR] [COLOR=#009933][I];أمر كشف الرقم في النص[/I][/COLOR]
[URL="http://www.autoitscript.com/autoit3/docs/keywords.htm#If"][COLOR=#0000ff]If[/COLOR][/URL] [COLOR=#aa0000]$AAMLg[/COLOR] [COLOR=#ff0000]=[/COLOR] [COLOR=#ac00a9][I]1[/I][/COLOR] [URL="http://www.autoitscript.com/autoit3/docs/keywords.htm#Then"][COLOR=#0000ff]Then[/COLOR][/URL] [COLOR=#009933][I];إذا كانت القيمة المخرجة تساوي 1 يعني أن الرقم موجود في النص الخاص باللغة العربية[/I][/COLOR]
[COLOR=#009933][I];...أوامر يتم عملها إذا كانت اللغة الحالية هي العربية[/I][/COLOR]
[URL="http://www.autoitscript.com/autoit3/docs/functions/MsgBox.htm"][COLOR=#000090][I]MsgBox[/I][/COLOR][/URL][COLOR=#ff0000]([/COLOR][COLOR=#ac00a9][I]0[/I][/COLOR][COLOR=#ff0000],[/COLOR] [COLOR=#9999cc]""[/COLOR][COLOR=#ff0000],[/COLOR] [COLOR=#9999cc]"لغة نظامك الحالية هي العربية"[/COLOR][COLOR=#ff0000])[/COLOR] [COLOR=#009933][I];رسالة تأكيدية[/I][/COLOR]
[URL="http://www.autoitscript.com/autoit3/docs/keywords.htm#Else"][COLOR=#0000ff]Else[/COLOR][/URL] [COLOR=#009933][I];إذا كانت القيمة المخرجة تساوي 0 أو أي قيمة أخرى غير الـ 1[/I][/COLOR]
[URL="http://www.autoitscript.com/autoit3/docs/functions/MsgBox.htm"][COLOR=#000090][I]MsgBox[/I][/COLOR][/URL][COLOR=#ff0000]([/COLOR][COLOR=#ac00a9][I]0[/I][/COLOR][COLOR=#ff0000],[/COLOR] [COLOR=#9999cc]""[/COLOR][COLOR=#ff0000],[/COLOR] [COLOR=#9999cc]"لغة نظامك الحالية ليست العربية"[/COLOR][COLOR=#ff0000])[/COLOR] [COLOR=#009933][I];رسالة تأكيدية[/I][/COLOR]
[URL="http://www.autoitscript.com/autoit3/docs/keywords.htm#EndIf"][COLOR=#0000ff]EndIf[/COLOR][/URL]
[URL="http://www.autoitscript.com/autoit3/docs/keywords.htm#If"][COLOR=#0000ff]If[/COLOR][/URL] [COLOR=#aa0000]$AAOSLg[/COLOR] [COLOR=#ff0000]=[/COLOR] [COLOR=#ac00a9][I]1[/I][/COLOR] [URL="http://www.autoitscript.com/autoit3/docs/keywords.htm#Then"][COLOR=#0000ff]Then[/COLOR][/URL] [COLOR=#009933][I];إذا كانت القيمة المخرجة تساوي 1 يعني أن الرقم موجود في النص الخاص باللغة العربية[/I][/COLOR]
[COLOR=#009933][I];...أوامر يتم عملها إذا كانت اللغة الحالية هي العربية[/I][/COLOR]
[URL="http://www.autoitscript.com/autoit3/docs/functions/MsgBox.htm"][COLOR=#000090][I]MsgBox[/I][/COLOR][/URL][COLOR=#ff0000]([/COLOR][COLOR=#ac00a9][I]0[/I][/COLOR][COLOR=#ff0000],[/COLOR] [COLOR=#9999cc]""[/COLOR][COLOR=#ff0000],[/COLOR] [COLOR=#9999cc]"لغة نظامك الأصلية هي العربية"[/COLOR][COLOR=#ff0000])[/COLOR] [COLOR=#009933][I];رسالة تأكيدية[/I][/COLOR]
[URL="http://www.autoitscript.com/autoit3/docs/keywords.htm#Else"][COLOR=#0000ff]Else[/COLOR][/URL] [COLOR=#009933][I];إذا كانت القيمة المخرجة تساوي 0 أو أي قيمة أخرى غير الـ 1[/I][/COLOR]
[URL="http://www.autoitscript.com/autoit3/docs/functions/MsgBox.htm"][COLOR=#000090][I]MsgBox[/I][/COLOR][/URL][COLOR=#ff0000]([/COLOR][COLOR=#ac00a9][I]0[/I][/COLOR][COLOR=#ff0000],[/COLOR] [COLOR=#9999cc]""[/COLOR][COLOR=#ff0000],[/COLOR] [COLOR=#9999cc]"لغة نظامك الأصلية ليست العربية"[/COLOR][COLOR=#ff0000])[/COLOR] [COLOR=#009933][I];رسالة تأكيدية[/I][/COLOR]
[URL="http://www.autoitscript.com/autoit3/docs/keywords.htm#EndIf"][COLOR=#0000ff]EndIf[/COLOR][/URL]
(انسخ الكود إلى محرر نص الاوتوات كي تقرأها بشكل أفضل :kmj-by0000 (72)
تحياتي لك أخوي يوسف وأتمنى لك التوفيق في برنامجك