korasoglu Posted February 6, 2015 Share Posted February 6, 2015 Arkadaşlar çalıştıracağım uygulama açıldığı zaman Scriptin kapanmamasını istiyorum açılan uygulama sonlandımı o zaman kapanmasını nasıl yapabilirim. Sizce hangi kullanım daha sağlıklıdır. Run(@ScriptDir & "\Kur\x86\setup.exe") ShellExecute(@ScriptDir & "\Kur\x86\setup.exe") ----------- Quote Link to comment Share on other sites More sharing options...
KintaRo Posted February 6, 2015 Share Posted February 6, 2015 RunWait(@ScriptDir & "\Kur\x86\setup.exe") Quote Link to comment Share on other sites More sharing options...
korasoglu Posted February 6, 2015 Author Share Posted February 6, 2015 Sevgili Kintaro File.Run(Programs, "", "", SW_SHOWNORMAL, true); Buradaki false - true istediğim. Quote Link to comment Share on other sites More sharing options...
KintaRo Posted February 6, 2015 Share Posted February 6, 2015 aynen abi bu işte, komutla çalıştırdığın program kapanmadan script altındaki kodlar çalışmıyor/script sonlanmıyor. bir de şu yöntem var (exe dışı uygulamaları çalıştırmak için): ShellExecuteWait(@ScriptDir & "\Kur\x86\setup.exe"") https://www.autoitscript.com/autoit3/docs/functions/RunWait.htm Quote Link to comment Share on other sites More sharing options...
blue_life Posted February 7, 2015 Share Posted February 7, 2015 @korasoglu Anladığım kadarıyla bir uygulama çalıştırıp işlemlere devam edip, çalıştırdığın uygulama kapanınca çıkış yapmak istiyorsun. Basit bir örnek veyim sen kendine göre ayarlarsın. Local $Program = "Notepad.exe" ;Uygulamanın konumu. Sen tam konum yazarsın. Local $ProgramPid = Run($Program) ;Diğer başlangıç işlemlerini yap While ProcessExists($ProgramPid) ;Döngüde kontrol edeceğin işlemler ToolTip("Saat " & @HOUR & ":" & @MIN & ":" & @SEC) Sleep(50) ;Fazla işlem yoksa bekleme yapalım cpuya yüklenme olmaması için WEnd ;Çıkış işlemleri Exit 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.