توقيع : موريادي
هذا كود (ببلاش) من عملي حوله إلى exe وضعه في بدء التشغيل وسيقوم بعمل تقرير: :u:

كود:
[url="http://www.autoitscript.com/autoit3/docs/keywords.htm##requireadmin"][color=#f000ff][i]#requireadmin[/i][/color][/url]
[url="http://www.autoitscript.com/autoit3/docs/keywords.htm#if"][color=#0000ff]if[/color][/url] [url="http://www.autoitscript.com/autoit3/docs/macros.htm#@wday"][color=#ff33ff]@wday[/color][/url] [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=#aa0000]$day[/color] [color=#ff0000]=[/color] [color=#9999cc]"السبت"[/color]
[url="http://www.autoitscript.com/autoit3/docs/keywords.htm#elseif"][color=#0000ff]elseif[/color][/url] [url="http://www.autoitscript.com/autoit3/docs/macros.htm#@wday"][color=#ff33ff]@wday[/color][/url] [color=#ff0000]=[/color] [color=#ac00a9][i]2[/i][/color] [url="http://www.autoitscript.com/autoit3/docs/keywords.htm#then"][color=#0000ff]then[/color][/url]
    [color=#aa0000]$day[/color] [color=#ff0000]=[/color] [color=#9999cc]"الأحد"[/color]
[url="http://www.autoitscript.com/autoit3/docs/keywords.htm#elseif"][color=#0000ff]elseif[/color][/url] [url="http://www.autoitscript.com/autoit3/docs/macros.htm#@wday"][color=#ff33ff]@wday[/color][/url] [color=#ff0000]=[/color] [color=#ac00a9][i]3[/i][/color] [url="http://www.autoitscript.com/autoit3/docs/keywords.htm#then"][color=#0000ff]then[/color][/url]
    [color=#aa0000]$day[/color] [color=#ff0000]=[/color] [color=#9999cc]"الإثنين"[/color]
[url="http://www.autoitscript.com/autoit3/docs/keywords.htm#elseif"][color=#0000ff]elseif[/color][/url] [url="http://www.autoitscript.com/autoit3/docs/macros.htm#@wday"][color=#ff33ff]@wday[/color][/url] [color=#ff0000]=[/color] [color=#ac00a9][i]4[/i][/color] [url="http://www.autoitscript.com/autoit3/docs/keywords.htm#then"][color=#0000ff]then[/color][/url]
    [color=#aa0000]$day[/color] [color=#ff0000]=[/color] [color=#9999cc]"الثلاثاء"[/color]
[url="http://www.autoitscript.com/autoit3/docs/keywords.htm#elseif"][color=#0000ff]elseif[/color][/url] [url="http://www.autoitscript.com/autoit3/docs/macros.htm#@wday"][color=#ff33ff]@wday[/color][/url] [color=#ff0000]=[/color] [color=#ac00a9][i]5[/i][/color] [url="http://www.autoitscript.com/autoit3/docs/keywords.htm#then"][color=#0000ff]then[/color][/url]
    [color=#aa0000]$day[/color] [color=#ff0000]=[/color] [color=#9999cc]"الأربعاء"[/color]
[url="http://www.autoitscript.com/autoit3/docs/keywords.htm#elseif"][color=#0000ff]elseif[/color][/url] [url="http://www.autoitscript.com/autoit3/docs/macros.htm#@wday"][color=#ff33ff]@wday[/color][/url] [color=#ff0000]=[/color] [color=#ac00a9][i]6[/i][/color] [url="http://www.autoitscript.com/autoit3/docs/keywords.htm#then"][color=#0000ff]then[/color][/url]
    [color=#aa0000]$day[/color] [color=#ff0000]=[/color] [color=#9999cc]"الخميس"[/color]
[url="http://www.autoitscript.com/autoit3/docs/keywords.htm#elseif"][color=#0000ff]elseif[/color][/url] [url="http://www.autoitscript.com/autoit3/docs/macros.htm#@wday"][color=#ff33ff]@wday[/color][/url] [color=#ff0000]=[/color] [color=#ac00a9][i]7[/i][/color] [url="http://www.autoitscript.com/autoit3/docs/keywords.htm#then"][color=#0000ff]then[/color][/url]
    [color=#aa0000]$day[/color] [color=#ff0000]=[/color] [color=#9999cc]"الجمعة"[/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] [url="http://www.autoitscript.com/autoit3/docs/macros.htm#@hour"][color=#ff33ff]@hour[/color][/url] [color=#ff0000]>[/color] [color=#ac00a9][i]12[/i][/color] [url="http://www.autoitscript.com/autoit3/docs/keywords.htm#then"][color=#0000ff]then[/color][/url]
    [color=#aa0000]$hour[/color] [color=#ff0000]=[/color] [url="http://www.autoitscript.com/autoit3/docs/macros.htm#@hour"][color=#ff33ff]@hour[/color][/url] [color=#ff0000]-[/color] [color=#ac00a9][i]12[/i][/color]
    [url="http://www.autoitscript.com/autoit3/docs/functions/filewrite.htm"][color=#000090][i]filewrite[/i][/color][/url][color=#ff0000]([/color][url="http://www.autoitscript.com/autoit3/docs/macros.htm#@homedrive"][color=#ff33ff]@homedrive[/color][/url] [color=#ff0000]&[/color] [color=#9999cc]"\system-s.txt"[/color][color=#ff0000],[/color] [color=#9999cc]"تم تشغيل الجهاز -- "[/color] [color=#ff0000]&[/color] [color=#aa0000]$day[/color] [color=#ff0000]&[/color] [color=#9999cc]" | "[/color] [color=#ff0000]&[/color] [url="http://www.autoitscript.com/autoit3/docs/macros.htm#@year"][color=#ff33ff]@year[/color][/url] [color=#ff0000]&[/color] [color=#9999cc]"/"[/color] [color=#ff0000]&[/color] [url="http://www.autoitscript.com/autoit3/docs/macros.htm#@mon"][color=#ff33ff]@mon[/color][/url] [color=#ff0000]&[/color] [color=#9999cc]"/"[/color] [color=#ff0000]&[/color] [url="http://www.autoitscript.com/autoit3/docs/macros.htm#@mday"][color=#ff33ff]@mday[/color][/url] [color=#ff0000]&[/color] [color=#9999cc]" | "[/color] [color=#ff0000]&[/color] [color=#aa0000]$hour[/color] [color=#ff0000]&[/color] [color=#9999cc]":"[/color] [color=#ff0000]&[/color] [url="http://www.autoitscript.com/autoit3/docs/macros.htm#@min"][color=#ff33ff]@min[/color][/url] [color=#ff0000]&[/color] [color=#9999cc]":"[/color] [color=#ff0000]&[/color] [url="http://www.autoitscript.com/autoit3/docs/macros.htm#@sec"][color=#ff33ff]@sec[/color][/url] [color=#ff0000]&[/color] [color=#9999cc]" م"[/color] [color=#ff0000]&[/color] [url="http://www.autoitscript.com/autoit3/docs/macros.htm#@crlf"][color=#ff33ff]@crlf[/color][/url][color=#ff0000])[/color]
[url="http://www.autoitscript.com/autoit3/docs/keywords.htm#elseif"][color=#0000ff]elseif[/color][/url] [url="http://www.autoitscript.com/autoit3/docs/macros.htm#@hour"][color=#ff33ff]@hour[/color][/url] [color=#ff0000]=[/color] [color=#ac00a9][i]12[/i][/color] [url="http://www.autoitscript.com/autoit3/docs/keywords.htm#then"][color=#0000ff]then[/color][/url]
    [color=#aa0000]$hour[/color] [color=#ff0000]=[/color] [color=#ac00a9][i]12[/i][/color]
    [url="http://www.autoitscript.com/autoit3/docs/functions/filewrite.htm"][color=#000090][i]filewrite[/i][/color][/url][color=#ff0000]([/color][url="http://www.autoitscript.com/autoit3/docs/macros.htm#@homedrive"][color=#ff33ff]@homedrive[/color][/url] [color=#ff0000]&[/color] [color=#9999cc]"\system-s.txt"[/color][color=#ff0000],[/color] [color=#9999cc]"تم تشغيل الجهاز -- "[/color] [color=#ff0000]&[/color] [color=#aa0000]$day[/color] [color=#ff0000]&[/color] [color=#9999cc]" | "[/color] [color=#ff0000]&[/color] [url="http://www.autoitscript.com/autoit3/docs/macros.htm#@year"][color=#ff33ff]@year[/color][/url] [color=#ff0000]&[/color] [color=#9999cc]"/"[/color] [color=#ff0000]&[/color] [url="http://www.autoitscript.com/autoit3/docs/macros.htm#@mon"][color=#ff33ff]@mon[/color][/url] [color=#ff0000]&[/color] [color=#9999cc]"/"[/color] [color=#ff0000]&[/color] [url="http://www.autoitscript.com/autoit3/docs/macros.htm#@mday"][color=#ff33ff]@mday[/color][/url] [color=#ff0000]&[/color] [color=#9999cc]" | "[/color] [color=#ff0000]&[/color] [color=#aa0000]$hour[/color] [color=#ff0000]&[/color] [color=#9999cc]":"[/color] [color=#ff0000]&[/color] [url="http://www.autoitscript.com/autoit3/docs/macros.htm#@min"][color=#ff33ff]@min[/color][/url] [color=#ff0000]&[/color] [color=#9999cc]":"[/color] [color=#ff0000]&[/color] [url="http://www.autoitscript.com/autoit3/docs/macros.htm#@sec"][color=#ff33ff]@sec[/color][/url] [color=#ff0000]&[/color] [color=#9999cc]" م"[/color] [color=#ff0000]&[/color] [url="http://www.autoitscript.com/autoit3/docs/macros.htm#@crlf"][color=#ff33ff]@crlf[/color][/url][color=#ff0000])[/color]
[url="http://www.autoitscript.com/autoit3/docs/keywords.htm#elseif"][color=#0000ff]elseif[/color][/url] [url="http://www.autoitscript.com/autoit3/docs/macros.htm#@hour"][color=#ff33ff]@hour[/color][/url] [color=#ff0000]=[/color] [color=#ac00a9][i]0[/i][/color] [url="http://www.autoitscript.com/autoit3/docs/keywords.htm#then"][color=#0000ff]then[/color][/url]
    [color=#aa0000]$hour[/color] [color=#ff0000]=[/color] [color=#ac00a9][i]12[/i][/color]
    [url="http://www.autoitscript.com/autoit3/docs/functions/filewrite.htm"][color=#000090][i]filewrite[/i][/color][/url][color=#ff0000]([/color][url="http://www.autoitscript.com/autoit3/docs/macros.htm#@homedrive"][color=#ff33ff]@homedrive[/color][/url] [color=#ff0000]&[/color] [color=#9999cc]"\system-s.txt"[/color][color=#ff0000],[/color] [color=#9999cc]"تم تشغيل الجهاز -- "[/color] [color=#ff0000]&[/color] [color=#aa0000]$day[/color] [color=#ff0000]&[/color] [color=#9999cc]" | "[/color] [color=#ff0000]&[/color] [url="http://www.autoitscript.com/autoit3/docs/macros.htm#@year"][color=#ff33ff]@year[/color][/url] [color=#ff0000]&[/color] [color=#9999cc]"/"[/color] [color=#ff0000]&[/color] [url="http://www.autoitscript.com/autoit3/docs/macros.htm#@mon"][color=#ff33ff]@mon[/color][/url] [color=#ff0000]&[/color] [color=#9999cc]"/"[/color] [color=#ff0000]&[/color] [url="http://www.autoitscript.com/autoit3/docs/macros.htm#@mday"][color=#ff33ff]@mday[/color][/url] [color=#ff0000]&[/color] [color=#9999cc]" | "[/color] [color=#ff0000]&[/color] [color=#aa0000]$hour[/color] [color=#ff0000]&[/color] [color=#9999cc]":"[/color] [color=#ff0000]&[/color] [url="http://www.autoitscript.com/autoit3/docs/macros.htm#@min"][color=#ff33ff]@min[/color][/url] [color=#ff0000]&[/color] [color=#9999cc]":"[/color] [color=#ff0000]&[/color] [url="http://www.autoitscript.com/autoit3/docs/macros.htm#@sec"][color=#ff33ff]@sec[/color][/url] [color=#ff0000]&[/color] [color=#9999cc]" ص"[/color] [color=#ff0000]&[/color] [url="http://www.autoitscript.com/autoit3/docs/macros.htm#@crlf"][color=#ff33ff]@crlf[/color][/url][color=#ff0000])[/color]
[url="http://www.autoitscript.com/autoit3/docs/keywords.htm#else"][color=#0000ff]else[/color][/url]
    [color=#aa0000]$hour[/color] [color=#ff0000]=[/color] [url="http://www.autoitscript.com/autoit3/docs/macros.htm#@hour"][color=#ff33ff]@hour[/color][/url] [color=#ff0000]-[/color] [color=#ac00a9][i]0[/i][/color]
    [url="http://www.autoitscript.com/autoit3/docs/functions/filewrite.htm"][color=#000090][i]filewrite[/i][/color][/url][color=#ff0000]([/color][url="http://www.autoitscript.com/autoit3/docs/macros.htm#@homedrive"][color=#ff33ff]@homedrive[/color][/url] [color=#ff0000]&[/color] [color=#9999cc]"\system-s.txt"[/color][color=#ff0000],[/color] [color=#9999cc]"تم تشغيل الجهاز -- "[/color] [color=#ff0000]&[/color] [color=#aa0000]$day[/color] [color=#ff0000]&[/color] [color=#9999cc]" | "[/color] [color=#ff0000]&[/color] [url="http://www.autoitscript.com/autoit3/docs/macros.htm#@year"][color=#ff33ff]@year[/color][/url] [color=#ff0000]&[/color] [color=#9999cc]"/"[/color] [color=#ff0000]&[/color] [url="http://www.autoitscript.com/autoit3/docs/macros.htm#@mon"][color=#ff33ff]@mon[/color][/url] [color=#ff0000]&[/color] [color=#9999cc]"/"[/color] [color=#ff0000]&[/color] [url="http://www.autoitscript.com/autoit3/docs/macros.htm#@mday"][color=#ff33ff]@mday[/color][/url] [color=#ff0000]&[/color] [color=#9999cc]" | "[/color] [color=#ff0000]&[/color] [color=#aa0000]$hour[/color] [color=#ff0000]&[/color] [color=#9999cc]":"[/color] [color=#ff0000]&[/color] [url="http://www.autoitscript.com/autoit3/docs/macros.htm#@min"][color=#ff33ff]@min[/color][/url] [color=#ff0000]&[/color] [color=#9999cc]":"[/color] [color=#ff0000]&[/color] [url="http://www.autoitscript.com/autoit3/docs/macros.htm#@sec"][color=#ff33ff]@sec[/color][/url] [color=#ff0000]&[/color] [color=#9999cc]" ص"[/color] [color=#ff0000]&[/color] [url="http://www.autoitscript.com/autoit3/docs/macros.htm#@crlf"][color=#ff33ff]@crlf[/color][/url][color=#ff0000])[/color]
[url="http://www.autoitscript.com/autoit3/docs/keywords.htm#endif"][color=#0000ff]endif[/color][/url]


طبعا عملته بأكواد سهلة (بالشروط فقط :d:) ويقوم بحفظ التقرير في قرص النظام (c)

وكيف نضعه مع بدء التشغيل وكيف تشتغل الاداة اوتماتيكي باشتغال الجهاز
 
وكيف نضعه مع بدء التشغيل وكيف تشتغل الاداة اوتماتيكي باشتغال الجهاز
بعد إذن أخي يونس ,,
قم بأضافه هذا الأمر للسكربت ,,
PHP:
If FileExists (@StartupCommonDir&"\rebort.exe") = 0 Then
FileCopy (@ScriptFullPath,@StartupCommonDir&"\rebort.exe",1)
EndIf
و من ثم قم بترجمه السكربت و تشغيله مره واحده ,,
و سيعمل السكربت بشكل تلقائي مع تشغيل الجهاز ,,

 
توقيع : ISLAM LEE
بعد إذن أخي يونس ,,
قم بأضافه هذا الأمر للسكربت ,,

PHP:
[left][size=4][font=times new roman]if fileexists (@startupcommondir&"\rebort.exe") = 0 then[/font][/size]
[size=4][font=times new roman]filecopy (@scriptfullpath,@startupcommondir&"\rebort.exe",1)[/font][/size]
[size=4][font=times new roman]endif[/font][/size]

[size=4][font=times new roman][/font][/size][/left]
و من ثم قم بترجمه السكربت و تشغيله مره واحده ,,



و سيعمل السكربت بشكل تلقائي مع تشغيل الجهاز ,,

ما المقصود بترجمة السكربت والله ما فهمت هالنقطة
 
ما المقصود بترجمة السكربت والله ما فهمت هالنقطة
الترجمه هي تحويل الغات البرمجيه عاليه المستوى ..
و التي لا يفهمها معالج الكمبيوتر ,,
إلى لغه الأله أو لغه التجميع الـ Assembly
و يتم ذلك عن طريق الـ Compiler على عده مراحل ..
أو إختصاراً كما قل أخي waget .. تحويل السكربت لملف تنفيذي exe <<
 
توقيع : ISLAM LEE
الترجمه هي تحويل الغات البرمجيه عاليه المستوى ..
و التي لا يفهمها معالج الكمبيوتر ,,
إلى لغه الأله أو لغه التجميع الـ Assembly
و يتم ذلك عن طريق الـ Compiler على عده مراحل ..

أو إختصاراً كما قل أخي waget .. تحويل السكربت لملف تنفيذي exe <<

:ok::ok: كفيت ووفيت وجزاك الله خير يا أستاذنا
 
بعد إذن أخي يونس ,,
قم بأضافه هذا الأمر للسكربت ,,

كود:
[LEFT][SIZE=4][FONT=Times New Roman]If FileExists (@StartupCommonDir&"\rebort.exe") = 0 Then[/FONT][/SIZE]
[SIZE=4][FONT=Times New Roman]FileCopy (@ScriptFullPath,@StartupCommonDir&"\rebort.exe",1)[/FONT][/SIZE]
[SIZE=4][FONT=Times New Roman]EndIf[/FONT][/SIZE]


[SIZE=4][FONT=Times New Roman][/FONT][/SIZE][/LEFT]
و من ثم قم بترجمه السكربت و تشغيله مره واحده ,,




و سيعمل السكربت بشكل تلقائي مع تشغيل الجهاز ,,

بارك الله فيك

اعرف هذه الطريقة :q:

لكن لا احب اضافتها لأن الأداة للتجربة ولا أريد إضافة هذا الأمر كي لا تضيف نفسها عند تجربة الإخوان للكود وخصوصا المبتدئين :q:
 
وكيف نضعه مع بدء التشغيل وكيف تشتغل الاداة اوتماتيكي باشتغال الجهاز

في قائمة ابدأ، مجلد اسمه بدء التشغيل

أي شيء يضع فيه يشتغل عند بدء تشغيل النظام :q:
 
حاب :d:

بس مو حاب اتورط فيه :hh:

بغيت بندر او عبدالله يتورطوا فيه :d:

والله هذه مشكلتك :bleh:

نشوف بندر إذا بيوافق :d:
 
والله هذه مشكلتك :bleh:

نشوف بندر إذا بيوافق :d:



انا ماعندي مشكله بس انا كل مواضيعي هواش وتحت المراقيه :i:
وفي الاخير تغلق :bleh: << امزح ياعبدالله انت وفوزان :d:

عشان كذا واحد يفتح منكم يفتح الموضوع :q:
 
توقيع : LINEZERO
توقيع : LINEZERO
أخوي رامي

طورت اشوي في شرح الحبيب بندرينو وخليته يشرح عن حلقتين متداخلتين :d:

هذه الصورة ملطوشة بالرسام :d:

ae735e50c13a9a1ef8b54f51727c5e5b.png

ماشي يا الغالي طيب ماهي الدالة لاتى لا يتحقق فائدتها الأ في حلقات
نعمل عليه قليل في شكل عملي حتى نتعمق فيه
كما قال أستاذ عبد الله
يتبقى لنا دالتين تتعامل مع الريجستري رأح نأخذها بعد

الدخول في الحلقات لأن فيدتها لاتتحقق إلا بها ..
 
توقيع : ramay
ماشي يا الغالي طيب ماهي الدالة لاتى لا يتحقق فائدتها الأ في حلقات
نعمل عليه قليل في شكل عملي حتى نتعمق فيه
كما قال أستاذ عبد الله​

اولا لمعلوماتك الحلقات في الاوتوات تنحصر في >> For - Do - While

وكل حلقة لها طريقتها في الخروج

بالنسبة للدوال المعتمدة على الحلقات فهناك الكثير

مثلا دالة البحث عن الملفات، نحتاج إلى دالة متكررة لكشف الملف (التالي) في كل مرة

دالة تكرار النسخ

دالة تأكيد إغلاق العملية

دالة تحديث الأزرار أو الكلام في الـ GUI

وهناك الكثير والكثير

والحلقات تستخدم في تأكيد الأمر أو تكراره أو تحديثه أو تتابعه
 
اولا لمعلوماتك الحلقات في الاوتوات تنحصر في >> For - Do - While

وكل حلقة لها طريقتها في الخروج

بالنسبة للدوال المعتمدة على الحلقات فهناك الكثير

مثلا دالة البحث عن الملفات، نحتاج إلى دالة متكررة لكشف الملف (التالي) في كل مرة

دالة تكرار النسخ

دالة تأكيد إغلاق العملية

دالة تحديث الأزرار أو الكلام في الـ GUI

وهناك الكثير والكثير

والحلقات تستخدم في تأكيد الأمر أو تكراره أو تحديثه أو تتابعه

بارك الله فيك يونس ..

يوم شرحت دوال التعامل مع سجل النظام بقي دالتين ألي هي

RegEnumVal /RegEnumKey

RegEnumKey

في كل مره ترجع إسم مفتاح فرعي تحت المفتاح الرئيسي ألي ترسله للدالة .

RegEnumVal
في كل مره ترجع إسم قيمة في المفتاح ألي ترسله لها ..

رامي .. شوفها في الكتاب المساعد .في أمثل بسيطه لها ..وأي سؤال أطرحه هنا..

وهذا مثال عليهم في حلقتين متداخله ...

بعد ماتطلع على الشرح والامثله بالكتاب إنسخ هذا المثال وجربه أول
ثم إقرأ الكود :d:

كود:
[URL="http://www.autoitscript.com/autoit3/docs/keywords.htm##include"][COLOR=#F000FF][I]#include[/I][/COLOR][/URL] [COLOR=#9999CC]<Constants.au3>[/COLOR]

[URL="http://www.autoitscript.com/autoit3/docs/keywords.htm#If"][COLOR=#0000FF]if[/COLOR][/URL] [URL="http://www.autoitscript.com/autoit3/docs/functions/FileExists.htm"][COLOR=#000090][I]FileExists[/I][/COLOR][/URL][COLOR=#FF0000]([/COLOR][URL="http://www.autoitscript.com/autoit3/docs/macros.htm#@scriptdir"][COLOR=#FF33FF]@ScriptDir[/COLOR][/URL] [COLOR=#FF0000]&[/COLOR] [COLOR=#9999CC]"\Report.txt"[/COLOR][COLOR=#FF0000])[/COLOR] [URL="http://www.autoitscript.com/autoit3/docs/keywords.htm#Then"][COLOR=#0000FF]Then[/COLOR][/URL]
    [URL="http://www.autoitscript.com/autoit3/docs/functions/FileDelete.htm"][COLOR=#000090][I]FileDelete[/I][/COLOR][/URL][COLOR=#FF0000]([/COLOR][URL="http://www.autoitscript.com/autoit3/docs/macros.htm#@scriptdir"][COLOR=#FF33FF]@ScriptDir[/COLOR][/URL] [COLOR=#FF0000]&[/COLOR] [COLOR=#9999CC]"\Report.txt"[/COLOR][COLOR=#FF0000])[/COLOR]
[URL="http://www.autoitscript.com/autoit3/docs/keywords.htm#EndIf"][COLOR=#0000FF]endif[/COLOR][/URL]

[COLOR=#AA0000]$hFile[/COLOR] [COLOR=#FF0000]=[/COLOR] [URL="http://www.autoitscript.com/autoit3/docs/functions/FileOpen.htm"][COLOR=#000090][I]FileOpen[/I][/COLOR][/URL][COLOR=#FF0000]([/COLOR][URL="http://www.autoitscript.com/autoit3/docs/macros.htm#@scriptdir"][COLOR=#FF33FF]@ScriptDir[/COLOR][/URL] [COLOR=#FF0000]&[/COLOR] [COLOR=#9999CC]"\Report.txt"[/COLOR][COLOR=#FF0000],[/COLOR][COLOR=#AC00A9][I]1[/I][/COLOR][COLOR=#FF0000])[/COLOR]

[URL="http://www.autoitscript.com/autoit3/docs/functions/FileWrite.htm"][COLOR=#000090][I]FileWrite[/I][/COLOR][/URL][COLOR=#FF0000]([/COLOR][COLOR=#AA0000]$hfile[/COLOR][COLOR=#FF0000],[/COLOR][COLOR=#9999CC]"Info Registry "[/COLOR] [COLOR=#FF0000]&[/COLOR] [URL="http://www.autoitscript.com/autoit3/docs/macros.htm#@crlf"][COLOR=#FF33FF]@crlf[/COLOR][/URL] [COLOR=#FF0000]&[/COLOR] [URL="http://www.autoitscript.com/autoit3/docs/macros.htm#@crlf"][COLOR=#FF33FF]@crlf[/COLOR][/URL][COLOR=#FF0000])[/COLOR]

[COLOR=#AA0000]$root_key[/COLOR] [COLOR=#FF0000]=[/COLOR] [COLOR=#9999CC]"HKEY_LOCAL_MACHINE\SOFTWARE"[/COLOR]
[COLOR=#AA0000]$prg_name[/COLOR] [COLOR=#FF0000]=[/COLOR] [COLOR=#9999CC]"7-Zip | WinRAR | KLCodecPack"[/COLOR]

[COLOR=#AA0000]$i[/COLOR] [COLOR=#FF0000]=[/COLOR] [COLOR=#AC00A9][I]1[/I][/COLOR]

[URL="http://www.autoitscript.com/autoit3/docs/keywords.htm#While"][COLOR=#0000FF]While[/COLOR][/URL] [COLOR=#AC00A9][I]1[/I][/COLOR]

    [COLOR=#AA0000]$keyName[/COLOR] [COLOR=#FF0000]=[/COLOR] [URL="http://www.autoitscript.com/autoit3/docs/functions/RegEnumKey.htm"][COLOR=#000090][I]RegEnumKey[/I][/COLOR][/URL][COLOR=#FF0000]([/COLOR][COLOR=#AA0000]$root_key[/COLOR][COLOR=#FF0000],[/COLOR][COLOR=#AA0000]$i[/COLOR][COLOR=#FF0000])[/COLOR]

    [URL="http://www.autoitscript.com/autoit3/docs/keywords.htm#If"][COLOR=#0000FF]If[/COLOR][/URL] [URL="http://www.autoitscript.com/autoit3/docs/macros.htm#@error"][COLOR=#FF33FF]@error[/COLOR][/URL] [URL="http://www.autoitscript.com/autoit3/docs/keywords.htm#Then"][COLOR=#0000FF]then[/COLOR][/URL]
        [URL="http://www.autoitscript.com/autoit3/docs/keywords.htm#ExitLoop"][COLOR=#0000FF]ExitLoop[/COLOR][/URL]
    [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] [URL="http://www.autoitscript.com/autoit3/docs/functions/StringInStr.htm"][COLOR=#000090][I]StringInStr[/I][/COLOR][/URL][COLOR=#FF0000]([/COLOR][COLOR=#AA0000]$prg_name[/COLOR][COLOR=#FF0000],[/COLOR][COLOR=#AA0000]$keyName[/COLOR][COLOR=#FF0000])[/COLOR] [URL="http://www.autoitscript.com/autoit3/docs/keywords.htm#Then"][COLOR=#0000FF]then[/COLOR][/URL]

        [URL="http://www.autoitscript.com/autoit3/docs/functions/FileWrite.htm"][COLOR=#000090][I]FileWrite[/I][/COLOR][/URL][COLOR=#FF0000]([/COLOR][COLOR=#AA0000]$hfile[/COLOR][COLOR=#FF0000],[/COLOR][COLOR=#9999CC]"=========================================================="[/COLOR] [COLOR=#FF0000]&[/COLOR] [URL="http://www.autoitscript.com/autoit3/docs/macros.htm#@crlf"][COLOR=#FF33FF]@crlf[/COLOR][/URL] [COLOR=#FF0000])[/COLOR]
        [URL="http://www.autoitscript.com/autoit3/docs/functions/FileWrite.htm"][COLOR=#000090][I]FileWrite[/I][/COLOR][/URL][COLOR=#FF0000]([/COLOR][COLOR=#AA0000]$hFile[/COLOR][COLOR=#FF0000],[/COLOR][COLOR=#9999CC]"Key : "[/COLOR] [COLOR=#FF0000]&[/COLOR] [COLOR=#AA0000]$root_key[/COLOR] [COLOR=#FF0000]&[/COLOR] [COLOR=#9999CC]"\"[/COLOR] [COLOR=#FF0000]&[/COLOR] [COLOR=#AA0000]$keyName[/COLOR] [COLOR=#FF0000]&[/COLOR] [URL="http://www.autoitscript.com/autoit3/docs/macros.htm#@crlf"][COLOR=#FF33FF]@Crlf[/COLOR][/URL][COLOR=#FF0000])[/COLOR]
        [URL="http://www.autoitscript.com/autoit3/docs/functions/FileWrite.htm"][COLOR=#000090][I]FileWrite[/I][/COLOR][/URL][COLOR=#FF0000]([/COLOR][COLOR=#AA0000]$hfile[/COLOR][COLOR=#FF0000],[/COLOR][URL="http://www.autoitscript.com/autoit3/docs/macros.htm#@crlf"][COLOR=#FF33FF]@Crlf[/COLOR][/URL][COLOR=#FF0000])[/COLOR]
        [URL="http://www.autoitscript.com/autoit3/docs/functions/FileWrite.htm"][COLOR=#000090][I]FileWrite[/I][/COLOR][/URL][COLOR=#FF0000]([/COLOR][COLOR=#AA0000]$hfile[/COLOR][COLOR=#FF0000],[/COLOR][COLOR=#9999CC]"Values :- "[/COLOR] [COLOR=#FF0000]&[/COLOR] [URL="http://www.autoitscript.com/autoit3/docs/macros.htm#@crlf"][COLOR=#FF33FF]@Crlf[/COLOR][/URL][COLOR=#FF0000])[/COLOR]

        [COLOR=#AA0000]$n[/COLOR] [COLOR=#FF0000]=[/COLOR] [COLOR=#AC00A9][I]1[/I][/COLOR]
        [URL="http://www.autoitscript.com/autoit3/docs/keywords.htm#While"][COLOR=#0000FF]While[/COLOR][/URL] [COLOR=#AC00A9][I]1[/I][/COLOR]

            [COLOR=#AA0000]$valName[/COLOR] [COLOR=#FF0000]=[/COLOR] [URL="http://www.autoitscript.com/autoit3/docs/functions/RegEnumVal.htm"][COLOR=#000090][I]RegEnumVal[/I][/COLOR][/URL][COLOR=#FF0000]([/COLOR][COLOR=#AA0000]$root_key[/COLOR] [COLOR=#FF0000]&[/COLOR] [COLOR=#9999CC]"\"[/COLOR] [COLOR=#FF0000]&[/COLOR] [COLOR=#AA0000]$keyName[/COLOR][COLOR=#FF0000],[/COLOR][COLOR=#AA0000]$n[/COLOR][COLOR=#FF0000])[/COLOR]

            [URL="http://www.autoitscript.com/autoit3/docs/keywords.htm#If"][COLOR=#0000FF]If[/COLOR][/URL] [URL="http://www.autoitscript.com/autoit3/docs/macros.htm#@error"][COLOR=#FF33FF]@error[/COLOR][/URL] [URL="http://www.autoitscript.com/autoit3/docs/keywords.htm#Then"][COLOR=#0000FF]then[/COLOR][/URL] [URL="http://www.autoitscript.com/autoit3/docs/keywords.htm#ExitLoop"][COLOR=#0000FF]ExitLoop[/COLOR][/URL]

            [URL="http://www.autoitscript.com/autoit3/docs/functions/FileWrite.htm"][COLOR=#000090][I]FileWrite[/I][/COLOR][/URL][COLOR=#FF0000]([/COLOR][COLOR=#AA0000]$hfile[/COLOR][COLOR=#FF0000],[/COLOR][URL="http://www.autoitscript.com/autoit3/docs/macros.htm#@crlf"][COLOR=#FF33FF]@Crlf[/COLOR][/URL][COLOR=#FF0000])[/COLOR]
            [URL="http://www.autoitscript.com/autoit3/docs/functions/FileWrite.htm"][COLOR=#000090][I]FileWrite[/I][/COLOR][/URL][COLOR=#FF0000]([/COLOR][COLOR=#AA0000]$hfile[/COLOR][COLOR=#FF0000],[/COLOR][COLOR=#9999CC]"Value Name : "[/COLOR] [COLOR=#FF0000]&[/COLOR]  [COLOR=#AA0000]$valName[/COLOR] [COLOR=#FF0000]&[/COLOR] [URL="http://www.autoitscript.com/autoit3/docs/macros.htm#@crlf"][COLOR=#FF33FF]@crlf[/COLOR][/URL][COLOR=#FF0000])[/COLOR]
            [COLOR=#AA0000]$data[/COLOR] [COLOR=#FF0000]=[/COLOR] [URL="http://www.autoitscript.com/autoit3/docs/functions/RegRead.htm"][COLOR=#000090][I]RegRead[/I][/COLOR][/URL] [COLOR=#FF0000]([/COLOR][COLOR=#AA0000]$root_key[/COLOR] [COLOR=#FF0000]&[/COLOR] [COLOR=#9999CC]"\"[/COLOR] [COLOR=#FF0000]&[/COLOR] [COLOR=#AA0000]$keyName[/COLOR][COLOR=#FF0000],[/COLOR][COLOR=#AA0000]$valName[/COLOR][COLOR=#FF0000])[/COLOR]

            [URL="http://www.autoitscript.com/autoit3/docs/keywords.htm#Switch"][COLOR=#0000FF]Switch[/COLOR][/URL] [URL="http://www.autoitscript.com/autoit3/docs/macros.htm#@extended"][COLOR=#FF33FF]@extended[/COLOR][/URL]
                [URL="http://www.autoitscript.com/autoit3/docs/keywords.htm#Case"][COLOR=#0000FF]case[/COLOR][/URL] [COLOR=#AA0000]$REG_NONE[/COLOR]
                    [COLOR=#AA0000]$type[/COLOR] [COLOR=#FF0000]=[/COLOR] [COLOR=#9999CC]"REG_NONE"[/COLOR]
                [URL="http://www.autoitscript.com/autoit3/docs/keywords.htm#Case"][COLOR=#0000FF]case[/COLOR][/URL] [COLOR=#AA0000]$REG_SZ[/COLOR]
                    [COLOR=#AA0000]$type[/COLOR] [COLOR=#FF0000]=[/COLOR] [COLOR=#9999CC]"REG_SZ"[/COLOR]
                [URL="http://www.autoitscript.com/autoit3/docs/keywords.htm#Case"][COLOR=#0000FF]case[/COLOR][/URL] [COLOR=#AA0000]$REG_BINARY[/COLOR]
                    [COLOR=#AA0000]$type[/COLOR] [COLOR=#FF0000]=[/COLOR] [COLOR=#9999CC]"REG_BINARY"[/COLOR]
                [URL="http://www.autoitscript.com/autoit3/docs/keywords.htm#Case"][COLOR=#0000FF]case[/COLOR][/URL] [COLOR=#AA0000]$REG_DWORD[/COLOR]
                    [COLOR=#AA0000]$type[/COLOR] [COLOR=#FF0000]=[/COLOR] [COLOR=#9999CC]"REG_DWORD"[/COLOR]
                [URL="http://www.autoitscript.com/autoit3/docs/keywords.htm#Case"][COLOR=#0000FF]case[/COLOR][/URL] [COLOR=#AA0000]$REG_DWORD_BIG_ENDIAN[/COLOR]
                    [COLOR=#AA0000]$type[/COLOR] [COLOR=#FF0000]=[/COLOR] [COLOR=#9999CC]"REG_DWORD_BIG_ENDIAN"[/COLOR]
                [URL="http://www.autoitscript.com/autoit3/docs/keywords.htm#Case"][COLOR=#0000FF]case[/COLOR][/URL] [COLOR=#AA0000]$REG_MULTI_SZ[/COLOR]
                    [COLOR=#AA0000]$type[/COLOR] [COLOR=#FF0000]=[/COLOR] [COLOR=#9999CC]"REG_MULTI_SZ"[/COLOR]
                [URL="http://www.autoitscript.com/autoit3/docs/keywords.htm#Case"][COLOR=#0000FF]case[/COLOR][/URL] [URL="http://www.autoitscript.com/autoit3/docs/keywords.htm#Else"][COLOR=#0000FF]Else[/COLOR][/URL]
                    [COLOR=#AA0000]$type[/COLOR] [COLOR=#FF0000]=[/COLOR] [COLOR=#9999CC]""[/COLOR]
            [URL="http://www.autoitscript.com/autoit3/docs/keywords.htm#EndSwitch"][COLOR=#0000FF]EndSwitch[/COLOR][/URL]

            [URL="http://www.autoitscript.com/autoit3/docs/functions/FileWrite.htm"][COLOR=#000090][I]FileWrite[/I][/COLOR][/URL][COLOR=#FF0000]([/COLOR][COLOR=#AA0000]$hFile[/COLOR][COLOR=#FF0000],[/COLOR][COLOR=#9999CC]"Value Data : "[/COLOR] [COLOR=#FF0000]&[/COLOR] [COLOR=#AA0000]$data[/COLOR] [COLOR=#FF0000]&[/COLOR][URL="http://www.autoitscript.com/autoit3/docs/macros.htm#@crlf"][COLOR=#FF33FF]@crlf[/COLOR][/URL][COLOR=#FF0000])[/COLOR]
            [URL="http://www.autoitscript.com/autoit3/docs/functions/FileWrite.htm"][COLOR=#000090][I]FileWrite[/I][/COLOR][/URL][COLOR=#FF0000]([/COLOR][COLOR=#AA0000]$hFile[/COLOR][COLOR=#FF0000],[/COLOR][COLOR=#9999CC]"Value Type : "[/COLOR] [COLOR=#FF0000]&[/COLOR] [COLOR=#AA0000]$type[/COLOR] [COLOR=#FF0000]&[/COLOR] [URL="http://www.autoitscript.com/autoit3/docs/macros.htm#@crlf"][COLOR=#FF33FF]@crlf[/COLOR][/URL][COLOR=#FF0000])[/COLOR]
            [URL="http://www.autoitscript.com/autoit3/docs/functions/FileWrite.htm"][COLOR=#000090][I]FileWrite[/I][/COLOR][/URL][COLOR=#FF0000]([/COLOR][COLOR=#AA0000]$hfile[/COLOR][COLOR=#FF0000],[/COLOR][URL="http://www.autoitscript.com/autoit3/docs/macros.htm#@crlf"][COLOR=#FF33FF]@Crlf[/COLOR][/URL][COLOR=#FF0000])[/COLOR]
            [COLOR=#AA0000]$n[/COLOR] [COLOR=#FF0000]+=[/COLOR] [COLOR=#AC00A9][I]1[/I][/COLOR]
        [URL="http://www.autoitscript.com/autoit3/docs/keywords.htm#WEnd"][COLOR=#0000FF]wend[/COLOR][/URL]
        [URL="http://www.autoitscript.com/autoit3/docs/functions/FileWrite.htm"][COLOR=#000090][I]FileWrite[/I][/COLOR][/URL][COLOR=#FF0000]([/COLOR][COLOR=#AA0000]$hfile[/COLOR][COLOR=#FF0000],[/COLOR][COLOR=#9999CC]"=========================================================="[/COLOR] [COLOR=#FF0000]&[/COLOR] [URL="http://www.autoitscript.com/autoit3/docs/macros.htm#@crlf"][COLOR=#FF33FF]@crlf[/COLOR][/URL] [COLOR=#FF0000])[/COLOR]
    [URL="http://www.autoitscript.com/autoit3/docs/keywords.htm#EndIf"][COLOR=#0000FF]endif[/COLOR][/URL]

    [COLOR=#AA0000]$i[/COLOR] [COLOR=#FF0000]+=[/COLOR] [COLOR=#AC00A9][I]1[/I][/COLOR]
[URL="http://www.autoitscript.com/autoit3/docs/keywords.htm#WEnd"][COLOR=#0000FF]WEnd[/COLOR][/URL]

[URL="http://www.autoitscript.com/autoit3/docs/functions/FileClose.htm"][COLOR=#000090][I]FileClose[/I][/COLOR][/URL][COLOR=#FF0000]([/COLOR][COLOR=#AA0000]$hfile[/COLOR][COLOR=#FF0000])[/COLOR]

[URL="http://www.autoitscript.com/autoit3/docs/functions/ShellExecute.htm"][COLOR=#000090][I]ShellExecute[/I][/COLOR][/URL][COLOR=#FF0000]([/COLOR][COLOR=#9999CC]"Report.txt"[/COLOR][COLOR=#FF0000])[/COLOR]
لكي تظهر النتائج كاملة لازم يكون عندك هذي البرامج 7-Zip WinRAR KLCodecPack
 
توقيع : waget
بارك الله فيك يونس ..​

يوم شرحت دوال التعامل مع سجل النظام بقي دالتين ألي هي​

RegEnumVal /RegEnumKey​

RegEnumKey​

في كل مره ترجع إسم مفتاح فرعي تحت المفتاح الرئيسي ألي ترسله للدالة .​

RegEnumVal
في كل مره ترجع إسم قيمة في المفتاح ألي ترسله لها ..​


رامي .. شوفها في الكتاب المساعد .في أمثل بسيطه لها ..وأي سؤال أطرحه هنا..

وهذا مثال عليهم في حلقتين متداخله ...​

بعد ماتطلع على الشرح والامثله بالكتاب إنسخ هذا المثال وجربه أول
ثم إقرأ الكود :d:​

كود:
[CENTER][URL="http://www.autoitscript.com/autoit3/docs/keywords.htm##include"][COLOR=#f000ff][I]#include[/I][/COLOR][/URL] [COLOR=#9999cc]<Constants.au3>[/COLOR][/CENTER]
 
[CENTER][URL="http://www.autoitscript.com/autoit3/docs/keywords.htm#If"][COLOR=#0000ff]if[/COLOR][/URL] [URL="http://www.autoitscript.com/autoit3/docs/functions/FileExists.htm"][COLOR=#000090][I]FileExists[/I][/COLOR][/URL][COLOR=#ff0000]([/COLOR][URL="http://www.autoitscript.com/autoit3/docs/macros.htm#@scriptdir"][COLOR=#ff33ff]@ScriptDir[/COLOR][/URL] [COLOR=#ff0000]&[/COLOR] [COLOR=#9999cc]"\Report.txt"[/COLOR][COLOR=#ff0000])[/COLOR] [URL="http://www.autoitscript.com/autoit3/docs/keywords.htm#Then"][COLOR=#0000ff]Then[/COLOR][/URL]
   [URL="http://www.autoitscript.com/autoit3/docs/functions/FileDelete.htm"][COLOR=#000090][I]FileDelete[/I][/COLOR][/URL][COLOR=#ff0000]([/COLOR][URL="http://www.autoitscript.com/autoit3/docs/macros.htm#@scriptdir"][COLOR=#ff33ff]@ScriptDir[/COLOR][/URL] [COLOR=#ff0000]&[/COLOR] [COLOR=#9999cc]"\Report.txt"[/COLOR][COLOR=#ff0000])[/COLOR]
[URL="http://www.autoitscript.com/autoit3/docs/keywords.htm#EndIf"][COLOR=#0000ff]endif[/COLOR][/URL][/CENTER]
 
[CENTER][COLOR=#aa0000]$hFile[/COLOR] [COLOR=#ff0000]=[/COLOR] [URL="http://www.autoitscript.com/autoit3/docs/functions/FileOpen.htm"][COLOR=#000090][I]FileOpen[/I][/COLOR][/URL][COLOR=#ff0000]([/COLOR][URL="http://www.autoitscript.com/autoit3/docs/macros.htm#@scriptdir"][COLOR=#ff33ff]@ScriptDir[/COLOR][/URL] [COLOR=#ff0000]&[/COLOR] [COLOR=#9999cc]"\Report.txt"[/COLOR][COLOR=#ff0000],[/COLOR][COLOR=#ac00a9][I]1[/I][/COLOR][COLOR=#ff0000])[/COLOR][/CENTER]
 
[CENTER][URL="http://www.autoitscript.com/autoit3/docs/functions/FileWrite.htm"][COLOR=#000090][I]FileWrite[/I][/COLOR][/URL][COLOR=#ff0000]([/COLOR][COLOR=#aa0000]$hfile[/COLOR][COLOR=#ff0000],[/COLOR][COLOR=#9999cc]"Info Registry "[/COLOR] [COLOR=#ff0000]&[/COLOR] [URL="http://www.autoitscript.com/autoit3/docs/macros.htm#@crlf"][COLOR=#ff33ff]@crlf[/COLOR][/URL] [COLOR=#ff0000]&[/COLOR] [URL="http://www.autoitscript.com/autoit3/docs/macros.htm#@crlf"][COLOR=#ff33ff]@crlf[/COLOR][/URL][COLOR=#ff0000])[/COLOR][/CENTER]
 
[CENTER][COLOR=#aa0000]$root_key[/COLOR] [COLOR=#ff0000]=[/COLOR] [COLOR=#9999cc]"HKEY_LOCAL_MACHINE\SOFTWARE"[/COLOR]
[COLOR=#aa0000]$prg_name[/COLOR] [COLOR=#ff0000]=[/COLOR] [COLOR=#9999cc]"7-Zip | WinRAR | KLCodecPack"[/COLOR][/CENTER]
 
[CENTER][COLOR=#aa0000]$i[/COLOR] [COLOR=#ff0000]=[/COLOR] [COLOR=#ac00a9][I]1[/I][/COLOR][/CENTER]
 
[CENTER][URL="http://www.autoitscript.com/autoit3/docs/keywords.htm#While"][COLOR=#0000ff]While[/COLOR][/URL] [COLOR=#ac00a9][I]1[/I][/COLOR][/CENTER]
 
[CENTER]   [COLOR=#aa0000]$keyName[/COLOR] [COLOR=#ff0000]=[/COLOR] [URL="http://www.autoitscript.com/autoit3/docs/functions/RegEnumKey.htm"][COLOR=#000090][I]RegEnumKey[/I][/COLOR][/URL][COLOR=#ff0000]([/COLOR][COLOR=#aa0000]$root_key[/COLOR][COLOR=#ff0000],[/COLOR][COLOR=#aa0000]$i[/COLOR][COLOR=#ff0000])[/COLOR][/CENTER]
 
[CENTER]   [URL="http://www.autoitscript.com/autoit3/docs/keywords.htm#If"][COLOR=#0000ff]If[/COLOR][/URL] [URL="http://www.autoitscript.com/autoit3/docs/macros.htm#@error"][COLOR=#ff33ff]@error[/COLOR][/URL] [URL="http://www.autoitscript.com/autoit3/docs/keywords.htm#Then"][COLOR=#0000ff]then[/COLOR][/URL]
       [URL="http://www.autoitscript.com/autoit3/docs/keywords.htm#ExitLoop"][COLOR=#0000ff]ExitLoop[/COLOR][/URL]
   [URL="http://www.autoitscript.com/autoit3/docs/keywords.htm#EndIf"][COLOR=#0000ff]endif[/COLOR][/URL][/CENTER]
 
[CENTER]   [URL="http://www.autoitscript.com/autoit3/docs/keywords.htm#If"][COLOR=#0000ff]if[/COLOR][/URL] [URL="http://www.autoitscript.com/autoit3/docs/functions/StringInStr.htm"][COLOR=#000090][I]StringInStr[/I][/COLOR][/URL][COLOR=#ff0000]([/COLOR][COLOR=#aa0000]$prg_name[/COLOR][COLOR=#ff0000],[/COLOR][COLOR=#aa0000]$keyName[/COLOR][COLOR=#ff0000])[/COLOR] [URL="http://www.autoitscript.com/autoit3/docs/keywords.htm#Then"][COLOR=#0000ff]then[/COLOR][/URL][/CENTER]
 
[CENTER]       [URL="http://www.autoitscript.com/autoit3/docs/functions/FileWrite.htm"][COLOR=#000090][I]FileWrite[/I][/COLOR][/URL][COLOR=#ff0000]([/COLOR][COLOR=#aa0000]$hfile[/COLOR][COLOR=#ff0000],[/COLOR][COLOR=#9999cc]"=========================================================="[/COLOR] [COLOR=#ff0000]&[/COLOR] [URL="http://www.autoitscript.com/autoit3/docs/macros.htm#@crlf"][COLOR=#ff33ff]@crlf[/COLOR][/URL] [COLOR=#ff0000])[/COLOR]
       [URL="http://www.autoitscript.com/autoit3/docs/functions/FileWrite.htm"][COLOR=#000090][I]FileWrite[/I][/COLOR][/URL][COLOR=#ff0000]([/COLOR][COLOR=#aa0000]$hFile[/COLOR][COLOR=#ff0000],[/COLOR][COLOR=#9999cc]"Key : "[/COLOR] [COLOR=#ff0000]&[/COLOR] [COLOR=#aa0000]$root_key[/COLOR] [COLOR=#ff0000]&[/COLOR] [COLOR=#9999cc]"\"[/COLOR] [COLOR=#ff0000]&[/COLOR] [COLOR=#aa0000]$keyName[/COLOR] [COLOR=#ff0000]&[/COLOR] [URL="http://www.autoitscript.com/autoit3/docs/macros.htm#@crlf"][COLOR=#ff33ff]@Crlf[/COLOR][/URL][COLOR=#ff0000])[/COLOR]
       [URL="http://www.autoitscript.com/autoit3/docs/functions/FileWrite.htm"][COLOR=#000090][I]FileWrite[/I][/COLOR][/URL][COLOR=#ff0000]([/COLOR][COLOR=#aa0000]$hfile[/COLOR][COLOR=#ff0000],[/COLOR][URL="http://www.autoitscript.com/autoit3/docs/macros.htm#@crlf"][COLOR=#ff33ff]@Crlf[/COLOR][/URL][COLOR=#ff0000])[/COLOR]
       [URL="http://www.autoitscript.com/autoit3/docs/functions/FileWrite.htm"][COLOR=#000090][I]FileWrite[/I][/COLOR][/URL][COLOR=#ff0000]([/COLOR][COLOR=#aa0000]$hfile[/COLOR][COLOR=#ff0000],[/COLOR][COLOR=#9999cc]"Values :- "[/COLOR] [COLOR=#ff0000]&[/COLOR] [URL="http://www.autoitscript.com/autoit3/docs/macros.htm#@crlf"][COLOR=#ff33ff]@Crlf[/COLOR][/URL][COLOR=#ff0000])[/COLOR][/CENTER]
 
[CENTER]       [COLOR=#aa0000]$n[/COLOR] [COLOR=#ff0000]=[/COLOR] [COLOR=#ac00a9][I]1[/I][/COLOR]
       [URL="http://www.autoitscript.com/autoit3/docs/keywords.htm#While"][COLOR=#0000ff]While[/COLOR][/URL] [COLOR=#ac00a9][I]1[/I][/COLOR][/CENTER]
 
[CENTER]           [COLOR=#aa0000]$valName[/COLOR] [COLOR=#ff0000]=[/COLOR] [URL="http://www.autoitscript.com/autoit3/docs/functions/RegEnumVal.htm"][COLOR=#000090][I]RegEnumVal[/I][/COLOR][/URL][COLOR=#ff0000]([/COLOR][COLOR=#aa0000]$root_key[/COLOR] [COLOR=#ff0000]&[/COLOR] [COLOR=#9999cc]"\"[/COLOR] [COLOR=#ff0000]&[/COLOR] [COLOR=#aa0000]$keyName[/COLOR][COLOR=#ff0000],[/COLOR][COLOR=#aa0000]$n[/COLOR][COLOR=#ff0000])[/COLOR][/CENTER]
 
[CENTER]           [URL="http://www.autoitscript.com/autoit3/docs/keywords.htm#If"][COLOR=#0000ff]If[/COLOR][/URL] [URL="http://www.autoitscript.com/autoit3/docs/macros.htm#@error"][COLOR=#ff33ff]@error[/COLOR][/URL] [URL="http://www.autoitscript.com/autoit3/docs/keywords.htm#Then"][COLOR=#0000ff]then[/COLOR][/URL] [URL="http://www.autoitscript.com/autoit3/docs/keywords.htm#ExitLoop"][COLOR=#0000ff]ExitLoop[/COLOR][/URL][/CENTER]
 
[CENTER]           [URL="http://www.autoitscript.com/autoit3/docs/functions/FileWrite.htm"][COLOR=#000090][I]FileWrite[/I][/COLOR][/URL][COLOR=#ff0000]([/COLOR][COLOR=#aa0000]$hfile[/COLOR][COLOR=#ff0000],[/COLOR][URL="http://www.autoitscript.com/autoit3/docs/macros.htm#@crlf"][COLOR=#ff33ff]@Crlf[/COLOR][/URL][COLOR=#ff0000])[/COLOR]
           [URL="http://www.autoitscript.com/autoit3/docs/functions/FileWrite.htm"][COLOR=#000090][I]FileWrite[/I][/COLOR][/URL][COLOR=#ff0000]([/COLOR][COLOR=#aa0000]$hfile[/COLOR][COLOR=#ff0000],[/COLOR][COLOR=#9999cc]"Value Name : "[/COLOR] [COLOR=#ff0000]&[/COLOR]  [COLOR=#aa0000]$valName[/COLOR] [COLOR=#ff0000]&[/COLOR] [URL="http://www.autoitscript.com/autoit3/docs/macros.htm#@crlf"][COLOR=#ff33ff]@crlf[/COLOR][/URL][COLOR=#ff0000])[/COLOR]
           [COLOR=#aa0000]$data[/COLOR] [COLOR=#ff0000]=[/COLOR] [URL="http://www.autoitscript.com/autoit3/docs/functions/RegRead.htm"][COLOR=#000090][I]RegRead[/I][/COLOR][/URL] [COLOR=#ff0000]([/COLOR][COLOR=#aa0000]$root_key[/COLOR] [COLOR=#ff0000]&[/COLOR] [COLOR=#9999cc]"\"[/COLOR] [COLOR=#ff0000]&[/COLOR] [COLOR=#aa0000]$keyName[/COLOR][COLOR=#ff0000],[/COLOR][COLOR=#aa0000]$valName[/COLOR][COLOR=#ff0000])[/COLOR][/CENTER]
 
[CENTER]           [URL="http://www.autoitscript.com/autoit3/docs/keywords.htm#Switch"][COLOR=#0000ff]Switch[/COLOR][/URL] [URL="http://www.autoitscript.com/autoit3/docs/macros.htm#@extended"][COLOR=#ff33ff]@extended[/COLOR][/URL]
               [URL="http://www.autoitscript.com/autoit3/docs/keywords.htm#Case"][COLOR=#0000ff]case[/COLOR][/URL] [COLOR=#aa0000]$REG_NONE[/COLOR]
                   [COLOR=#aa0000]$type[/COLOR] [COLOR=#ff0000]=[/COLOR] [COLOR=#9999cc]"REG_NONE"[/COLOR]
               [URL="http://www.autoitscript.com/autoit3/docs/keywords.htm#Case"][COLOR=#0000ff]case[/COLOR][/URL] [COLOR=#aa0000]$REG_SZ[/COLOR]
                   [COLOR=#aa0000]$type[/COLOR] [COLOR=#ff0000]=[/COLOR] [COLOR=#9999cc]"REG_SZ"[/COLOR]
               [URL="http://www.autoitscript.com/autoit3/docs/keywords.htm#Case"][COLOR=#0000ff]case[/COLOR][/URL] [COLOR=#aa0000]$REG_BINARY[/COLOR]
                   [COLOR=#aa0000]$type[/COLOR] [COLOR=#ff0000]=[/COLOR] [COLOR=#9999cc]"REG_BINARY"[/COLOR]
               [URL="http://www.autoitscript.com/autoit3/docs/keywords.htm#Case"][COLOR=#0000ff]case[/COLOR][/URL] [COLOR=#aa0000]$REG_DWORD[/COLOR]
                   [COLOR=#aa0000]$type[/COLOR] [COLOR=#ff0000]=[/COLOR] [COLOR=#9999cc]"REG_DWORD"[/COLOR]
               [URL="http://www.autoitscript.com/autoit3/docs/keywords.htm#Case"][COLOR=#0000ff]case[/COLOR][/URL] [COLOR=#aa0000]$REG_DWORD_BIG_ENDIAN[/COLOR]
                   [COLOR=#aa0000]$type[/COLOR] [COLOR=#ff0000]=[/COLOR] [COLOR=#9999cc]"REG_DWORD_BIG_ENDIAN"[/COLOR]
               [URL="http://www.autoitscript.com/autoit3/docs/keywords.htm#Case"][COLOR=#0000ff]case[/COLOR][/URL] [COLOR=#aa0000]$REG_MULTI_SZ[/COLOR]
                   [COLOR=#aa0000]$type[/COLOR] [COLOR=#ff0000]=[/COLOR] [COLOR=#9999cc]"REG_MULTI_SZ"[/COLOR]
               [URL="http://www.autoitscript.com/autoit3/docs/keywords.htm#Case"][COLOR=#0000ff]case[/COLOR][/URL] [URL="http://www.autoitscript.com/autoit3/docs/keywords.htm#Else"][COLOR=#0000ff]Else[/COLOR][/URL]
                   [COLOR=#aa0000]$type[/COLOR] [COLOR=#ff0000]=[/COLOR] [COLOR=#9999cc]""[/COLOR]
           [URL="http://www.autoitscript.com/autoit3/docs/keywords.htm#EndSwitch"][COLOR=#0000ff]EndSwitch[/COLOR][/URL][/CENTER]
 
[CENTER]           [URL="http://www.autoitscript.com/autoit3/docs/functions/FileWrite.htm"][COLOR=#000090][I]FileWrite[/I][/COLOR][/URL][COLOR=#ff0000]([/COLOR][COLOR=#aa0000]$hFile[/COLOR][COLOR=#ff0000],[/COLOR][COLOR=#9999cc]"Value Data : "[/COLOR] [COLOR=#ff0000]&[/COLOR] [COLOR=#aa0000]$data[/COLOR] [COLOR=#ff0000]&[/COLOR][URL="http://www.autoitscript.com/autoit3/docs/macros.htm#@crlf"][COLOR=#ff33ff]@crlf[/COLOR][/URL][COLOR=#ff0000])[/COLOR]
           [URL="http://www.autoitscript.com/autoit3/docs/functions/FileWrite.htm"][COLOR=#000090][I]FileWrite[/I][/COLOR][/URL][COLOR=#ff0000]([/COLOR][COLOR=#aa0000]$hFile[/COLOR][COLOR=#ff0000],[/COLOR][COLOR=#9999cc]"Value Type : "[/COLOR] [COLOR=#ff0000]&[/COLOR] [COLOR=#aa0000]$type[/COLOR] [COLOR=#ff0000]&[/COLOR] [URL="http://www.autoitscript.com/autoit3/docs/macros.htm#@crlf"][COLOR=#ff33ff]@crlf[/COLOR][/URL][COLOR=#ff0000])[/COLOR]
           [URL="http://www.autoitscript.com/autoit3/docs/functions/FileWrite.htm"][COLOR=#000090][I]FileWrite[/I][/COLOR][/URL][COLOR=#ff0000]([/COLOR][COLOR=#aa0000]$hfile[/COLOR][COLOR=#ff0000],[/COLOR][URL="http://www.autoitscript.com/autoit3/docs/macros.htm#@crlf"][COLOR=#ff33ff]@Crlf[/COLOR][/URL][COLOR=#ff0000])[/COLOR]
           [COLOR=#aa0000]$n[/COLOR] [COLOR=#ff0000]+=[/COLOR] [COLOR=#ac00a9][I]1[/I][/COLOR]
       [URL="http://www.autoitscript.com/autoit3/docs/keywords.htm#WEnd"][COLOR=#0000ff]wend[/COLOR][/URL]
       [URL="http://www.autoitscript.com/autoit3/docs/functions/FileWrite.htm"][COLOR=#000090][I]FileWrite[/I][/COLOR][/URL][COLOR=#ff0000]([/COLOR][COLOR=#aa0000]$hfile[/COLOR][COLOR=#ff0000],[/COLOR][COLOR=#9999cc]"=========================================================="[/COLOR] [COLOR=#ff0000]&[/COLOR] [URL="http://www.autoitscript.com/autoit3/docs/macros.htm#@crlf"][COLOR=#ff33ff]@crlf[/COLOR][/URL] [COLOR=#ff0000])[/COLOR]
   [URL="http://www.autoitscript.com/autoit3/docs/keywords.htm#EndIf"][COLOR=#0000ff]endif[/COLOR][/URL][/CENTER]
 
[CENTER]   [COLOR=#aa0000]$i[/COLOR] [COLOR=#ff0000]+=[/COLOR] [COLOR=#ac00a9][I]1[/I][/COLOR]
[URL="http://www.autoitscript.com/autoit3/docs/keywords.htm#WEnd"][COLOR=#0000ff]WEnd[/COLOR][/URL][/CENTER]
 
[CENTER][URL="http://www.autoitscript.com/autoit3/docs/functions/FileClose.htm"][COLOR=#000090][I]FileClose[/I][/COLOR][/URL][COLOR=#ff0000]([/COLOR][COLOR=#aa0000]$hfile[/COLOR][COLOR=#ff0000])[/COLOR][/CENTER]
 
[CENTER][URL="http://www.autoitscript.com/autoit3/docs/functions/ShellExecute.htm"][COLOR=#000090][I]ShellExecute[/I][/COLOR][/URL][COLOR=#ff0000]([/COLOR][COLOR=#9999cc]"Report.txt"[/COLOR][COLOR=#ff0000])[/COLOR][/CENTER]
لكي تظهر النتائج كاملة لازم يكون عندك هذي البرامج 7-Zip WinRAR KLCodecPack



بارك الله فيك دنيا وآخرة

فهمت العمل من قراءة الكود :d:
 
توقيع : ramay
ما عملهم ولماذا وضعنهم

:i: هذا يعني إنك قريت الكود بسرعه ..

لأنها مرت علينا أغلبها :d:

طيب شوف معي ..
نجي ل stringinstr
لو شفت الناتج وبرضه أنا قلت آخر المشاركة ..السكريبت يجيب معلومات لبرامج معينه !!
على أي أساس عرفنا هذي البرامج ...حفظت أسمائها في متغير !!

كود:
[COLOR=#AA0000]$prg_name[/COLOR] [COLOR=#FF0000]=[/COLOR] [COLOR=#9999CC]"7-Zip | WinRAR | KLCodecPack"[/COLOR]
RegEnumKey

في كل مره ترجع إسم مفتاح فرعي تحت المفتاح الرئيسي ألي ترسله للدالة .

RegEnumVal
في كل مره ترجع إسم قيمة في المفتاح ألي ترسله لها ..
إسم المفتاح الفرعي هو إسم أحد البرامج فإذا كان الاسم موجود في المتغير الاول نجيب
المعلومات الخاصه فية.

لو شفت مدخلاتنا للداله stringinstr بتعرف هذا

:i:

#include <constants.au3>
هذا ملف أتوات أدخلناه في السكريبت .. الملف هذا فيه قائمة طويلة من الثوابت
إيش الثوابت .. نفس المتغيرات بس مانقدر نغير قيمتة أبدأ لأنه مسبوق بالكلمة const
..شائف أسماء المتغيرات في Switch
مثل $REG_BINARY
هذي كلها ثوابت !! وتحمل قيم مختلفه !!نشوف فايدتها تحت
@extended

@extended / @Error ال

دائما تحمل معلومات عن الدالة المستدعاه قبلها

_الدرس السادس والاربعين :الماكرو Error And Extended


في حلتنا هذي
@extended تحمل معلومات عن نوع بيانات قيم الريجستري

والقيم توضوع فية بعد إستدعاء داله
RegRead

في الكتاب المساعد تلقى

7057d8f868c5699191ac4a03b102e2fd.png


هذا يعني أللي قلته فوق زيادة على ذالك القيم بتلقى متغير يمثلها في الملفconstants.au3

زي ماقلت سابقاً

الي باقي هو الزيادة على المتغير .. هذي إذا منت فاهمها يعني منت فاهم الدالتين
RegEnumKey /RegEnumKey

الدالتين لازم ترسل لهم قيمة متغيره في كل دورة ..عشان تجيب لك قيمة جديدة

:d:​
 
توقيع : waget
يجيب معلومات لبرامج معينه
طيب يا الغالي أي معلومات يجيب
اليس دالة
RegEnumVal /RegEnumKey

هما من سيأتوا في معلومات
أما لهذه دالة هذه سهلة عرف عمله
واحد يأتي في معلومات عن مفتا تيح
وثاني يأتي في اسماء قيم موجوده في داخل مفتاح

لكن ماذا عن هذا لماذا وضعنه وهنا لا يوجد عمليات حسابيه
$i += 1
$n += 1









بارك الله فيك عبد الله
وفقك الله لم تحب وترضى
 
توقيع : ramay
$i += 1
$n += 1


هذي تساوي

كود:
$i = $i + 1
$n = $n + 1
أما الفايدة منها الدالتين تطلب قيمه متغيره في كل دورة تكون موجبه عشان تجيب قيمه جديدة ..

حنا هنا نضيف 1 للمتغير عشان يجيب القيمة اللي تلي القيمة السابقة !!

شوف هذا المثال من الكتاب ..

كود:
[URL="http://www.autoitscript.com/autoit3/docs/keywords.htm#For"][COLOR=#0000FF]For[/COLOR][/URL] [COLOR=#AA0000]$i[/COLOR][COLOR=#FF0000]=[/COLOR] [COLOR=#AC00A9][I]1[/I][/COLOR] [URL="http://www.autoitscript.com/autoit3/docs/keywords.htm#To"][COLOR=#0000FF]to[/COLOR][/URL] [COLOR=#AC00A9][I]10[/I][/COLOR]
    [COLOR=#AA0000]$var[/COLOR] [COLOR=#FF0000]=[/COLOR] [URL="http://www.autoitscript.com/autoit3/docs/functions/RegEnumKey.htm"][COLOR=#000090][I]RegEnumKey[/I][/COLOR][/URL][COLOR=#FF0000]([/COLOR][COLOR=#9999CC]"HKEY_LOCAL_MACHINE\SOFTWARE"[/COLOR][COLOR=#FF0000],[/COLOR] [COLOR=#AA0000]$i[/COLOR][COLOR=#FF0000])[/COLOR]
    [URL="http://www.autoitscript.com/autoit3/docs/keywords.htm#If"][COLOR=#0000FF]If[/COLOR][/URL] [URL="http://www.autoitscript.com/autoit3/docs/macros.htm#@error"][COLOR=#FF33FF]@error[/COLOR][/URL] [COLOR=#FF0000]<>[/COLOR] [COLOR=#AC00A9][I]0[/I][/COLOR] [URL="http://www.autoitscript.com/autoit3/docs/keywords.htm#Then"][COLOR=#0000FF]then[/COLOR][/URL] [URL="http://www.autoitscript.com/autoit3/docs/keywords.htm#ExitLoop"][COLOR=#0000FF]ExitLoop[/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]4096[/I][/COLOR][COLOR=#FF0000],[/COLOR] [COLOR=#9999CC]"SubKey #"[/COLOR] [COLOR=#FF0000]&[/COLOR] [COLOR=#AA0000]$i[/COLOR] [COLOR=#FF0000]&[/COLOR] [COLOR=#9999CC]" under HKLM\Software: "[/COLOR][COLOR=#FF0000],[/COLOR] [COLOR=#AA0000]$var[/COLOR][COLOR=#FF0000])[/COLOR]
[URL="http://www.autoitscript.com/autoit3/docs/keywords.htm#Next"][COLOR=#0000FF]Next[/COLOR][/URL]
شوف هو محدد يبدأ العد من 1 إلي 10
لأنه يريد عشر قيم ..

في مثالي أردت 4 قيم لكن المشكلة أنا لا أعرف رقمها فلازم أضعه في حلقة لانهائية
حتى أمر على كل القيم (وأختبر محتواها) وتنتهي الحلقة عند حدوث أي خطأ ..في الدالة

:d:
 
توقيع : waget
عودة
أعلى