في أي مجال تريده بالضبط :q:

يعني باختصار قول فكرة براسك عشان اجيب لك مثال :d:
أهلانا فيك يا الغالي
مشكلة أني مش فهم درس وأريد كم مثال عليه حتى يقدر الله وأفهمه ولوممكن تشرح كود موجود في موضوع وما عمل كل سطر ولماذا هذا سطر هنا وليس مكان أخر

أتمنى أن لا أكون طولة عليك سؤال
:king:
 

توقيع : ramay
أهلانا فيك يا الغالي
مشكلة أني مش فهم درس وأريد كم مثال عليه حتى يقدر الله وأفهمه ولوممكن تشرح كود موجود في موضوع وما عمل كل سطر ولماذا هذا سطر هنا وليس مكان أخر​

أتمنى أن لا أكون طولة عليك سؤال
:king:​

راح اشرحه لك بشكل (كلامي)

لانك ما راح تفهم بالامثلة بالنسبة لهذا الدرس :d:

الحلقات المتداخلة ما هي إلا حلقتين أو اكثر كل واحد داخله في الثاني

مثلا:

دورة 1
دورة 2
انتهاء
انتهاء

عندما يدخل الامر في الدورة 1 فإنه يدور داخلها

وعندما يصل للدورة 2 يقل نطاق دورانه بحدود الدورة 2

وهكذا

ومثلا لو وضعت هذا الامر (بالعربي)

دورة 1
دورة 2
خروج >> (exitloop)
انتهاء
انتهاء

في هذا الامر سيدخل في الدورة 1 ثم الدورة 2

ثم سيخرج من الدورة 2 عائدا إلى 1

ثم سيعيد الـ 1 ادخال النطاق ضمن 2 ثم سيخرج

وهكذا

مثال آخر لدورات منتهية

دورة 1
دورة 2
خروج > (exitloop)
انتهاء
خروج > (exitloop)
انتهاء

ستلاحظ دخول للدورة 1 ثم الدورة 2

ثم سيخرج من الدورة 2 ثم سيخرج من الدورة 1 :d:

مثال على اغلاق متصفح الاكسبلور :d:

كود:
While 1
 While ProcessExists("iexplore.exe")
  ProcessClose("iexplore.exe")
 WEnd
 $Q = MsgBox(4,"","الاكسبلور مغلق")
 If $Q = 7 Then
  ExitLoop
 EndIf
WEnd

تلاحظ في هذا الامر

اولا سيدخل الدورة الاولى

ثم سينقل للدورة الثانية ليقوم بإغلاق الاكسبلور

إذا صارت قيمة processexists تساوي صفر أي أنه لا يوجد عملية للانترنت اكسبلور

ستنتهي الدورة الثانية وسيعود للاولى

مخرجا رسالة الاكسبلور مغلق

إذا ضغطت نعم سيكمل بشكل طبيعي وسيعيد الرسالة طالما الاكسبلور مغلق لانه فورا يخرج من الدورة 2 لانه قيمتها 0 وليست 1 :d:

وإذا ضغطت لا سيخرج من الدورة 1 أيضا وسينتهي عمل الأداة :ok:

تحياتي :king:
 
توقيع : yones7x
يلا خلونا نسألكم سؤال انا اريد اظهار رسالة في شريط التولبار ومحتواها مثلا يجب عليك اغلاق المتصفحات لاظهار رسالة الترحيب

اي انا قصدي اذا انت مشغل اي متصفح سواء انترنت اكسبلورير او الفايرفوكس وقمت بتشغيل الاداة فانها لاتشتغل وتقوم باظهار رسالة تنبيهية وتحذيرية في التولبار محتواها يجب اغلاق المتصفحات
وعندما تقوم باغلاق المتصفحات بشكل اوتماتيكي تشتغل الاداة التي هي عبارة عن رسالة محتواها مرحبا بك في عالم الاتوات
فما هي الاكواد لو سمحتم والله يخليكم افيدونا افادكم الله بالعلم الوفير

للرفع ولتحريك الموضوع ولكي يستفيد الكل
 
للرفع ولتحريك الموضوع ولكي يستفيد الكل

يعجبني اصرارك يالحلا تبي تتعلم بشكل غريب جداً جداً .. :smile: انا الي قهرني ليه خاش باسم بنت :cr:
وانت شنبك يسحب على الكيبورد :i:

ولو كل منتدى فيه اثنين او ثلاثه منك كان قفلت المنتديات من زمان ... :d:

المهم دامك مصر راح اجاوبك .. :kmj-by0000 (72):


 
توقيع : LINEZERO
لمعذره انشغلت شوي

هذا الكود
كود:
[url=http://www.autoitscript.com/autoit3/docs/keywords.htm##include][color=#F000FF][i]#include[/i][/color][/url] [color=#9999CC]<ButtonConstants.au3>[/color]
[url=http://www.autoitscript.com/autoit3/docs/keywords.htm##include][color=#F000FF][i]#include[/i][/color][/url] [color=#9999CC]<GUIConstantsEx.au3>[/color]
[url=http://www.autoitscript.com/autoit3/docs/keywords.htm##include][color=#F000FF][i]#include[/i][/color][/url] [color=#9999CC]<WindowsConstants.au3>[/color]
[color=#AA0000]$Form1[/color] [color=#FF0000]=[/color] [url=http://www.autoitscript.com/autoit3/docs/functions/GUICreate.htm][color=#000090][i]GUICreate[/i][/color][/url][color=#FF0000]([/color][color=#9999CC]"Expertise"[/color][color=#FF0000],[/color] [color=#AC00A9][i]243[/i][/color][color=#FF0000],[/color] [color=#AC00A9][i]106[/i][/color][color=#FF0000],[/color] [color=#AC00A9][i]192[/i][/color][color=#FF0000],[/color] [color=#AC00A9][i]170[/i][/color][color=#FF0000])[/color]
[url=http://www.autoitscript.com/autoit3/docs/functions/GUISetFont.htm][color=#000090][i]GUISetFont[/i][/color][/url][color=#FF0000]([/color][color=#AC00A9][i]12[/i][/color][color=#FF0000],[/color] [color=#AC00A9][i]400[/i][/color][color=#FF0000],[/color] [color=#AC00A9][i]0[/i][/color][color=#FF0000],[/color] [color=#9999CC]"Verdana"[/color][color=#FF0000])[/color]
[color=#AA0000]$Button1[/color] [color=#FF0000]=[/color] [url=http://www.autoitscript.com/autoit3/docs/functions/GUICtrlCreateButton.htm][color=#000090][i]GUICtrlCreateButton[/i][/color][/url][color=#FF0000]([/color][color=#9999CC]"Test it"[/color][color=#FF0000],[/color] [color=#AC00A9][i]53[/i][/color][color=#FF0000],[/color] [color=#AC00A9][i]32[/i][/color][color=#FF0000],[/color] [color=#AC00A9][i]137[/i][/color][color=#FF0000],[/color] [color=#AC00A9][i]41[/i][/color][color=#FF0000])[/color]
[url=http://www.autoitscript.com/autoit3/docs/functions/GUISetState.htm][color=#000090][i]GUISetState[/i][/color][/url][color=#FF0000]([/color][url=http://www.autoitscript.com/autoit3/docs/macros.htm#@sw_show][color=#FF33FF]@SW_SHOW[/color][/url][color=#FF0000])[/color]
[url=http://www.autoitscript.com/autoit3/docs/keywords.htm#While][color=#0000FF]While[/color][/url] [color=#AC00A9][i]1[/i][/color]
    [color=#AA0000]$nMsg[/color] [color=#FF0000]=[/color] [url=http://www.autoitscript.com/autoit3/docs/functions/GUIGetMsg.htm][color=#000090][i]GUIGetMsg[/i][/color][/url][color=#FF0000]()[/color]
    [url=http://www.autoitscript.com/autoit3/docs/keywords.htm#Switch][color=#0000FF]Switch[/color][/url] [color=#AA0000]$nMsg[/color]
        [url=http://www.autoitscript.com/autoit3/docs/keywords.htm#Case][color=#0000FF]Case[/color][/url] [color=#AA0000]$GUI_EVENT_CLOSE[/color]
            [url=http://www.autoitscript.com/autoit3/docs/keywords.htm#Exit][color=#0000FF]Exit[/color][/url]
        [url=http://www.autoitscript.com/autoit3/docs/keywords.htm#Case][color=#0000FF]Case[/color][/url] [color=#AA0000]$Button1[/color]
            [url=http://www.autoitscript.com/autoit3/docs/keywords.htm#Do][color=#0000FF]Do[/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/ProcessExists.htm][color=#000090][i]ProcessExists[/i][/color][/url][color=#FF0000]([/color][color=#9999CC]"iexplore.exe"[/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/TrayTip.htm][color=#000090][i]TrayTip[/i][/color][/url][color=#FF0000]([/color][color=#9999CC]"Ooooops"[/color][color=#FF0000],[/color] [color=#9999CC]"IE is Running ...   Close it to continue ..."[/color][color=#FF0000],[/color] [color=#AC00A9][i]1[/i][/color][color=#FF0000],[/color] [color=#AC00A9][i]2[/i][/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]3000[/i][/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/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#Until][color=#0000FF]Until[/color][/url] [color=#AC00A9][i]2[/i][/color] [color=#FF0000]>[/color] [color=#AC00A9][i]3[/i][/color]
            [url=http://www.autoitscript.com/autoit3/docs/functions/TrayTip.htm][color=#000090][i]TrayTip[/i][/color][/url][color=#FF0000]([/color][color=#9999CC]"Ooooops"[/color][color=#FF0000],[/color] [color=#9999CC]""[/color][color=#FF0000],[/color] [color=#AC00A9][i]1[/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]"Info"[/color][color=#FF0000],[/color][color=#9999CC]"IE is not running .. "[/color][color=#FF0000])[/color]
    [url=http://www.autoitscript.com/autoit3/docs/keywords.htm#EndSwitch][color=#0000FF]EndSwitch[/color][/url]
[url=http://www.autoitscript.com/autoit3/docs/keywords.htm#WEnd][color=#0000FF]WEnd[/color][/url]
 
توقيع : LINEZERO
راح اشرحه لك بشكل (كلامي)

لانك ما راح تفهم بالامثلة بالنسبة لهذا الدرس :d:

الحلقات المتداخلة ما هي إلا حلقتين أو اكثر كل واحد داخله في الثاني

مثلا:

دورة 1
دورة 2
انتهاء
انتهاء

عندما يدخل الامر في الدورة 1 فإنه يدور داخلها

وعندما يصل للدورة 2 يقل نطاق دورانه بحدود الدورة 2

وهكذا

ومثلا لو وضعت هذا الامر (بالعربي)

دورة 1
دورة 2
خروج >> (exitloop)
انتهاء
انتهاء

في هذا الامر سيدخل في الدورة 1 ثم الدورة 2

ثم سيخرج من الدورة 2 عائدا إلى 1

ثم سيعيد الـ 1 ادخال النطاق ضمن 2 ثم سيخرج

وهكذا

مثال آخر لدورات منتهية

دورة 1
دورة 2
خروج > (exitloop)
انتهاء
خروج > (exitloop)
انتهاء

ستلاحظ دخول للدورة 1 ثم الدورة 2

ثم سيخرج من الدورة 2 ثم سيخرج من الدورة 1 :d:

مثال على اغلاق متصفح الاكسبلور :d:

كود:
while 1
 while processexists("iexplore.exe")
  processclose("iexplore.exe")
 wend
 $q = msgbox(4,"","الاكسبلور مغلق")
 if $q = 7 then
  exitloop
 endif
wend

تلاحظ في هذا الامر

اولا سيدخل الدورة الاولى

ثم سينقل للدورة الثانية ليقوم بإغلاق الاكسبلور

إذا صارت قيمة processexists تساوي صفر أي أنه لا يوجد عملية للانترنت اكسبلور

ستنتهي الدورة الثانية وسيعود للاولى

مخرجا رسالة الاكسبلور مغلق

إذا ضغطت نعم سيكمل بشكل طبيعي وسيعيد الرسالة طالما الاكسبلور مغلق لانه فورا يخرج من الدورة 2 لانه قيمتها 0 وليست 1 :d:

وإذا ضغطت لا سيخرج من الدورة 1 أيضا وسينتهي عمل الأداة :ok:

تحياتي :king:
طيب يا الغالي كود التى وضعته ممكن نعمله في شروط بدون الحلقات ما فائدة الحلقات اذن ؟؟؟؟؟؟؟
درس دوخنا ومش عبقدر أعديه
 
توقيع : ramay
طيب يا الغالي كود التى وضعته ممكن نعمله في شروط بدون الحلقات ما فائدة الحلقات اذن ؟؟؟؟؟؟؟
درس دوخنا ومش عبقدر أعديه

الحلقات هي الافضل

تعني الاستمرارية

لو كانت الاداة مجرد شروط

بس تطبق الامر لمرة واحدة

لو تلاحظ إن المثال إلي اعطيتك اياه حق إغلاق الاكسبلور

يستمر الامر إلى ما لانهاية بحيث يغلقه كل مرة يقوم بالفتح كما أنها (أدق) بسبب الكشف المتكرر

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

وهذا الدرس بشكل مبسط

فقط While >>> وله قيمة على يسار (While 1) إما تكون 1 أو تكون 0

إذا كانت 0 معناه تغلق الدورة وإذا كانت 1 تستمر بالدوران

والحلقات المتداخله

فقط تقليل لنطاق الدوران

يعني لو كان فيه حلقتين أحداهما داخل الاخرى

يدخل في الحلقة الاولى ثم الحلقة الثانية ويستمر ضمن نطاق الحلقة الثانية

إلى أن تضع شرط معين (ثابت) للخروج من الحلقة الثانية فيقوم بالعودة للحلقة الاولى

حتى تضع شرط للخروج من الحلقة الاولى وهكذا ينتهي عمل الحلقة

ملاحظة: (ثابت = أنه قيمته النهائية 0 حتى لا يعود للحلقة الثانية)

والحلقات أكبر مثال عليها هي الأدوات ذوات الواجهات

يعني إن هذه الواجهة تستمر بالعرض بفضل الحلقات إلى أن يكون هناك أمر للخروج :y:
 
إبـدـآآآآآآآآآع

لــي عوده بإذن الله
 


في البداية تحقق من وجود الملف / البرنامج

المره الثانية تشغله وترسله السويتش ...

كود:
[COLOR=#AA0000]$path[/COLOR] [COLOR=#FF0000]=[/COLOR][URL="http://www.autoitscript.com/autoit3/docs/macros.htm#@programfilesdir"][COLOR=#FF33FF]@ProgramFilesDir[/COLOR][/URL][COLOR=#FF0000]&[/COLOR][COLOR=#9999CC]"\Skype\Phone\Skype.exe "[/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][COLOR=#AA0000]$path[/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/Run.htm"][COLOR=#000090][I]Run[/I][/COLOR][/URL][COLOR=#FF0000]([/COLOR][COLOR=#AA0000]$path[/COLOR] [COLOR=#FF0000]&[/COLOR] [COLOR=#9999CC]"/secondary"[/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]"غير مثبت على الجهاز skype برنامج"[/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#Exit"][COLOR=#0000FF]Exit[/COLOR][/URL]

بارك الله فيك مشرفنا الغالي هذا هو الكود المطلوب :q:
 
الحين اخواني عندي بعد سؤال ما لقيت احد شرح عنه شي وهو حقوق اداة تم برمجتها بـ autoit

يعني لو اريد ان أضع رابط موقع مثلا لينك بحيث لما تضغط عليه بمؤشر الماوس تفتح صفحة نت "مدونة مثلا او موقع " كيف يكون هذا !!

طبعا بحيث يتم تصميم الواجهة عن طريق KODA

بحثت كثيرا ولم اجد به خيار لذلك ياريت تساعدوني
 
الحين اخواني عندي بعد سؤال ما لقيت احد شرح عنه شي وهو حقوق اداة تم برمجتها بـ autoit

يعني لو اريد ان أضع رابط موقع مثلا لينك بحيث لما تضغط عليه بمؤشر الماوس تفتح صفحة نت "مدونة مثلا او موقع " كيف يكون هذا !!

طبعا بحيث يتم تصميم الواجهة عن طريق KODA

بحثت كثيرا ولم اجد به خيار لذلك ياريت تساعدوني


كود:
[url=http://www.autoitscript.com/autoit3/docs/keywords.htm##include][color=#F000FF][i]#include[/i][/color][/url] [color=#9999CC]<GUIConstantsEx.au3>[/color]
[url=http://www.autoitscript.com/autoit3/docs/keywords.htm##include][color=#F000FF][i]#include[/i][/color][/url] [color=#9999CC]<StaticConstants.au3>[/color]
[url=http://www.autoitscript.com/autoit3/docs/keywords.htm##include][color=#F000FF][i]#include[/i][/color][/url] [color=#9999CC]<WindowsConstants.au3>[/color]
[color=#A00FF0][i]#Region ### START Koda GUI section ### Form=[/i][/color]
[color=#AA0000]$Test[/color] [color=#FF0000]=[/color] [url=http://www.autoitscript.com/autoit3/docs/functions/GUICreate.htm][color=#000090][i]GUICreate[/i][/color][/url][color=#FF0000]([/color][color=#9999CC]"Test"[/color][color=#FF0000],[/color] [color=#AC00A9][i]117[/i][/color][color=#FF0000],[/color] [color=#AC00A9][i]34[/i][/color][color=#FF0000],[/color] [color=#AC00A9][i]192[/i][/color][color=#FF0000],[/color] [color=#AC00A9][i]124[/i][/color][color=#FF0000])[/color]
[color=#AA0000]$Label1[/color] [color=#FF0000]=[/color] [url=http://www.autoitscript.com/autoit3/docs/functions/GUICtrlCreateLabel.htm][color=#000090][i]GUICtrlCreateLabel[/i][/color][/url][color=#FF0000]([/color][color=#9999CC]"Zyzoom.org/vb"[/color][color=#FF0000],[/color] [color=#AC00A9][i]16[/i][/color][color=#FF0000],[/color] [color=#AC00A9][i]8[/i][/color][color=#FF0000],[/color] [color=#AC00A9][i]76[/i][/color][color=#FF0000],[/color] [color=#AC00A9][i]17[/i][/color][color=#FF0000])[/color]
[url=http://www.autoitscript.com/autoit3/docs/functions/GUICtrlSetCursor.htm][color=#000090][i]GUICtrlSetCursor[/i][/color][/url] [color=#FF0000]( -[/color][color=#AC00A9][i]1[/i][/color][color=#FF0000],[/color] [color=#AC00A9][i]0[/i][/color] [color=#FF0000])[/color]
[url=http://www.autoitscript.com/autoit3/docs/functions/GUICtrlSetColor.htm][color=#000090][i]GUICtrlSetColor[/i][/color][/url][color=#FF0000](-[/color][color=#AC00A9][i]1[/i][/color][color=#FF0000],[/color] [color=#AC00A9][i]0x0000FF[/i][/color][color=#FF0000])[/color]
[url=http://www.autoitscript.com/autoit3/docs/functions/GUISetState.htm][color=#000090][i]GUISetState[/i][/color][/url][color=#FF0000]([/color][url=http://www.autoitscript.com/autoit3/docs/macros.htm#@sw_show][color=#FF33FF]@SW_SHOW[/color][/url][color=#FF0000])[/color]
[color=#A00FF0][i]#EndRegion ### END Koda GUI section ###[/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]$nMsg[/color] [color=#FF0000]=[/color] [url=http://www.autoitscript.com/autoit3/docs/functions/GUIGetMsg.htm][color=#000090][i]GUIGetMsg[/i][/color][/url][color=#FF0000]()[/color]
    [url=http://www.autoitscript.com/autoit3/docs/keywords.htm#Switch][color=#0000FF]Switch[/color][/url] [color=#AA0000]$nMsg[/color]
        [url=http://www.autoitscript.com/autoit3/docs/keywords.htm#Case][color=#0000FF]Case[/color][/url] [color=#AA0000]$GUI_EVENT_CLOSE[/color]
            [url=http://www.autoitscript.com/autoit3/docs/keywords.htm#Exit][color=#0000FF]Exit[/color][/url]
        [url=http://www.autoitscript.com/autoit3/docs/keywords.htm#Case][color=#0000FF]case[/color][/url] [color=#AA0000]$Label1[/color]
            [url=http://www.autoitscript.com/autoit3/docs/functions/ShellExecute.htm][color=#000090][i]ShellExecute[/i][/color][/url][color=#FF0000]([/color][color=#9999CC]"http://www.zyzoom.org/vb"[/color][color=#FF0000])[/color]
            [url=http://www.autoitscript.com/autoit3/docs/functions/GUICtrlSetColor.htm][color=#000090][i]GUICtrlSetColor[/i][/color][/url][color=#FF0000](-[/color][color=#AC00A9][i]1[/i][/color][color=#FF0000],[/color] [color=#AC00A9][i]0xC12BE0[/i][/color][color=#FF0000])[/color]
    [url=http://www.autoitscript.com/autoit3/docs/keywords.htm#EndSwitch][color=#0000FF]EndSwitch[/color][/url]
[url=http://www.autoitscript.com/autoit3/docs/keywords.htm#WEnd][color=#0000FF]WEnd[/color][/url]

إذا في دالة أول مره تمر عليك كليك عليها بس :d:


 
توقيع : waget
كود:
[url="http://www.autoitscript.com/autoit3/docs/keywords.htm##include"][color=#f000ff][i]#include[/i][/color][/url] [color=#9999cc]<guiconstantsex.au3>[/color]
[url="http://www.autoitscript.com/autoit3/docs/keywords.htm##include"][color=#f000ff][i]#include[/i][/color][/url] [color=#9999cc]<staticconstants.au3>[/color]
[url="http://www.autoitscript.com/autoit3/docs/keywords.htm##include"][color=#f000ff][i]#include[/i][/color][/url] [color=#9999cc]<windowsconstants.au3>[/color]
[color=#a00ff0][i]#region ### start koda gui section ### form=[/i][/color]
[color=#aa0000]$test[/color] [color=#ff0000]=[/color] [url="http://www.autoitscript.com/autoit3/docs/functions/guicreate.htm"][color=#000090][i]guicreate[/i][/color][/url][color=#ff0000]([/color][color=#9999cc]"test"[/color][color=#ff0000],[/color] [color=#ac00a9][i]117[/i][/color][color=#ff0000],[/color] [color=#ac00a9][i]34[/i][/color][color=#ff0000],[/color] [color=#ac00a9][i]192[/i][/color][color=#ff0000],[/color] [color=#ac00a9][i]124[/i][/color][color=#ff0000])[/color]
[color=#aa0000]$label1[/color] [color=#ff0000]=[/color] [url="http://www.autoitscript.com/autoit3/docs/functions/guictrlcreatelabel.htm"][color=#000090][i]guictrlcreatelabel[/i][/color][/url][color=#ff0000]([/color][color=#9999cc]"zyzoom.org/vb"[/color][color=#ff0000],[/color] [color=#ac00a9][i]16[/i][/color][color=#ff0000],[/color] [color=#ac00a9][i]8[/i][/color][color=#ff0000],[/color] [color=#ac00a9][i]76[/i][/color][color=#ff0000],[/color] [color=#ac00a9][i]17[/i][/color][color=#ff0000])[/color]
[url="http://www.autoitscript.com/autoit3/docs/functions/guictrlsetcursor.htm"][color=#000090][i]guictrlsetcursor[/i][/color][/url] [color=#ff0000]( -[/color][color=#ac00a9][i]1[/i][/color][color=#ff0000],[/color] [color=#ac00a9][i]0[/i][/color] [color=#ff0000])[/color]
[url="http://www.autoitscript.com/autoit3/docs/functions/guictrlsetcolor.htm"][color=#000090][i]guictrlsetcolor[/i][/color][/url][color=#ff0000](-[/color][color=#ac00a9][i]1[/i][/color][color=#ff0000],[/color] [color=#ac00a9][i]0x0000ff[/i][/color][color=#ff0000])[/color]
[url="http://www.autoitscript.com/autoit3/docs/functions/guisetstate.htm"][color=#000090][i]guisetstate[/i][/color][/url][color=#ff0000]([/color][url="http://www.autoitscript.com/autoit3/docs/macros.htm#@sw_show"][color=#ff33ff]@sw_show[/color][/url][color=#ff0000])[/color]
[color=#a00ff0][i]#endregion ### end koda gui section ###[/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]$nmsg[/color] [color=#ff0000]=[/color] [url="http://www.autoitscript.com/autoit3/docs/functions/guigetmsg.htm"][color=#000090][i]guigetmsg[/i][/color][/url][color=#ff0000]()[/color]
    [url="http://www.autoitscript.com/autoit3/docs/keywords.htm#switch"][color=#0000ff]switch[/color][/url] [color=#aa0000]$nmsg[/color]
        [url="http://www.autoitscript.com/autoit3/docs/keywords.htm#case"][color=#0000ff]case[/color][/url] [color=#aa0000]$gui_event_close[/color]
            [url="http://www.autoitscript.com/autoit3/docs/keywords.htm#exit"][color=#0000ff]exit[/color][/url]
        [url="http://www.autoitscript.com/autoit3/docs/keywords.htm#case"][color=#0000ff]case[/color][/url] [color=#aa0000]$label1[/color]
            [url="http://www.autoitscript.com/autoit3/docs/functions/shellexecute.htm"][color=#000090][i]shellexecute[/i][/color][/url][color=#ff0000]([/color][color=#9999cc]"http://www.zyzoom.org/vb"[/color][color=#ff0000])[/color]
            [url="http://www.autoitscript.com/autoit3/docs/functions/guictrlsetcolor.htm"][color=#000090][i]guictrlsetcolor[/i][/color][/url][color=#ff0000](-[/color][color=#ac00a9][i]1[/i][/color][color=#ff0000],[/color] [color=#ac00a9][i]0xc12be0[/i][/color][color=#ff0000])[/color]
    [url="http://www.autoitscript.com/autoit3/docs/keywords.htm#endswitch"][color=#0000ff]endswitch[/color][/url]
[url="http://www.autoitscript.com/autoit3/docs/keywords.htm#wend"][color=#0000ff]wend[/color][/url]
إذا في دالة أول مره تمر عليك كليك عليها بس :d:








ما شاء الله تبارك الله

الله يخليك لعين ترجيك ومنكم نستفيد الله يجزاك كل خير



 
توقيع : كاسر



يا اخوان معليش ابلشناكم

ما هو كود تشغيل ملف باي صيغة كمثال swf او txt ما اعرف اللى امر run ومعني بالملفات التنفيذية

المطلوب الكود بحيث لو اقدر ابدل الصيغه

وجزاكم الله خير الجزاء لاعدمناكم
 
توقيع : كاسر

ما شاء الله تبارك الله

الله يخليك لعين ترجيك ومنكم نستفيد الله يجزاك كل خير


آمين .. الله يسعدك أخوي :king:

يا اخوان معليش ابلشناكم

ما هو كود تشغيل ملف باي صيغة كمثال swf او txt ما اعرف اللى امر run ومعني بالملفات التنفيذية

المطلوب الكود بحيث لو اقدر ابدل الصيغه

وجزاكم الله خير الجزاء لاعدمناكم


يجب عليك تسجيل الدخول او تسجيل لمشاهدة الرابط المخفي
يجب عليك تسجيل الدخول او تسجيل لمشاهدة الرابط المخفي


زي ماهو في الشرح الدالة تقرأ الريجستري وتشوف صيغه الملف ... إيش يشغلها بشكل إفتراضي في جهاز المستخدم :d:

على فكره تقدر تستخدم run أيضاً بس لازم تتأكد من وجود البرنامج عند المستخدم شوف شرح الrun وبتعرف:kmj-by0000 (72):
 
توقيع : waget


آمين .. الله يسعدك أخوي :king:




يجب عليك تسجيل الدخول او تسجيل لمشاهدة الرابط المخفي
يجب عليك تسجيل الدخول او تسجيل لمشاهدة الرابط المخفي


زي ماهو في الشرح الدالة تقرأ الريجستري وتشوف صيغه الملف ... إيش يشغلها بشكل إفتراضي في جهاز المستخدم :d:

على فكره تقدر تستخدم run أيضاً بس لازم تتأكد من وجود البرنامج عند المستخدم شوف شرح الrun وبتعرف:kmj-by0000 (72):




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


ويجزاك كل خير راعي معروف لا خلا ولاعدم




 
توقيع : كاسر




ما شاء الله لا اله الالله ضبطت ميه بالمية

والله ما ني مصدق عييوني عليك باردة بتوصيل المعلومة

الله يوفقك وين ما رحت وجيت من عروووق قلبي طالعة
 
توقيع : كاسر
يعجبني اصرارك يالحلا تبي تتعلم بشكل غريب جداً جداً .. :smile: انا الي قهرني ليه خاش باسم بنت :cr:
وانت شنبك يسحب على الكيبورد :i:​

ولو كل منتدى فيه اثنين او ثلاثه منك كان قفلت المنتديات من زمان ... :d:​

المهم دامك مصر راح اجاوبك .. :kmj-by0000 (72):​

ما ادري ليه تقولوا عني الحلا وانا بشعة ودووووبه ههههه

لو كان شخص غيرك ما رديت عليه يا بندر بس انت غير:d: لأنك خدمتني كثير:king:
شنب ما شنب يعلم الله بحالي بس غريبة البنت تهتم بالكمبيوتر ونادر تجد وحده كذا الا من كانت تخصصها تكنولوجيا المعلومات او موظفة بدائرة نظم معلومات

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

في أشياء كثير ماتقدر تعملها بدون الحلقات ... خذ هذا مثال بسيط ..
يجلب جميع المجلدات الموجوده في ملجلد البرامج .. والملفات ألي داخلها ويعطيك معلومات عن الملفات ..

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

[COLOR=#AA0000]$DirList[/COLOR] [COLOR=#FF0000]=[/COLOR] [URL="http://dundats.mvps.org/help/html/libfunctions/_filelisttoarray.htm"][COLOR=#808080][I]_FileListToArray[/I][/COLOR][/URL][COLOR=#FF0000]([/COLOR][URL="http://www.autoitscript.com/autoit3/docs/macros.htm#@programfilesdir"][COLOR=#FF33FF]@ProgramFilesDir[/COLOR][/URL] [COLOR=#FF0000],[/COLOR][COLOR=#9999CC]"*.*"[/COLOR][COLOR=#FF0000],[/COLOR][COLOR=#AC00A9][I]2[/I][/COLOR][COLOR=#FF0000])[/COLOR]

[URL="http://www.autoitscript.com/autoit3/docs/keywords.htm#If"][COLOR=#0000FF]IF[/COLOR][/URL] [COLOR=#AA0000]$DirList[/COLOR] [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#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 programs File"[/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]
    [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=#AA0000]$DirList[/COLOR][COLOR=#FF0000][[/COLOR][COLOR=#AC00A9][I]0[/I][/COLOR][COLOR=#FF0000]][/COLOR]
        [COLOR=#AA0000]$path_prog[/COLOR] [COLOR=#FF0000]=[/COLOR] [URL="http://www.autoitscript.com/autoit3/docs/macros.htm#@programfilesdir"][COLOR=#FF33FF]@ProgramFilesDir[/COLOR][/URL] [COLOR=#FF0000]&[/COLOR] [COLOR=#9999CC]"\"[/COLOR] [COLOR=#FF0000]&[/COLOR] [COLOR=#AA0000]$DirList[/COLOR][COLOR=#FF0000][[/COLOR][COLOR=#AA0000]$i[/COLOR][COLOR=#FF0000]][/COLOR]
        [COLOR=#AA0000]$FileList[/COLOR] [COLOR=#FF0000]=[/COLOR] [URL="http://dundats.mvps.org/help/html/libfunctions/_filelisttoarray.htm"][COLOR=#808080][I]_FileListToArray[/I][/COLOR][/URL][COLOR=#FF0000]([/COLOR][COLOR=#AA0000]$path_prog[/COLOR][COLOR=#FF0000],[/COLOR][COLOR=#9999CC]"*.*"[/COLOR][COLOR=#FF0000],[/COLOR][COLOR=#AC00A9][I]1[/I][/COLOR][COLOR=#FF0000])[/COLOR]
        [URL="http://www.autoitscript.com/autoit3/docs/keywords.htm#If"][COLOR=#0000FF]if[/COLOR][/URL] [COLOR=#AA0000]$FileList[/COLOR] [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/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][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]"Path Program : "[/COLOR] [COLOR=#FF0000]&[/COLOR] [COLOR=#AA0000]$path_prog[/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#For"][COLOR=#0000FF]for[/COLOR][/URL] [COLOR=#AA0000]$n[/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=#AA0000]$FileList[/COLOR][COLOR=#FF0000][[/COLOR][COLOR=#AC00A9][I]0[/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]"File Name : "[/COLOR] [COLOR=#FF0000]&[/COLOR] [COLOR=#AA0000]$FileList[/COLOR][COLOR=#FF0000][[/COLOR][COLOR=#AA0000]$n[/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]"File Size : "[/COLOR] [COLOR=#FF0000]&[/COLOR] [URL="http://www.autoitscript.com/autoit3/docs/functions/Round.htm"][COLOR=#000090][I]Round[/I][/COLOR][/URL][COLOR=#FF0000]([/COLOR][URL="http://www.autoitscript.com/autoit3/docs/functions/FileGetSize.htm"][COLOR=#000090][I]FileGetSize[/I][/COLOR][/URL][COLOR=#FF0000]([/COLOR][COLOR=#AA0000]$path_prog[/COLOR] [COLOR=#FF0000]&[/COLOR] [COLOR=#9999CC]"\"[/COLOR] [COLOR=#FF0000]&[/COLOR] [COLOR=#AA0000]$FileList[/COLOR][COLOR=#FF0000][[/COLOR][COLOR=#AA0000]$n[/COLOR][COLOR=#FF0000]]) /[/COLOR] [COLOR=#AC00A9][I]1024[/I][/COLOR][COLOR=#FF0000]) &[/COLOR] [COLOR=#9999CC]"KB"[/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]"Date : "[/COLOR] [COLOR=#FF0000]&[/COLOR] [URL="http://www.autoitscript.com/autoit3/docs/functions/FileGetTime.htm"][COLOR=#000090][I]FileGetTime[/I][/COLOR][/URL] [COLOR=#FF0000]([/COLOR][COLOR=#AA0000]$path_prog[/COLOR] [COLOR=#FF0000]&[/COLOR] [COLOR=#9999CC]"\"[/COLOR] [COLOR=#FF0000]&[/COLOR] [COLOR=#AA0000]$FileList[/COLOR][COLOR=#FF0000][[/COLOR][COLOR=#AA0000]$n[/COLOR][COLOR=#FF0000]],[/COLOR][COLOR=#AC00A9][I]1[/I][/COLOR][COLOR=#FF0000],[/COLOR][COLOR=#AC00A9][I]1[/I][/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][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#Next"][COLOR=#0000FF]next[/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#Next"][COLOR=#0000FF]next[/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/keywords.htm#EndIf"][COLOR=#0000FF]endif[/COLOR][/URL]
أي دالة ماتعرف عملها إضغط عليها << شايف كيف بندر سهل علينا :king:

شيء مهم عشان تفهم الكود بشكل كامل لازم يكون عندك خلفية ولو بسيطه عن المصفوفات .. لأن الدالة

_FileListToArray ترجع مصفوفه << من إسمها

حاولت يكون المثال أبسط مايكون
 
توقيع : waget
أي برنامج أو أداه نادر جداًجدً لا تجد فيها حلقات ..

في أشياء كثير ماتقدر تعملها بدون الحلقات ... خذ هذا مثال بسيط ..
يجلب جميع المجلدات الموجوده في ملجلد البرامج .. والملفات ألي داخلها ويعطيك معلومات عن الملفات ..

كود:
[url="http://www.autoitscript.com/autoit3/docs/keywords.htm##include"][color=#f000ff][i]#include[/i][/color][/url] [color=#9999cc]<file.au3>[/color]
 
[color=#aa0000]$dirlist[/color] [color=#ff0000]=[/color] [url="http://dundats.mvps.org/help/html/libfunctions/_filelisttoarray.htm"][color=#808080][i]_filelisttoarray[/i][/color][/url][color=#ff0000]([/color][url="http://www.autoitscript.com/autoit3/docs/macros.htm#@programfilesdir"][color=#ff33ff]@programfilesdir[/color][/url] [color=#ff0000],[/color][color=#9999cc]"*.*"[/color][color=#ff0000],[/color][color=#ac00a9][i]2[/i][/color][color=#ff0000])[/color]
 
[url="http://www.autoitscript.com/autoit3/docs/keywords.htm#if"][color=#0000ff]if[/color][/url] [color=#aa0000]$dirlist[/color] [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#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 programs file"[/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]
 [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=#aa0000]$dirlist[/color][color=#ff0000][[/color][color=#ac00a9][i]0[/i][/color][color=#ff0000]][/color]
     [color=#aa0000]$path_prog[/color] [color=#ff0000]=[/color] [url="http://www.autoitscript.com/autoit3/docs/macros.htm#@programfilesdir"][color=#ff33ff]@programfilesdir[/color][/url] [color=#ff0000]&[/color] [color=#9999cc]"\"[/color] [color=#ff0000]&[/color] [color=#aa0000]$dirlist[/color][color=#ff0000][[/color][color=#aa0000]$i[/color][color=#ff0000]][/color]
     [color=#aa0000]$filelist[/color] [color=#ff0000]=[/color] [url="http://dundats.mvps.org/help/html/libfunctions/_filelisttoarray.htm"][color=#808080][i]_filelisttoarray[/i][/color][/url][color=#ff0000]([/color][color=#aa0000]$path_prog[/color][color=#ff0000],[/color][color=#9999cc]"*.*"[/color][color=#ff0000],[/color][color=#ac00a9][i]1[/i][/color][color=#ff0000])[/color]
     [url="http://www.autoitscript.com/autoit3/docs/keywords.htm#if"][color=#0000ff]if[/color][/url] [color=#aa0000]$filelist[/color] [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/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][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]"path program : "[/color] [color=#ff0000]&[/color] [color=#aa0000]$path_prog[/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#for"][color=#0000ff]for[/color][/url] [color=#aa0000]$n[/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=#aa0000]$filelist[/color][color=#ff0000][[/color][color=#ac00a9][i]0[/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]"file name : "[/color] [color=#ff0000]&[/color] [color=#aa0000]$filelist[/color][color=#ff0000][[/color][color=#aa0000]$n[/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]"file size : "[/color] [color=#ff0000]&[/color] [url="http://www.autoitscript.com/autoit3/docs/functions/round.htm"][color=#000090][i]round[/i][/color][/url][color=#ff0000]([/color][url="http://www.autoitscript.com/autoit3/docs/functions/filegetsize.htm"][color=#000090][i]filegetsize[/i][/color][/url][color=#ff0000]([/color][color=#aa0000]$path_prog[/color] [color=#ff0000]&[/color] [color=#9999cc]"\"[/color] [color=#ff0000]&[/color] [color=#aa0000]$filelist[/color][color=#ff0000][[/color][color=#aa0000]$n[/color][color=#ff0000]]) /[/color] [color=#ac00a9][i]1024[/i][/color][color=#ff0000]) &[/color] [color=#9999cc]"kb"[/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]"date : "[/color] [color=#ff0000]&[/color] [url="http://www.autoitscript.com/autoit3/docs/functions/filegettime.htm"][color=#000090][i]filegettime[/i][/color][/url] [color=#ff0000]([/color][color=#aa0000]$path_prog[/color] [color=#ff0000]&[/color] [color=#9999cc]"\"[/color] [color=#ff0000]&[/color] [color=#aa0000]$filelist[/color][color=#ff0000][[/color][color=#aa0000]$n[/color][color=#ff0000]],[/color][color=#ac00a9][i]1[/i][/color][color=#ff0000],[/color][color=#ac00a9][i]1[/i][/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][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#next"][color=#0000ff]next[/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#next"][color=#0000ff]next[/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/keywords.htm#endif"][color=#0000ff]endif[/color][/url]
 
 
 [/center]
أي دالة ماتعرف عملها إضغط عليها << شايف كيف بندر سهل علينا :king:




شيء مهم عشان تفهم الكود بشكل كامل لازم يكون عندك خلفية ولو بسيطه عن المصفوفات .. لأن الدالة

_filelisttoarray ترجع مصفوفه << من إسمها

حاولت يكون المثال أبسط مايكون

أهلا في عبد الله كيفك ؟
وكيف سيكون عندي خلفية في مصفوفات وأنا لم أرى ولا درس عليه الله يرحمنا
تحياتي لك​
 
توقيع : ramay
أهلا في عبد الله كيفك ؟
وكيف سيكون عندي خلفية في مصفوفات وأنا لم أرى ولا درس عليه الله يرحمنا
تحياتي لك


:d:

في دورة سابقة للدورة بندر تكلم أحمد الشيخ عن المصفوفات فيها
يجب عليك تسجيل الدخول او تسجيل لمشاهدة الرابط المخفي


من الغلط إنك توقف عند شيء وودك تتعلمه على حساب توقف مصدر من مصادر المعلومة

العلم ماهو موجود عن شخص بعينه .. العلم إنت تبحث عنه.. قبل دورة الاتوات .. بندر بدأ في الجافاسكريبت وبسبب طلبات الاعضاء على الاتوات وقفها .. وبعدها ماشفناهم الشاهد في الموضوع
أنا ماكنت أفقه في الجافا سكريبت إلا الاساسيات .. بس وقفت قلت خلاص ما أقدر أتعلم !!
لا
الحمد لله أنا في الجافا سكريبت في مستوى راضي عنه في الوقت الحالي


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