MstfBlgn Posted March 16, 2012 Share Posted March 16, 2012 (edited) beyler run komutu ile açtıgım exe kapanınca scripte kapanak öyle bir kod varmı ? Edited March 16, 2012 by MstfBlgn Quote Link to comment Share on other sites More sharing options...
blue_life Posted March 16, 2012 Share Posted March 16, 2012 Önce çalıştırdığın programın pid bilgisini alır ve döngünün içinde ilgili pida aipt programın çalışıp çalışmadığını kontrol edersin. Örnek vermem gerekirse; [code]Local $PID = Run("notepad.exe") While ProcessExists($PID) <> 0 Sleep(50) ;Diğer işlemler WEnd Exit[/code] Veyahut; [code]Local $PID = Run("notepad.exe") While 1 If ProcessExists($PID) = 0 Then Exit ;Diğer işlemler Sleep(50) WEnd[/code] Quote Link to comment Share on other sites More sharing options...
MstfBlgn Posted March 16, 2012 Author Share Posted March 16, 2012 (edited) beyler ben kendimi anlatamadım sanırım size Mesela Ben Oyunun Exe sine 1-2 Dosya İle Paketledim Eve Adını AutoIt.dll Yaptım Onuda Auto It İle Run Yaptım Auto It Exe Sine Tıklayınca Oyun Acılıyor Oyundan Cık Tusuna Basınca Auto İt Acık Kalıyor Calıstırdıktan Sonrada Exit Komutu Veremem Exe Yi Bazi hile Titlelerinden korumak Zorunda Çünkü Onun İçin Oyun Kapanınca AutoIt.dll Yani Run Yapan SCript Exe sininde Kapanmasını İStiyorum Edited March 16, 2012 by MstfBlgn Quote Link to comment Share on other sites More sharing options...
Mehmet Posted March 17, 2012 Share Posted March 17, 2012 ozaman tam tersini yaparsın mantık aynı [codebox] Run("oyunum.exe") ProcessWaitClose("scriptinismi.exe") Exit [/codebox] Quote Link to comment Share on other sites More sharing options...
DivaneTR Posted May 7, 2012 Share Posted May 7, 2012 [b]RunWait() kullanabilirsin eğer doğru anladıysam. Ardına da Exit yazarsın.[/b] 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.