KintaRo Posted February 19, 2012 Share Posted February 19, 2012 AMS'nin kendi içinde bu komutlar var zaten neden farklı yollara başvuruyorsunuz ki? [quote]Service.Continue() Service.Create() Service.Delete() Service.Pause() Service.Query() Service.Start() Service.Stop()[/quote] Quote Link to comment Share on other sites More sharing options...
El-Arabi Posted February 19, 2012 Share Posted February 19, 2012 Service.Query komutu bazen sıkıntılı çalışıyor. Quote Link to comment Share on other sites More sharing options...
kamuran731 Posted February 21, 2012 Author Share Posted February 21, 2012 Ams de Service.Query() komutu var demişsiniz. Uğraştım yapamadım. Ams de bir hizmetin çalışıp çalışmadığı durumunu bir labele yazdırabilecek bir kod vermisiniz? Quote Link to comment Share on other sites More sharing options...
El-Arabi Posted February 21, 2012 Share Posted February 21, 2012 result = Service.Query("AdvancedSystemCare5", ""); if result == 1 then Label.SetText("Label1","Durdurulmuş"); elseif result == 4 then Label.SetText("Label1","Çalışıyor"); elseif result == 7 then Label.SetText("Label1","Duraklatılmış"); elseif result == 40 then Label.SetText("Label1","Servis Yok"); end Bende bu mantıkla yapmıştım ama Service.Query de sıkıntı çıkıyor hemen algılayamıyor. 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.