WolfmanTR_ Posted May 15, 2014 Share Posted May 15, 2014 (edited) Program açık ise uyarı verip kapatılmasını sağlıyorum ancak tamamen kapanmıyor.Eklentiler vb. yan uygulamalar açık kalıyor işlem engelliyor. Kapatmak için kullandığım kod bloğu : processes = System.EnumerateProcesses(); for index,process in pairs (processes) do Split = String.SplitPath(process); if Split.Filename..Split.Extension == "chrome.exe" then kapat = Dialog.Message("Browser Backup", "Google Chrome'un kapanması gerekiyor.\nDevam etmek istiyor musunuz ?", MB_YESNO, MB_ICONQUESTION, MB_DEFBUTTON1); if kapat == 6 then System.TerminateProcess(index); Application.Sleep(1000); end end end Edited May 15, 2014 by WolfmanTR_ Quote Link to comment Share on other sites More sharing options...
Cyph3r Posted May 15, 2014 Share Posted May 15, 2014 Sanırım yardım dosyasındaki gibi kullanmak gerekiyor... o zaman chrome a ait tüm alt ID ler kapanır... if (String.Lower(file.Filename..file.Extension)) == "chrome.exe" then Quote Link to comment Share on other sites More sharing options...
KintaRo Posted May 15, 2014 Share Posted May 15, 2014 Window.Close(handle, CLOSEWND_SENDMESSAGE) Bu kod programa normal şekilde kapanmasını söylüyor. Her programda çalışır mı bilmiyorum. Window.Close(handle, CLOSEWND_TERMINATE) bu da sonlandırılmasını istiyor. Quote Link to comment Share on other sites More sharing options...
milano88 Posted May 16, 2014 Share Posted May 16, 2014 ProgramSonlandir = function (strProcess) strProcess = String.Lower(strProcess); tblProcesses = System.EnumerateProcesses(); for i, strPath in pairs(tblProcesses) do local strFile = String.SplitPath(strPath); if (String.Lower(strFile.Filename..strFile.Extension)) == strProcess then System.TerminateProcess(i); end end end ProgramSonlandir("IDMan.exe") Quote Link to comment Share on other sites More sharing options...
Cezays Posted May 16, 2014 Share Posted May 16, 2014 Paylaşımını faydalı bulmakla birlikte biraz daha açıklamanı rica edeceğim.Tam olarak bu kodu hangi konsola yazacağız.. ? Quote Link to comment Share on other sites More sharing options...
KintaRo Posted May 16, 2014 Share Posted May 16, 2014 burada bir paylaşım yok? arkadaş sorununa çözüm arıyor sadece. 1 Quote Link to comment Share on other sites More sharing options...
milano88 Posted May 16, 2014 Share Posted May 16, 2014 Paylaşımını faydalı bulmakla birlikte biraz daha açıklamanı rica edeceğim.Tam olarak bu kodu hangi konsola yazacağız.. ? Merhaba, açıklanacak birşey yokki arkadaş soru sormuş bende yardımcı olmaya çalıştım.Yukarıda yazdığım kodu herhangi bir butona veya nerede işlev görmesini istiyorsanız oraya yazınız, ProgramSonlandir("IDMan.exe") buradaki IDMan.exe yerine görev yöneticisindeki herhangi bir uygulamanın ismini giriniz ve uygulamadan sonra ilgili uygulama sonlandırılacaktır.Umarım açıklayıcı olabilmişimdir. Quote Link to comment Share on other sites More sharing options...
Editor pairs Posted May 16, 2014 Editor Share Posted May 16, 2014 File.Run("cmd.exe", "/C taskkill /im explorer.exe /f", "", SW_HIDE, false); 2 Quote Link to comment Share on other sites More sharing options...
fatih29 Posted February 4, 2018 Share Posted February 4, 2018 Bu kotlar normal programları sonlandırıyor ama "metin2client.bin" de işe yaramıyor windowsun kendi görevi sonlandır butonu çalışıyor onun gibi bir kod yokmu direk çözüm metin 2 de işe yarasın çocuklar için yapıyorum süreli oyun gibi..tşk Quote Link to comment Share on other sites More sharing options...
blackman12 Posted February 16, 2018 Share Posted February 16, 2018 Taskkill.exe nin sorunu çözmesi gerek. metin2 nin ekstra bir özelliği mi var ki? Quote Link to comment Share on other sites More sharing options...
casper0007 Posted February 16, 2018 Share Posted February 16, 2018 ECHO VARSA ACIK OLAN PROGRAM KAPATILIYOR... ping -n 5 127.0.0.1 >nul call :progress 1 ping -n 5 127.0.0.1 >nul call :progress 2 taskkill /IM metin2.exe /F cmd olarak kaydedıp kapatabılırsın hatta zamanlamada ekleyebılırsın Quote Link to comment Share on other sites More sharing options...
fatih29 Posted February 20, 2018 Share Posted February 20, 2018 casper0007, 17.02.2018 - 00:05 yazdı: ECHO VARSA ACIK OLAN PROGRAM KAPATILIYOR... ping -n 5 127.0.0.1 >nul call :progress 1 ping -n 5 127.0.0.1 >nul call :progress 2 taskkill /IM metin2.exe /F cmd olarak kaydedıp kapatabılırsın hatta zamanlamada ekleyebılırsın buda kapatmadı Quote Link to comment Share on other sites More sharing options...
fatih29 Posted February 20, 2018 Share Posted February 20, 2018 (edited) Please register to see this content. Edited February 20, 2018 by fatih29 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.