Jump to content

Uygulama Çağırma Ve Sonlandırma


korasoglu
 Share

Recommended Posts

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") 

-----------

 

 

Link to comment
Share on other sites

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

Link to comment
Share on other sites

@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
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...