isimsiz2 Posted December 23, 2011 Share Posted December 23, 2011 BİR PROGRAMIN ÇALIŞIYOR DURUMDA OLUP OLMADIĞINI if kodu ile GÖSTEREN BİR PROGRAM YAPILABİLİRMİ? Quote Link to comment Share on other sites More sharing options...
Bitmap Posted December 23, 2011 Share Posted December 23, 2011 [codebox]#include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Form1", 268, 127, 192, 124) $Label1 = GUICtrlCreateLabel("Goster", 24, 24, 250, 24 ) GUICtrlSetFont(-1, 12, 400, 0, "MS Sans Serif") $Button1 = GUICtrlCreateButton("Kontrol", 96, 80, 75, 25, $WS_GROUP) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Button1 $Kontrol = ProcessExists("firefox.exe"); if $Kontrol Then GUICtrlSetData($Label1,"Firefox Çalışıyor"); Else GUICtrlSetData($Label1,"Firefox Çalışmıyor"); EndIf EndSwitch WEnd[/codebox] böyle ProcessExist ile yapabilirsin.. ben firefoxu kontrol ettirdim sen düzenleyebilirsin.. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.