134679852 Posted September 3, 2011 Share Posted September 3, 2011 Arkadaşlar örnek konular vardı fakat ne kadar uğraştıysam da beceremiyorum şu AutoIT'i ... ((: Sizden isteğim şu F5, F6, F7 gibi herhangi bir tuşa bastıgımda başlıyacak ve duracak bir komut istiyorum. Şu şekilde olmalı 10 saniyede bir 1, 2 ve 3 tuşlarına sırayla basacak . Yardımcı olan arkadaşlara şimdiden teşekkürLer... Quote Link to comment Share on other sites More sharing options...
SimpsoN_Bart Posted September 3, 2011 Share Posted September 3, 2011 [font="Georgia"]Programın isteğini yapması için F7 tuşuna,programın durması için F8 tuşuna ve programdan çıkmak içinde ESC ye basman yeterli.Tuşları kendine göre ayarlarsın.Umarım işine yarar.Kolay gelsin...[/font] [font="Georgia"][codebox]HotKeySet("{ESC}", "_ESC") HotKeySet("{F7}", "_START") HotKeySet("{F8}", "_STOP") While 1 Sleep(100) WEnd Func _START() AdlibRegister("_START", 10000) ;Fonksiyonu 10 saniyede bir çalıştır. Send("1") Send("2") Send("3") EndFunc ;==>_START Func _STOP() AdlibUnRegister() ;Fonksiyonu durdur. EndFunc ;==>_STOP Func _ESC() ;Programdan çıkış yap. Exit EndFunc ;==>_ESC [/codebox] [/font] Quote Link to comment Share on other sites More sharing options...
134679852 Posted September 4, 2011 Author Share Posted September 4, 2011 (edited) Üstat ilgin için çok teşekkür ederim. Hemen deniyorum. İyi Forumlar ! Denedim fakat ufak bir eksiklik var. Benim söylemeyi atladıgım birşey . 1, 2, 3 tuşlarına 3'er saniye arayla basmasını nasıl sağlayabilirim..? Edited September 4, 2011 by 134679852 Quote Link to comment Share on other sites More sharing options...
blue_life Posted September 4, 2011 Share Posted September 4, 2011 [codebox]HotKeySet("{ESC}", "_ESC") HotKeySet("{F7}", "_START") HotKeySet("{F8}", "_STOP") Global $Paused = False Global $Saniye = 3 While 1 Send("123") If $Paused = False Then Sleep($Saniye * 1000) WEnd Func _START() $Paused = True EndFunc ;==>_START Func _STOP() $Paused = True EndFunc ;==>_STOP Func _ESC() ;Programdan çıkış yap. Exit EndFunc ;==>_ESC[/codebox] Quote Link to comment Share on other sites More sharing options...
134679852 Posted September 4, 2011 Author Share Posted September 4, 2011 Bunu denedim ama hiç durmadan 1 2 3 tuşlarına basıyor. Yanlış bir şey mi yaptım acaba? Quote Link to comment Share on other sites More sharing options...
MostWanted Posted September 4, 2011 Share Posted September 4, 2011 F7 F8 start stop tuşları?Onları kullanıyor musun? Quote Link to comment Share on other sites More sharing options...
edim.7 Posted September 4, 2011 Share Posted September 4, 2011 [quote name='MostWanted' date='04 September 2011 - 21:00 ' timestamp='1315166401' post='1074196'] F7 F8 start stop tuşları?Onları kullanıyor musun? [/quote] 10 sn de bir demiş ya o olmuyor galiba onu kastediyor. Quote Link to comment Share on other sites More sharing options...
MostWanted Posted September 4, 2011 Share Posted September 4, 2011 (edited) HotKeySet("{ESC}", "_ESC") HotKeySet("{F7}", "_START") Global $Paused = False Global $Saniye = 3 While 1 Sleep(100) If $Paused Then ContinueLoop Send("1") Sleep($Saniye * 1000) Send("2") Sleep($Saniye * 1000) Send("3") WEnd Func _START() If $Paused Then $Paused=False Else $Paused = True EndIf EndFunc ;==>_START Func _ESC() ;Programdan çıkış yap. Exit EndFunc ;==>_ESC Evet blue_life kodlarda bi hata yapmış düzelttim.F7 tuşu program çalışıyorsa durdurur duruyorsa çalıştırır şekliden düzelttim.İstediğin gibi 3 saniye aralıkla o tuşa basacak.10 saniyede bir istiyon $saniye=10 yapmalısın bu arada. Edited September 4, 2011 by MostWanted Quote Link to comment Share on other sites More sharing options...
SimpsoN_Bart Posted September 4, 2011 Share Posted September 4, 2011 (edited) [font="Georgia"]Ben pek birşey anladım doğrusu.10 sn bir ekrana 123 yazdırıyor.Tam olarak istediğin nedir onu söylsersen belki daha iyi yardımcı oluruz.[/font] Edited September 4, 2011 by SimpsoN_Bart Quote Link to comment Share on other sites More sharing options...
134679852 Posted September 4, 2011 Author Share Posted September 4, 2011 (edited) @MostWanted tam istediğim gibi olmuş . Yardımcı olmaya çalışan tüm arkadaşlara teşekkürler...! Edited September 4, 2011 by 134679852 Quote Link to comment Share on other sites More sharing options...
edim.7 Posted September 4, 2011 Share Posted September 4, 2011 (edited) online oyun için mi yapıyorsun metin2 knight online gibi ? Edited September 4, 2011 by edim.7 Quote Link to comment Share on other sites More sharing options...
134679852 Posted September 4, 2011 Author Share Posted September 4, 2011 Evet . Metin2 için . 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.