SAYGINER Posted April 21, 2012 Share Posted April 21, 2012 (edited) Merhaba arkadaşlar. FileInstall("PowerISO5.exe",@TempDir & "\PowerISO5.exe") ;Setup DOSYAMIZI AUTOİT İÇİNE GÖMELİM VE TEMP'E ÇIKARALIM ShellExecuteWait(@TempDir & "\PowerISO5.exe","/S","","",@SW_HIDE);KATILIMSIZ PARAMETRESİYLE KURALIM FileDelete(@TempDir & "\PowerISO5.exe");KURULUM BİTTİ TEMPDEN SİLELİM WinWait("PowerISO","Kayıt kodu gir...") ControlCommand("PowerISO","Kayıt kodu gir...","Button2", "Check", "") Send("TEAM CRUDE{TAB}CPPCFN6ZAY8QR7TXB4ULXR53C{ENTER}") Send("{ENTER}") ProcessClose("PowerISO.exe") kodlarıyla PowerISO5.exe programını katılımsız kuruyorum.Fakat program kurulduktan sonra masaütüne kısayol olarak geliyor.Kısa yolu tıklayınca seriali kendiliğinden giriyor.Kısayolu tıklamadan Seriali girmek için başka neyapabilirm.Saygılar ShellExecute(@ProgramFilesDir & "\PowerISO\PowerISO.exe","",@ProgramFilesDir & "\PowerISO") komutuyla işi hallettim ama şimdide açılan programı ProcessClose("PowerISO.exe") komutu ile kapatamıyorum. Edited April 21, 2012 by SAYGINER Quote Link to comment Share on other sites More sharing options...
blue_life Posted April 21, 2012 Share Posted April 21, 2012 [codebox]FileInstall("PowerISO5.exe", @TempDir & "\PowerISO5.exe") ;Setup DOSYAMIZI AUTOİT İÇİNE GÖMELİM VE TEMP'E ÇIKARALIM ShellExecuteWait(@TempDir & "\PowerISO5.exe", "/S", "", "", @SW_HIDE);KATILIMSIZ PARAMETRESİYLE KURALIM Sleep(500);Biraz bekleyelim FileDelete(@TempDir & "\PowerISO5.exe");KURULUM BİTTİ TEMPDEN SİLELİM ; --------------------- Local $Pid = RunWait(@ProgramFilesDir & "\PowerISO\PowerISO.exe", @ProgramFilesDir & "\PowerISO") ;Programı çalıştırıp pidini alalım WinWait("PowerISO", "Kayıt kodu gir...") ControlCommand("PowerISO", "Kayıt kodu gir...", "Button2", "Check", "") Send("TEAM CRUDE{TAB}CPPCFN6ZAY8QR7TXB4ULXR53C{ENTER}") Send("{ENTER}") Sleep(1000);Biraz bekleyelim Yani bir saniye ProcessClose($Pid) ;Programımızı kapatalım[/codebox] Quote Link to comment Share on other sites More sharing options...
SAYGINER Posted April 21, 2012 Author Share Posted April 21, 2012 [quote name='blue_life' date='21 April 2012 - 18:20 ' timestamp='1335021608' post='1190106'] [codebox]FileInstall("PowerISO5.exe", @TempDir & "\PowerISO5.exe") ;Setup DOSYAMIZI AUTOİT İÇİNE GÖMELİM VE TEMP'E ÇIKARALIM ShellExecuteWait(@TempDir & "\PowerISO5.exe", "/S", "", "", @SW_HIDE);KATILIMSIZ PARAMETRESİYLE KURALIM Sleep(500);Biraz bekleyelim FileDelete(@TempDir & "\PowerISO5.exe");KURULUM BİTTİ TEMPDEN SİLELİM ; --------------------- Local $Pid = RunWait(@ProgramFilesDir & "\PowerISO\PowerISO.exe", @ProgramFilesDir & "\PowerISO") ;Programı çalıştırıp pidini alalım WinWait("PowerISO", "Kayıt kodu gir...") ControlCommand("PowerISO", "Kayıt kodu gir...", "Button2", "Check", "") Send("TEAM CRUDE{TAB}CPPCFN6ZAY8QR7TXB4ULXR53C{ENTER}") Send("{ENTER}") Sleep(1000);Biraz bekleyelim Yani bir saniye ProcessClose($Pid) ;Programımızı kapatalım[/codebox] [/quote] program kurulduktan sonra kapanmıyor.ProcessClose($Pid) yerine WinClose("PowerISO") yazınca kapanıyor.Saygılarımla Quote Link to comment Share on other sites More sharing options...
blue_life Posted April 22, 2012 Share Posted April 22, 2012 @ibocan06 Evet haklısın. Bazen acele, kontrol etmeden bir kod verince bu tür hatalar gözden kaçıyor. Runwait yerine, Run kullanılmalıydı... 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.