.: Mr.Ali :.
زيزوومى محترف
غير متصل
قم بمتابعة الفيديو أدناه لمعرفة كيفية تثبيت موقعنا كتطبيق ويب على الشاشة الرئيسية.
ملاحظة: قد لا تكون هذه الميزة متاحة في بعض المتصفحات.
اخوني لماذ هاذي الدالة تشتغل الى اذ كنت فوق الحلقة While
كود:[/FONT][FONT=Tahoma][COLOR=Red] #EndRegion ### END Koda GUI section ###[/COLOR][/FONT][FONT=Tahoma] if @OSVersion = "WIN_XP" Then[/FONT] [FONT=Tahoma] msgbox(0,"XP","نظامك غير مدعوم") EndIf Exit [/FONT] [FONT=Tahoma][COLOR=Blue]While 1[/COLOR][/FONT][FONT=Tahoma]
[COLOR=RoyalBlue]
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 274, 114, 261, 181)
$Button1 = GUICtrlCreateButton("Next", 96, 48, 75, 25)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###[/COLOR] [COLOR=RoyalBlue]
While 1[/COLOR] [COLOR=RoyalBlue]
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
[/COLOR] [COLOR=RoyalBlue] Case $Button1
; عند الضغط على الزر نكست في الفورم الأول يبدأ في إظهار الفورم الثاني
$Form2 = GUICreate("Form2", 274, 114, 261, 181)
$Button1 = GUICtrlCreateButton("Previous", 96, 48, 75, 25)
GUISetState(@SW_SHOW)
GUISetState(@SW_HIDE,$Form1);; إخفاء الفورم الأول
[/COLOR] [COLOR=RoyalBlue] While 1
$nMsg = GUIGetMsg()
switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
; هنا أوامر الزر في الفورم الثاني
gUISetState(@SW_SHOW,$Form1);; إظهار الفورم الاول
gUISetState(@SW_HIDE,$Form2);; إخفاء الفورم الثاني
;; سيتم تنفيذ الأمر بدون مشاكل,, ويرجع إلى الفورم الأول,, لكن الفورم الأول لم يعمل!!
EndSwitch
WEnd
[/COLOR] [COLOR=RoyalBlue] EndSwitch
WEnd
[/COLOR]
السلام عليكم..
بديت أتخلى عن الفيجوال بيسك 6 << قدييييم:d::d:
لدي استفسار حول الفورم,,
أنا عندي Form1 و Form 2 ..
الـ Form 1 فيه زر يقوم بأظهار الفورم الثاني وإخفاء الفورم الأول بأستخدام دالة guisetstate()
و الفورم الثاني فيه بوتون يقوم بإظهار الفورم الأول و إخفاء الفورم الثاني بنفس الدالة ( عكس وظيفة الزر الأول )..
وكل شيء تمام وتنفذ الكود بشكل صحيح,,
لكن المشكلة إذا تم تنفيذ الأمر في الفورم الثاني ( البوتون الذي يقوم بأظهار الفورم الأول ) [ إذا ظهر الفورم 1 لا يتم تنفيذ الأوامر التي بدخله, ويتطلب مني كتابتها من جديد,, وهذا غير معقول أصلاً !!
أنظروا لهذا الكود:
حاول تجربة الكود, سترى بعد الضغط على الزر Next سيختفي الفورم الأول وسيظهر الفورم الثاني,,كود:[COLOR=RoyalBlue] #include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Form1", 274, 114, 261, 181) $Button1 = GUICtrlCreateButton("Next", 96, 48, 75, 25) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ###[/COLOR] [COLOR=RoyalBlue] While 1[/COLOR] [COLOR=RoyalBlue] $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit [/COLOR] [COLOR=RoyalBlue] Case $Button1 ; عند الضغط على الزر نكست في الفورم الأول يبدأ في إظهار الفورم الثاني $Form2 = GUICreate("Form2", 274, 114, 261, 181) $Button1 = GUICtrlCreateButton("Previous", 96, 48, 75, 25) GUISetState(@SW_SHOW) GUISetState(@SW_HIDE,$Form1);; إخفاء الفورم الأول [/COLOR] [COLOR=RoyalBlue] While 1 $nMsg = GUIGetMsg() switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Button1 ; هنا أوامر الزر في الفورم الثاني gUISetState(@SW_SHOW,$Form1);; إظهار الفورم الاول gUISetState(@SW_HIDE,$Form2);; إخفاء الفورم الثاني ;; سيتم تنفيذ الأمر بدون مشاكل,, ويرجع إلى الفورم الأول,, لكن الفورم الأول لم يعمل!! EndSwitch WEnd [/COLOR] [COLOR=RoyalBlue] EndSwitch WEnd [/COLOR]
وفي الفورم الثاني عند الضغط على زر Previous سيختفي الفورم الثاني وسيظهر الفورم الأول,, لكن إذا ضغطت على next لا يعمل !!!!!
والمقصود هل هناك دالة تقوم بالعودة إلى الفورم الأول مع عمله بشكل صحيح؟؟
[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=#A00FF0][I]#Region ### START Koda GUI section ### Form=[/I][/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]"Form1"[/COLOR][COLOR=#FF0000],[/COLOR] [COLOR=#AC00A9][I]274[/I][/COLOR][COLOR=#FF0000],[/COLOR] [COLOR=#AC00A9][I]114[/I][/COLOR][COLOR=#FF0000],[/COLOR] [COLOR=#AC00A9][I]261[/I][/COLOR][COLOR=#FF0000],[/COLOR] [COLOR=#AC00A9][I]181[/I][/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]"Next"[/COLOR][COLOR=#FF0000],[/COLOR] [COLOR=#AC00A9][I]96[/I][/COLOR][COLOR=#FF0000],[/COLOR] [COLOR=#AC00A9][I]48[/I][/COLOR][COLOR=#FF0000],[/COLOR] [COLOR=#AC00A9][I]75[/I][/COLOR][COLOR=#FF0000],[/COLOR] [COLOR=#AC00A9][I]25[/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]$Button1[/COLOR]
[COLOR=#009933][I]; عند الضغط على الزر نكست في الفورم الأول يبدأ في إظهار الفورم الثاني[/I][/COLOR]
[COLOR=#AA0000]$Form2[/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]"Form2"[/COLOR][COLOR=#FF0000],[/COLOR] [COLOR=#AC00A9][I]274[/I][/COLOR][COLOR=#FF0000],[/COLOR] [COLOR=#AC00A9][I]114[/I][/COLOR][COLOR=#FF0000],[/COLOR] [COLOR=#AC00A9][I]261[/I][/COLOR][COLOR=#FF0000],[/COLOR] [COLOR=#AC00A9][I]181[/I][/COLOR][COLOR=#FF0000])[/COLOR]
[COLOR=#AA0000]$Button2[/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]"Previous"[/COLOR][COLOR=#FF0000],[/COLOR] [COLOR=#AC00A9][I]96[/I][/COLOR][COLOR=#FF0000],[/COLOR] [COLOR=#AC00A9][I]48[/I][/COLOR][COLOR=#FF0000],[/COLOR] [COLOR=#AC00A9][I]75[/I][/COLOR][COLOR=#FF0000],[/COLOR] [COLOR=#AC00A9][I]25[/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/functions/GUISetState.htm"][COLOR=#000090][I]GUISetState[/I][/COLOR][/URL][COLOR=#FF0000]([/COLOR][URL="http://www.autoitscript.com/autoit3/docs/macros.htm#@sw_hide"][COLOR=#FF33FF]@SW_HIDE[/COLOR][/URL][COLOR=#FF0000],[/COLOR][COLOR=#AA0000]$Form1[/COLOR][COLOR=#FF0000])[/COLOR][COLOR=#009933][I];; إخفاء الفورم الأول[/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#ExitLoop"][COLOR=#0000FF]ExitLoop[/COLOR][/URL] [COLOR=#AC00A9][I]1[/I][/COLOR]
[URL="http://www.autoitscript.com/autoit3/docs/keywords.htm#Case"][COLOR=#0000FF]Case[/COLOR][/URL] [COLOR=#AA0000]$Button2[/COLOR]
[COLOR=#009933][I]; هنا أوامر الزر في الفورم الثاني[/I][/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=#AA0000]$Form1[/COLOR][COLOR=#FF0000])[/COLOR][COLOR=#009933][I];; إظهار الفورم الاول[/I][/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_hide"][COLOR=#FF33FF]@SW_HIDE[/COLOR][/URL][COLOR=#FF0000],[/COLOR][COLOR=#AA0000]$Form2[/COLOR][COLOR=#FF0000])[/COLOR][COLOR=#009933][I];; إخفاء الفورم الثاني[/I][/COLOR]
[URL="http://www.autoitscript.com/autoit3/docs/keywords.htm#ExitLoop"][COLOR=#0000FF]ExitLoop[/COLOR][/URL] [COLOR=#AC00A9][I]1[/I][/COLOR]
[COLOR=#009933][I];; سيتم تنفيذ الأمر بدون مشاكل,, ويرجع إلى الفورم الأول,, لكن الفورم الأول لم يعمل!![/I][/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]
[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]
[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=#A00FF0][I]#Region ### START Koda GUI section ### Form=[/I][/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]"Form1"[/COLOR][COLOR=#FF0000],[/COLOR] [COLOR=#AC00A9][I]274[/I][/COLOR][COLOR=#FF0000],[/COLOR] [COLOR=#AC00A9][I]114[/I][/COLOR][COLOR=#FF0000],[/COLOR] [COLOR=#AC00A9][I]261[/I][/COLOR][COLOR=#FF0000],[/COLOR] [COLOR=#AC00A9][I]181[/I][/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]"Next"[/COLOR][COLOR=#FF0000],[/COLOR] [COLOR=#AC00A9][I]96[/I][/COLOR][COLOR=#FF0000],[/COLOR] [COLOR=#AC00A9][I]48[/I][/COLOR][COLOR=#FF0000],[/COLOR] [COLOR=#AC00A9][I]75[/I][/COLOR][COLOR=#FF0000],[/COLOR] [COLOR=#AC00A9][I]25[/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]$Button1[/COLOR]
[COLOR=#000000]form2[/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]
[URL="http://www.autoitscript.com/autoit3/docs/keywords.htm#Func"][COLOR=#0000FF]func[/COLOR][/URL] [COLOR=#000000]form2[/COLOR][COLOR=#FF0000]()[/COLOR]
[COLOR=#AA0000]$Form2[/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]"Form2"[/COLOR][COLOR=#FF0000],[/COLOR] [COLOR=#AC00A9][I]274[/I][/COLOR][COLOR=#FF0000],[/COLOR] [COLOR=#AC00A9][I]114[/I][/COLOR][COLOR=#FF0000],[/COLOR] [COLOR=#AC00A9][I]261[/I][/COLOR][COLOR=#FF0000],[/COLOR] [COLOR=#AC00A9][I]181[/I][/COLOR][COLOR=#FF0000])[/COLOR]
[COLOR=#AA0000]$Button2[/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]"Previous"[/COLOR][COLOR=#FF0000],[/COLOR] [COLOR=#AC00A9][I]96[/I][/COLOR][COLOR=#FF0000],[/COLOR] [COLOR=#AC00A9][I]48[/I][/COLOR][COLOR=#FF0000],[/COLOR] [COLOR=#AC00A9][I]75[/I][/COLOR][COLOR=#FF0000],[/COLOR] [COLOR=#AC00A9][I]25[/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/functions/GUISetState.htm"][COLOR=#000090][I]GUISetState[/I][/COLOR][/URL][COLOR=#FF0000]([/COLOR][URL="http://www.autoitscript.com/autoit3/docs/macros.htm#@sw_hide"][COLOR=#FF33FF]@SW_HIDE[/COLOR][/URL][COLOR=#FF0000],[/COLOR][COLOR=#AA0000]$Form1[/COLOR][COLOR=#FF0000])[/COLOR][COLOR=#009933][I];; إخفاء الفورم الأول[/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#ExitLoop"][COLOR=#0000FF]ExitLoop[/COLOR][/URL] [COLOR=#AC00A9][I]1[/I][/COLOR]
[URL="http://www.autoitscript.com/autoit3/docs/keywords.htm#Case"][COLOR=#0000FF]Case[/COLOR][/URL] [COLOR=#AA0000]$Button2[/COLOR]
[COLOR=#009933][I]; هنا أوامر الزر في الفورم الثاني[/I][/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=#AA0000]$Form1[/COLOR][COLOR=#FF0000])[/COLOR][COLOR=#009933][I];; إظهار الفورم الاول[/I][/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_hide"][COLOR=#FF33FF]@SW_HIDE[/COLOR][/URL][COLOR=#FF0000],[/COLOR][COLOR=#AA0000]$Form2[/COLOR][COLOR=#FF0000])[/COLOR][COLOR=#009933][I];; إخفاء الفورم الثاني[/I][/COLOR]
[URL="http://www.autoitscript.com/autoit3/docs/keywords.htm#ExitLoop"][COLOR=#0000FF]ExitLoop[/COLOR][/URL] [COLOR=#AC00A9][I]1[/I][/COLOR]
[COLOR=#009933][I];; سيتم تنفيذ الأمر بدون مشاكل,, ويرجع إلى الفورم الأول,, لكن الفورم الأول لم يعمل!![/I][/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]
[URL="http://www.autoitscript.com/autoit3/docs/keywords.htm#EndFunc"][COLOR=#0000FF]EndFunc[/COLOR][/URL]
الكود ناقص لكن مش مهم ...
أول شيء exit مكانها خطأ سواء الشرط تحقق أو لا راح يخرج من البرنامج :d:
ثاني شيء حلقة الwhile اللي كاتبها غير نهائية يعني لو كتبت شيء تحتها ماراح يتنفذ ...
راح يتفذ إذا جبرناها على التوقف من داخلها :d:
أخوي حلو إنك تتعلم بسرعه وحماس ... لكن يوم تسأل عن أمور أجوبتها موجودة مسبقاً كدروس كامله
هذا يعني الدروس وجودها زي عدمها :no: أتمنى منك في الاسئلة الجاية ..
إما سؤال عن موضوع لم يشرح في الدروس
أو أي شيء ماوضح لك في الدروس نفسها ...
وهذي روابط الدروس إذا ماقدرت توصل لها
دورة الاخ بندر
يجب عليك تسجيل الدخول او تسجيل لمشاهدة الرابط المخفي
دورة الاخ أحمد
بداية الدروس الاساسية
يجب عليك تسجيل الدخول او تسجيل لمشاهدة الرابط المخفي
مواضيع متفرقه
يجب عليك تسجيل الدخول او تسجيل لمشاهدة الرابط المخفي
موفق
:d:
من vb6 ل autoit![]()
:hh: لأتأخذ فكرة إني أحب أقارن بين اللغات وكذا بالعكس كل واحد على قولتهم ينام على الجنب اللي يريحه
بس تقريباً كل اللي تقدر تسوية بـ Autoit تقدر تسوية بvb6 شيك على الكتاب المساعد حق الautoit أول صفحة
وشوف مميزاتها ..
عموماُ لو ودك نصيحتي جرب شيء جديد مثلا دلفي ولا إخت vb6 من الرضاعه vb.net << عندي كتاب جيد لها إذا ودك
نرجع لكودك ..
الكود فية خطئين أولا شيء لما أظهرت الفورم الثاني ماخرجت من الحلقة تبعه قعدك عالق فيها وهذا سبب إن الفروم الاول معد يستجيب
الخطأ الثاني الزرين لهم نفس المتغير وهذا مشكلة لأنه حتى لو ضهر الفورم الاول إنت قاعد تشاور على الزر في الفورم الثاني << لحسه مخ :hh:
الكود الصحيح ..
فكرة أفضل تحط الفورم الثاني في دالة وتستدعيه إذا إحتجته <<< لو إنك في مشروع وإتبعت طريقتك راح تتلخبط وقت تصحيح الاخطاء :d:كود:[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=#A00FF0][I]#Region ### START Koda GUI section ### Form=[/I][/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]"Form1"[/COLOR][COLOR=#FF0000],[/COLOR] [COLOR=#AC00A9][I]274[/I][/COLOR][COLOR=#FF0000],[/COLOR] [COLOR=#AC00A9][I]114[/I][/COLOR][COLOR=#FF0000],[/COLOR] [COLOR=#AC00A9][I]261[/I][/COLOR][COLOR=#FF0000],[/COLOR] [COLOR=#AC00A9][I]181[/I][/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]"Next"[/COLOR][COLOR=#FF0000],[/COLOR] [COLOR=#AC00A9][I]96[/I][/COLOR][COLOR=#FF0000],[/COLOR] [COLOR=#AC00A9][I]48[/I][/COLOR][COLOR=#FF0000],[/COLOR] [COLOR=#AC00A9][I]75[/I][/COLOR][COLOR=#FF0000],[/COLOR] [COLOR=#AC00A9][I]25[/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]$Button1[/COLOR] [COLOR=#009933][I]; عند الضغط على الزر نكست في الفورم الأول يبدأ في إظهار الفورم الثاني[/I][/COLOR] [COLOR=#AA0000]$Form2[/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]"Form2"[/COLOR][COLOR=#FF0000],[/COLOR] [COLOR=#AC00A9][I]274[/I][/COLOR][COLOR=#FF0000],[/COLOR] [COLOR=#AC00A9][I]114[/I][/COLOR][COLOR=#FF0000],[/COLOR] [COLOR=#AC00A9][I]261[/I][/COLOR][COLOR=#FF0000],[/COLOR] [COLOR=#AC00A9][I]181[/I][/COLOR][COLOR=#FF0000])[/COLOR] [COLOR=#AA0000]$Button2[/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]"Previous"[/COLOR][COLOR=#FF0000],[/COLOR] [COLOR=#AC00A9][I]96[/I][/COLOR][COLOR=#FF0000],[/COLOR] [COLOR=#AC00A9][I]48[/I][/COLOR][COLOR=#FF0000],[/COLOR] [COLOR=#AC00A9][I]75[/I][/COLOR][COLOR=#FF0000],[/COLOR] [COLOR=#AC00A9][I]25[/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/functions/GUISetState.htm"][COLOR=#000090][I]GUISetState[/I][/COLOR][/URL][COLOR=#FF0000]([/COLOR][URL="http://www.autoitscript.com/autoit3/docs/macros.htm#@sw_hide"][COLOR=#FF33FF]@SW_HIDE[/COLOR][/URL][COLOR=#FF0000],[/COLOR][COLOR=#AA0000]$Form1[/COLOR][COLOR=#FF0000])[/COLOR][COLOR=#009933][I];; إخفاء الفورم الأول[/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#ExitLoop"][COLOR=#0000FF]ExitLoop[/COLOR][/URL] [COLOR=#AC00A9][I]1[/I][/COLOR] [URL="http://www.autoitscript.com/autoit3/docs/keywords.htm#Case"][COLOR=#0000FF]Case[/COLOR][/URL] [COLOR=#AA0000]$Button2[/COLOR] [COLOR=#009933][I]; هنا أوامر الزر في الفورم الثاني[/I][/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=#AA0000]$Form1[/COLOR][COLOR=#FF0000])[/COLOR][COLOR=#009933][I];; إظهار الفورم الاول[/I][/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_hide"][COLOR=#FF33FF]@SW_HIDE[/COLOR][/URL][COLOR=#FF0000],[/COLOR][COLOR=#AA0000]$Form2[/COLOR][COLOR=#FF0000])[/COLOR][COLOR=#009933][I];; إخفاء الفورم الثاني[/I][/COLOR] [URL="http://www.autoitscript.com/autoit3/docs/keywords.htm#ExitLoop"][COLOR=#0000FF]ExitLoop[/COLOR][/URL] [COLOR=#AC00A9][I]1[/I][/COLOR] [COLOR=#009933][I];; سيتم تنفيذ الأمر بدون مشاكل,, ويرجع إلى الفورم الأول,, لكن الفورم الأول لم يعمل!![/I][/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] [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]
أيضاُ لو طال الكود تقدر كذا تحطه الدالة في ملف لحالها وتضمنه في الملف الاول وتستدعيها طبيعيكود:[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=#A00FF0][I]#Region ### START Koda GUI section ### Form=[/I][/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]"Form1"[/COLOR][COLOR=#FF0000],[/COLOR] [COLOR=#AC00A9][I]274[/I][/COLOR][COLOR=#FF0000],[/COLOR] [COLOR=#AC00A9][I]114[/I][/COLOR][COLOR=#FF0000],[/COLOR] [COLOR=#AC00A9][I]261[/I][/COLOR][COLOR=#FF0000],[/COLOR] [COLOR=#AC00A9][I]181[/I][/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]"Next"[/COLOR][COLOR=#FF0000],[/COLOR] [COLOR=#AC00A9][I]96[/I][/COLOR][COLOR=#FF0000],[/COLOR] [COLOR=#AC00A9][I]48[/I][/COLOR][COLOR=#FF0000],[/COLOR] [COLOR=#AC00A9][I]75[/I][/COLOR][COLOR=#FF0000],[/COLOR] [COLOR=#AC00A9][I]25[/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]$Button1[/COLOR] [COLOR=#000000]form2[/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] [URL="http://www.autoitscript.com/autoit3/docs/keywords.htm#Func"][COLOR=#0000FF]func[/COLOR][/URL] [COLOR=#000000]form2[/COLOR][COLOR=#FF0000]()[/COLOR] [COLOR=#AA0000]$Form2[/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]"Form2"[/COLOR][COLOR=#FF0000],[/COLOR] [COLOR=#AC00A9][I]274[/I][/COLOR][COLOR=#FF0000],[/COLOR] [COLOR=#AC00A9][I]114[/I][/COLOR][COLOR=#FF0000],[/COLOR] [COLOR=#AC00A9][I]261[/I][/COLOR][COLOR=#FF0000],[/COLOR] [COLOR=#AC00A9][I]181[/I][/COLOR][COLOR=#FF0000])[/COLOR] [COLOR=#AA0000]$Button2[/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]"Previous"[/COLOR][COLOR=#FF0000],[/COLOR] [COLOR=#AC00A9][I]96[/I][/COLOR][COLOR=#FF0000],[/COLOR] [COLOR=#AC00A9][I]48[/I][/COLOR][COLOR=#FF0000],[/COLOR] [COLOR=#AC00A9][I]75[/I][/COLOR][COLOR=#FF0000],[/COLOR] [COLOR=#AC00A9][I]25[/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/functions/GUISetState.htm"][COLOR=#000090][I]GUISetState[/I][/COLOR][/URL][COLOR=#FF0000]([/COLOR][URL="http://www.autoitscript.com/autoit3/docs/macros.htm#@sw_hide"][COLOR=#FF33FF]@SW_HIDE[/COLOR][/URL][COLOR=#FF0000],[/COLOR][COLOR=#AA0000]$Form1[/COLOR][COLOR=#FF0000])[/COLOR][COLOR=#009933][I];; إخفاء الفورم الأول[/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#ExitLoop"][COLOR=#0000FF]ExitLoop[/COLOR][/URL] [COLOR=#AC00A9][I]1[/I][/COLOR] [URL="http://www.autoitscript.com/autoit3/docs/keywords.htm#Case"][COLOR=#0000FF]Case[/COLOR][/URL] [COLOR=#AA0000]$Button2[/COLOR] [COLOR=#009933][I]; هنا أوامر الزر في الفورم الثاني[/I][/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=#AA0000]$Form1[/COLOR][COLOR=#FF0000])[/COLOR][COLOR=#009933][I];; إظهار الفورم الاول[/I][/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_hide"][COLOR=#FF33FF]@SW_HIDE[/COLOR][/URL][COLOR=#FF0000],[/COLOR][COLOR=#AA0000]$Form2[/COLOR][COLOR=#FF0000])[/COLOR][COLOR=#009933][I];; إخفاء الفورم الثاني[/I][/COLOR] [URL="http://www.autoitscript.com/autoit3/docs/keywords.htm#ExitLoop"][COLOR=#0000FF]ExitLoop[/COLOR][/URL] [COLOR=#AC00A9][I]1[/I][/COLOR] [COLOR=#009933][I];; سيتم تنفيذ الأمر بدون مشاكل,, ويرجع إلى الفورم الأول,, لكن الفورم الأول لم يعمل!![/I][/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] [URL="http://www.autoitscript.com/autoit3/docs/keywords.htm#EndFunc"][COLOR=#0000FF]EndFunc[/COLOR][/URL]
:d:
والله لكم وحشه كل ابوكم
مداخله بسيطه :
من السهوله ان تتعلم كيف تبرمج :bleh: ،،،، ولكن ليس من السهوله ان تفكر كمبرمج :i:
بالتوفيق
والله لكم وحشه كل ابوكم
مداخله بسيطه :
من السهوله ان تتعلم كيف تبرمج :bleh: ،،،، ولكن ليس من السهوله ان تفكر كمبرمج :i:
بالتوفيق
اخوان ممكن شرح لي دالة GUI Ctrl Ip Address
هذه يندرج تحتها عدة دوال ايهم تريد .. ?
اريد اذ تم وضع اي بي في مربع الادخل يحقق شرط
اخي ممكن شرح كيف تجيبون
معلومات لي دوال من الكاتب المساعد
يعني تعرف عمل دالة وكذ هل من شرح للكتاب يوكن شرح كامل
مو مثل الي في فهارس
بالنسبة للكتاب المساعد اي دالة تبغين شرحها اتبعي هذه الطريقة .. شرح مختصر
مثلا نريد شرح Msgbox
![]()
هلا و غلا بالحلااا :d:
والله لو تكتب بنقالي اصيدك :hh:
بالتوفيق