قم بمتابعة الفيديو أدناه لمعرفة كيفية تثبيت موقعنا كتطبيق ويب على الشاشة الرئيسية.
ملاحظة: قد لا تكون هذه الميزة متاحة في بعض المتصفحات.
اخي رامي ..
في قاعدة if الشرطيه يتم تنفيذ الاوامر في حالة تحقق الشرط فقط
واذا كان البرنامج لايعمل في الذاكره فان الشرط غير متحقق .. فسيذهب الى else وام لم تكن موجوده سيخرج من كود if .. وسيكمل الاوامر التي يعد جملة if
لااحظ التالي .. في الكود السابق الشرط هو وجود الملف .. والملف موجود بكل جهااز .. تقريباً :d:
ولااحظ ايضاٌ ان البرنامج اذا لم يعمل بالذاكره فانه سيخرج من الكود كامل .. لوجود امر الخروج Exit
:i:
الله يعينك ياعبدالله .. والموضوع تكليف اكثر من تشريف :i:
![]()
وانت قدها ونص
بالتوفيق يابطل... مع ان عندي حساسيه من الحكوومه :q:
[COLOR=Navy][I]RunWait[/I][/COLOR][COLOR=Red]([/COLOR][COLOR=Magenta]@SystemDir[/COLOR] [COLOR=Red]&[/COLOR] [COLOR=Silver]"\Cmd.exe"[/COLOR][COLOR=Red]) [/COLOR]
[COLOR=YellowGreen];@SystemDir = X:\WINDOWS\system32 [/COLOR]
[I][COLOR=Navy]RunWait[/COLOR][/I][COLOR=Red]([/COLOR][COLOR=Silver]"Cmd.exe"[/COLOR][COLOR=Red])[/COLOR]
[COLOR=Navy][I]RunWait[/I][/COLOR][COLOR=Red]([/COLOR][COLOR=Magenta]@ComSpec[/COLOR][COLOR=Red])[/COLOR]
[COLOR=Silver]Cmd.exe[COLOR=Red] [[/COLOR]/C[COLOR=Red]|[/COLOR]K[COLOR=Red]][/COLOR] command[COLOR=Red]][/COLOR][/COLOR]
[COLOR=Silver][COLOR=Red] [[/COLOR]/C[COLOR=Red]|[/COLOR]K[COLOR=Red]][/COLOR][/COLOR]
[COLOR=Navy][I]RunWait[/I][/COLOR][COLOR=Red]([/COLOR][COLOR=Magenta]@ComSpec[/COLOR] [COLOR=Red]&[/COLOR] [COLOR=Silver]" /K "[/COLOR] [COLOR=Red]&[/COLOR][COLOR=Silver] "echo Welcome"[/COLOR][COLOR=Red])[/COLOR]
[COLOR=Navy][I]RunWait[/I][/COLOR][COLOR=Red]([/COLOR][COLOR=Magenta]@ComSpec[/COLOR] [COLOR=Red]&[/COLOR] [COLOR=Silver]" /C " [/COLOR][COLOR=Red]&[/COLOR][COLOR=Silver] "echo Welcome && Pause"[/COLOR][COLOR=Red])[/COLOR]
[COLOR=Navy][I]RunWait[/I][/COLOR][COLOR=Red]([/COLOR][COLOR=Magenta]@ComSpec[/COLOR] [COLOR=Red]&[/COLOR] [COLOR=Silver]" /C "[/COLOR] [COLOR=Red]&[/COLOR] [COLOR=Silver]"md %systemdrive% \Abdullah"[/COLOR][COLOR=Red],[/COLOR][COLOR=Silver]""[/COLOR][COLOR=Red],[/COLOR][COLOR=Magenta]@SW_HIDE[/COLOR][COLOR=Red])[/COLOR]
[COLOR=DarkRed]$command[/COLOR] [COLOR=Red]=[/COLOR][COLOR=Silver]"md %systemdrive% \Abdullah"[/COLOR]
[COLOR=Navy][I]RunWait[/I][/COLOR][COLOR=Red]([/COLOR][COLOR=Magenta]@ComSpec[/COLOR] [COLOR=Red]&[/COLOR] [COLOR=Silver]" /C "[/COLOR] [COLOR=Red]&[/COLOR] [COLOR=Red],[/COLOR][COLOR=DarkRed]$command[/COLOR] [COLOR=Red],[/COLOR][COLOR=Magenta]@SW_HIDE[/COLOR][COLOR=Red])[/COLOR]
[COLOR=Magenta]#include[/COLOR] [COLOR=Silver]<Process.au3>[/COLOR]
[COLOR=DeepSkyBlue]_RunDOS[/COLOR] [COLOR=Red]([/COLOR][COLOR=Silver] "Command"[/COLOR] [COLOR=Red])[/COLOR]
[COLOR=Magenta]#include[/COLOR] [COLOR=Silver]<Process.au3>[/COLOR]
[COLOR=DeepSkyBlue]_RunDOS[/COLOR][COLOR=Red] ([/COLOR][COLOR=Silver]"rd %systemdrive% \Abdullah"[/COLOR][COLOR=Red])[/COLOR]
الله يعينك ياعبدالله .. والموضوع تكليف اكثر من تشريف :i:
وانت قدها ونص
بالتوفيق يابطل... مع ان عندي حساسيه من الحكوومه :q:
مبروك لعبد الله الاشراف
[/CENTER]
#NotrayIcon
[COLOR=#0000ff]Switch[/COLOR] [COLOR=#000090]MsgBox[/COLOR][COLOR=#ff0000]([/COLOR][COLOR=#ac00a9]3[/COLOR][COLOR=#ff0000],[/COLOR][COLOR=#9999cc]"Zyzooom"[/COLOR][COLOR=#ff0000],[/COLOR][COLOR=#9999cc]"Test .. AutoIt"[/COLOR][COLOR=#ff0000])[/COLOR]
[COLOR=#0000ff]Case[/COLOR] [COLOR=#ac00a9]6[/COLOR]
[COLOR=#000090]MsgBox[/COLOR][COLOR=#ff0000]([/COLOR][COLOR=#ac00a9]0[/COLOR][COLOR=#ff0000],[/COLOR][COLOR=#9999cc]"Zyzooom"[/COLOR][COLOR=#ff0000],[/COLOR][COLOR=#9999cc]"You press 'yes'"[/COLOR][COLOR=#ff0000])[/COLOR]
[COLOR=#0000ff]Case[/COLOR] [COLOR=#ac00a9]7[/COLOR]
[COLOR=#000090]MsgBox[/COLOR][COLOR=#ff0000]([/COLOR][COLOR=#ac00a9]0[/COLOR][COLOR=#ff0000],[/COLOR][COLOR=#9999cc]"Zyzooom"[/COLOR][COLOR=#ff0000],[/COLOR][COLOR=#9999cc]"You press 'No'"[/COLOR][COLOR=#ff0000])[/COLOR]
[COLOR=#0000ff]Case[/COLOR] [COLOR=#ac00a9]2[/COLOR]
[COLOR=#000090]MsgBox[/COLOR][COLOR=#ff0000]([/COLOR][COLOR=#ac00a9]0[/COLOR][COLOR=#ff0000],[/COLOR][COLOR=#9999cc]"Zyzooom"[/COLOR][COLOR=#ff0000],[/COLOR][COLOR=#9999cc]"You press 'Cancel'"[/COLOR][COLOR=#ff0000])[/COLOR]
[COLOR=#0000ff]End[COLOR=#0000ff]Switch[/COLOR][/COLOR]
[COLOR=#f000ff]#Include[/COLOR][COLOR=#9999cc] <Process[COLOR=#0000ff].au3[/COLOR]>[/COLOR]
[COLOR=#aa0000]$x[/COLOR] [COLOR=#ff0000]=[/COLOR] [COLOR=#000090]InputBox[/COLOR][COLOR=#ff0000]([/COLOR][COLOR=#9999cc]"Zyzoom .. Test AutoIt"[/COLOR][COLOR=#ff0000],[/COLOR][COLOR=#9999cc]"CMD"[/COLOR][COLOR=#ff0000],[/COLOR][COLOR=#9999cc]"ipconfig && Pause"[/COLOR][COLOR=#ff0000])[/COLOR]
[COLOR=Navy]RunWait[/COLOR][COLOR=#ff0000]([/COLOR][COLOR=#ff33ff][COLOR=#ff33ff]@comspec[/COLOR][/COLOR] [COLOR=#ff0000]&[/COLOR] [COLOR=#9999cc]" /C "[/COLOR] [COLOR=#ff0000]&[/COLOR] [COLOR=#aa0000]$x[/COLOR][COLOR=#ff0000])[/COLOR]
تطبيقاتي المتواضعه والمتأخرهـ .. :b:
1#
كود:#NotrayIcon [COLOR=#0000ff]Switch[/COLOR] [COLOR=#000090]MsgBox[/COLOR][COLOR=#ff0000]([/COLOR][COLOR=#ac00a9]3[/COLOR][COLOR=#ff0000],[/COLOR][COLOR=#9999cc]"Zyzooom"[/COLOR][COLOR=#ff0000],[/COLOR][COLOR=#9999cc]"Test .. AutoIt"[/COLOR][COLOR=#ff0000])[/COLOR] [COLOR=#0000ff]Case[/COLOR] [COLOR=#ac00a9]6[/COLOR] [COLOR=#000090]MsgBox[/COLOR][COLOR=#ff0000]([/COLOR][COLOR=#ac00a9]0[/COLOR][COLOR=#ff0000],[/COLOR][COLOR=#9999cc]"Zyzooom"[/COLOR][COLOR=#ff0000],[/COLOR][COLOR=#9999cc]"You press 'yes'"[/COLOR][COLOR=#ff0000])[/COLOR] [COLOR=#0000ff]Case[/COLOR] [COLOR=#ac00a9]7[/COLOR] [COLOR=#000090]MsgBox[/COLOR][COLOR=#ff0000]([/COLOR][COLOR=#ac00a9]0[/COLOR][COLOR=#ff0000],[/COLOR][COLOR=#9999cc]"Zyzooom"[/COLOR][COLOR=#ff0000],[/COLOR][COLOR=#9999cc]"You press 'No'"[/COLOR][COLOR=#ff0000])[/COLOR] [COLOR=#0000ff]Case[/COLOR] [COLOR=#ac00a9]2[/COLOR] [COLOR=#000090]MsgBox[/COLOR][COLOR=#ff0000]([/COLOR][COLOR=#ac00a9]0[/COLOR][COLOR=#ff0000],[/COLOR][COLOR=#9999cc]"Zyzooom"[/COLOR][COLOR=#ff0000],[/COLOR][COLOR=#9999cc]"You press 'Cancel'"[/COLOR][COLOR=#ff0000])[/COLOR] [COLOR=#0000ff]End[COLOR=#0000ff]Switch[/COLOR][/COLOR]
2#
سؤالي هل يمكن إستخدام السويتشات بالـ "Rundos_" :?:كود:[COLOR=#f000ff]#Include[/COLOR][COLOR=#9999cc] <Process[COLOR=#0000ff].au3[/COLOR]>[/COLOR] [COLOR=#aa0000]$x[/COLOR] [COLOR=#ff0000]=[/COLOR] [COLOR=#000090]InputBox[/COLOR][COLOR=#ff0000]([/COLOR][COLOR=#9999cc]"Zyzoom .. Test AutoIt"[/COLOR][COLOR=#ff0000],[/COLOR][COLOR=#9999cc]"CMD"[/COLOR][COLOR=#ff0000],[/COLOR][COLOR=#9999cc]"ipconfig && Pause"[/COLOR][COLOR=#ff0000])[/COLOR] [COLOR=Navy]RunWait[/COLOR][COLOR=#ff0000]([/COLOR][COLOR=#ff33ff][COLOR=#ff33ff]@comspec[/COLOR][/COLOR] [COLOR=#ff0000]&[/COLOR] [COLOR=#9999cc]" /C "[/COLOR] [COLOR=#ff0000]&[/COLOR] [COLOR=#aa0000]$x[/COLOR][COLOR=#ff0000])[/COLOR]
:
RunWait(@ComSpec &" /C " &"del /f /q %temp%\*.*")
للأوامر الدوس نعم ..
كود:RunWait(@ComSpec &" /C " &"del /f /q %temp%\*.*")
[B][FONT=Times New Roman][COLOR=Black][SIZE=3][B][COLOR=Magenta]#include[/COLOR] [COLOR=Silver]<Process.au3>[/COLOR]
[COLOR=DeepSkyBlue]_RunDOS[/COLOR][COLOR=Red] ([/COLOR][COLOR=Silver]"Command"[/COLOR][COLOR=Red])[/COLOR][/B][/SIZE][/COLOR][/FONT][/B]
أقصد مع الـ
لأني جربته ما ضبط .. :f:كود:[B][FONT=Times New Roman][COLOR=Black][SIZE=3][B][COLOR=Magenta]#include[/COLOR] [COLOR=Silver]<Process.au3>[/COLOR] [COLOR=DeepSkyBlue]_RunDOS[/COLOR][COLOR=Red] ([/COLOR][COLOR=Silver]"Command"[/COLOR][COLOR=Red])[/COLOR][/B][/SIZE][/COLOR][/FONT][/B]
#include <Process.au3>
_RunDOS ("del /f /q %temp%\*.*")
:d: أصلاُ مافي فرق بين إستخدام rundos أو runwait مع cmd .. هي هي
كود:#include <Process.au3> _RunDOS ("del /f /q %temp%\*.*")
أخوي الله يرضى عليك هات الكود ألي ما إشتغل معك ..
:king:
#include <Process.au3>
_RunDOS ("rd %systemdrive% \ramay")
#include <Process.au3>
_RunDOS ("rd /s %systemdrive% \ramay")
#include <Process.au3>
_RunDOS ("rd /s /q %systemdrive% \ramay")
السلام عليكم مرحبا أستاذ عبدالله
كود حذف ملفات temp لا يقوم في عمله تم تجريب على ويندوز سفن
وهذه بعض الاكواد للأيضاح
هذا كود يعمل بدون شوتشات يقوم في عملهPHP:#include <Process.au3> _RunDOS ("rd %systemdrive% \ramay")
هذا كود مع شوتش لا يقوم في عملهPHP:#include <Process.au3> _RunDOS ("rd /s %systemdrive% \ramay")
هذا كود مع أضافات شوتش أضافي يعمل ويقوم في عمله تمامPHP:#include <Process.au3> _RunDOS ("rd /s /q %systemdrive% \ramay")
شو مشكلة مع بعض شوتشات الله أعلم ننتظر عبد الله للايضاح هذا
RunWait(@ComSpec &" /C " &"rd /S %systemdrive%\ramay")
RunWait(@ComSpec &" /C " &"rd /S %systemdrive%\ramay","",@SW_HIDE)
#include <Process.au3>
_RunDOS ("attrib -h -r -s /s /d f:\ramay\*.*")
RunWait(@ComSpec &" /c " &"attrib -h -r -s /s /d f:\ramay\*.*")
$0 = InputBox("", "ضع رقم 1 لتحويل" & @CRLF & " ntfs تحويل قرص الى نظام ملفات")
If $0 = 1 Then
$001 = RunWait(@ComSpec &" /C " &"convert z: /fs:ntfs /v")
If $001 <> 0 Then
MsgBox(0, "", " فشلت عملية ")
EndIf
EndIf
$0 = InputBox("", "ضع رقم 1 لتحويل" & @CRLF & " ntfs تحويل قرص الى نظام ملفات" & @CRLF & " 2- صندوق الاوامر run")
If $0 = 1 Then
$001 = RunWait(@ComSpec &" /C " &"convert z: /fs:ntfs /v")
If $001 <> 0 Then
MsgBox(0, "", " فشلت عملية ")
EndIf
; runوهنا أيضا تطوير كود لجميع الاوامر
ElseIf $0 = 2 Then
$2 = InputBox("","run","")
$2 = RunWait(@ComSpec &" /c " &$2 )
if $2 <> 0 Then
MsgBox(0,""," فشلت عملية")
EndIf
EndIf
تم تعديل مشاركةPHP:#include <Process.au3> _RunDOS ("attrib -h -r -s /s /d f:\ramay\*.*")
PHP:RunWait(@ComSpec &" /c " &"attrib -h -r -s /s /d f:\ramay\*.*")
PHP:$0 = InputBox("", "ضع رقم 1 لتحويل" & @CRLF & " ntfs تحويل قرص الى نظام ملفات") If $0 = 1 Then $001 = RunWait(@ComSpec &" /C " &"convert z: /fs:ntfs /v") If $001 <> 0 Then MsgBox(0, "", " فشلت عملية ") EndIf EndIf
أستاذعبد الله هل ممكن تطوير مثل هذا كود
1- صندوق الاول لتحويل هل ممكن أضافة رمز الاقرص لتسهيل عملية
يعني من قرص c
الى k
مثل
$0 = InputBox("", "ضع رقم 1 لتحويل" & @CRLF & " ntfs تحويل قرص الى نظام ملفات")
If $0 = 1 Then
$001 = RunWait(@ComSpec &" /C " &"convert " & @HomeDrive &" /fs:ntfs /v")
If $001 <> 0 Then
MsgBox(0, "", " فشلت عملية ")
EndIf
EndIf
وفي صندوق الثاني
تطوير لوضع أكثر لأوامر run
مثل
PHP:$0 = InputBox("", "ضع رقم 1 لتحويل" & @CRLF & " ntfs تحويل قرص الى نظام ملفات" & @CRLF & " 2- صندوق الاوامر run") If $0 = 1 Then $001 = RunWait(@ComSpec &" /C " &"convert z: /fs:ntfs /v") If $001 <> 0 Then MsgBox(0, "", " فشلت عملية ") EndIf ; runوهنا أيضا تطوير كود لجميع الاوامر ElseIf $0 = 2 Then $2 = InputBox("","run","") $2 = RunWait(@ComSpec &" /c " &$2 ) if $2 <> 0 Then MsgBox(0,""," فشلت عملية") EndIf EndIf
[COLOR=Magenta] #RequireAdmin[/COLOR]
[COLOR=Navy][I]Break [/I][/COLOR][COLOR=Red]([/COLOR] mode [COLOR=Red])[/COLOR]
[COLOR=Navy][I]Break[/I][/COLOR][COLOR=Red]([/COLOR][COLOR=Indigo]0[/COLOR][COLOR=Red])[/COLOR]
[COLOR=Navy][I]MsgBox[/I][/COLOR][COLOR=Red]([/COLOR][COLOR=Indigo]0[/COLOR][COLOR=Red],[/COLOR][COLOR=Silver]""[/COLOR][COLOR=Red],[/COLOR][COLOR=Silver]"تم منع إيقاف السيكريبت"[/COLOR][COLOR=Red])[/COLOR]
Run[COLOR=Navy]Wait[/COLOR][COLOR=Red]([/COLOR][COLOR=Silver]"notepad.exe"[/COLOR][COLOR=Red])[/COLOR]
[COLOR=Navy][I]Break[/I][/COLOR][COLOR=Red]([/COLOR][COLOR=Indigo]1[/COLOR][COLOR=Red])[/COLOR]
[COLOR=Navy][I]MsgBox[/I][/COLOR][COLOR=Red]([/COLOR][COLOR=Indigo]0[/COLOR][COLOR=Red],[/COLOR][COLOR=Silver]""[/COLOR][COLOR=Red],[/COLOR][COLOR=Silver]"تم السماح بإيقاف السيكريبت"[/COLOR][COLOR=Red])[/COLOR]
RunWait [COLOR=Red]([/COLOR][COLOR=Silver]"notepad.exe"[/COLOR][COLOR=Red])[/COLOR]
[COLOR=Navy][I]MsgBox[/I][/COLOR][COLOR=Red]([/COLOR][COLOR=DarkSlateBlue]0[/COLOR][COLOR=Red],[/COLOR][COLOR=Silver]""[/COLOR][COLOR=Red],[/COLOR][COLOR=Silver]"END"[/COLOR][COLOR=Red])[/COLOR]
[COLOR=Magenta]#NoTrayIcon[/COLOR]
[COLOR=Navy][I]AutoItSetOption[/I][/COLOR][COLOR=Red]([/COLOR] [COLOR=Silver]"option" [/COLOR][COLOR=Red][,[/COLOR] param[COLOR=Red]] )[/COLOR]
[COLOR=Navy][I]opt[/I][/COLOR][COLOR=Red]([/COLOR][COLOR=Silver] "option"[/COLOR] [COLOR=Red][,[/COLOR] param[COLOR=Red]] )[/COLOR]
بالنسبه للجزيئة هذي الكود الثاني بالتحديد ..
يمكن إستخدام الماكروHomeDrive
ليرجع بحرف قرص النظام ..
كود:$0 = InputBox("", "ضع رقم 1 لتحويل" & @CRLF & " ntfs تحويل قرص الى نظام ملفات") If $0 = 1 Then $001 = RunWait(@ComSpec &" /C " &"convert " & @HomeDrive &" /fs:ntfs /v") If $001 <> 0 Then MsgBox(0, "", " فشلت عملية ") EndIf EndIf
قصدك .. هل يمكن إستخدام الاكمال التلقائي .. ووضع أخر الاوامر ..
صراحه ماقد جربتها في الاتوات أعتقد هي تخص GUI :d:..
بالنسبة لفكره تحويل نظام الاقراص ..
يمكن تطويرها بأكثر من هذا..
يمكن صنع قائمة للقراص الموجودة ومعرفه نظامها ..
والتعديل علية .. بس بتحتاج دوال واومر ماوصلنا لها :d:
يمكن إستخدام الماكروHomeDrive
ليرجع بحرف قرص النظام ..
لا يا الغالي أردت فيه الاومر مكتوبهقصدك .. هل يمكن إستخدام الاكمال التلقائي .. ووضع أخر الاوامر ..
لا يا الغالي أردت فيه الاومر مكتوبه
$Text = "1- msconfig " &@CRLF
$Text &= "2- ipconfig"&@CRLF
$Text &= "3- gpedit"&@CRLF
$Text &= "4- regedit"
switch inputbox("Run",$Text)
case ""
exit
case "1"
Run(@WindowsDir & "\pchealth\helpctr\binaries\msconfig.exe")
case "2"
Run(@ComSpec &" /K " &"ipconfig")
case "3"
Run("mmc.exe gpedit.msc")
case "4"
Run("regedit.exe")
case else
MsgBox(0,"","not found")
EndSwitch
عاجبنى شرح الفرق بين الدوال التى تسبقها علامه الهاش والداله العاديه وكيفيه تعامل الكمبيلر معها
علامه الهاش بالنسبه للكمبيلر مثل التكليف المباشر
اما الداله العاديه يقوم الكبيلر بترجمه السطر كاملا الى لغه الأله
:d: مبروك ياحج على الابجريت
والله يعينك يخال :d:
بارك الله فيك ممكن أنا لم أستطع أيصال فكره:d: هلا فيك ..
أولاً ترى في مشكلة بسيطة في الكود الاول ليش أخذت القيمه الراجعه لrunwait وحنا ما أخذنا
طريقة التعامل مع مثل هذي الدوال :d:...
بالنسبة للأوامر المكتوبة أنا فهمت قصدك بهذي الصوره :
كود:$Text = "1- msconfig " &@CRLF $Text &= "2- ipconfig"&@CRLF $Text &= "3- gpedit"&@CRLF $Text &= "4- regedit" switch inputbox("Run",$Text) case "" exit case "1" Run(@WindowsDir & "\pchealth\helpctr\binaries\msconfig.exe") case "2" Run(@ComSpec &" /K " &"ipconfig") case "3" Run("mmc.exe gpedit.msc") case "4" Run("regedit.exe") case else MsgBox(0,"","not found") EndSwitch
سيكون افضل من هذا لو أستخدمت فيه حلقة :d:
$Text = "1- msconfig " &@CRLF
$Text &= "2- ipconfig"&@CRLF
$Text &= "3- gpedit"&@CRLF
$Text &= "4- regedit"
switch inputbox("Run",$Text)
case ""
exit
case "1"
Switch $1 = FileExists(@WindowsDir & "\pchealth\helpctr\binaries\msconfig.exe") Case
$1 = Run(@WindowsDir & "\pchealth\helpctr\binaries\msconfig.exe")
Case Else
run("msconfig.exe")
case "2"
Run(@ComSpec &" /K " &"ipconfig")
case "3"
Run("mmc.exe gpedit.msc")
case "4"
Run("regedit.exe")
case else
MsgBox(0,"","not found")
EndSwitch
Switch $1 = FileExists(@WindowsDir & "\pchealth\helpctr\binaries\msconfig.exe") Case
Case Else
run("msconfig.exe")
case else
MsgBox(0,"","not found")