johncher Posted February 17, 2011 Share Posted February 17, 2011 (edited) [b]Arkadaslar asağıdaki kodda dk5 fonksiyonuna gönderip ordaki işlemi yaptırdıktan sonra tekrar kaldığı yerden hangi kodla devam ettirebilirim[/b] $zaman =10 $sure=0 send ("{NumPad2}") $t=1 While $t =1 Sleep (100) $sure=$sure+1 dk5() ;--------------------BURDA DK5 FONKSİYONUNA GÖNDERİP basadon();------------------ DK5 FONKSİYONUNDAN SONRA BURAYA DONMESİNİ İSTİYORUM send(100) if $sure=10 then $sure=0 WEnd Func dk5() $t=0 While $t <=4 if $sure=$zaman then Send ("{NumPad3}") sleep(3000) WEnd go to basadon();------------------------------ EndFunc Edited November 2, 2011 by BrightBlade Başlık kurallara uygun bir şekilde düzenlenmiştir! Quote Link to comment Share on other sites More sharing options...
blue_life Posted February 17, 2011 Share Posted February 17, 2011 @johncher Zaten While döngüsündesin! dk5() Functionun gittikten sonra işi bitince otomatik olarak kaldığı yerden devam eder. Yani dk5() functionundaki while döngüsünden çıktığında kaldığı yerden devam edecektir... Umarım anlamıştısın. Acaba ben senin yapmak istediğini yanlış anlamış olabilir miyim? Quote Link to comment Share on other sites More sharing options...
johncher Posted February 17, 2011 Author Share Posted February 17, 2011 (edited) hocam ilgin için saol doğru anlamışsın hallettim ) Edited February 17, 2011 by johncher Quote Link to comment Share on other sites More sharing options...
blue_life Posted February 17, 2011 Share Posted February 17, 2011 (edited) Sen tam olarak ne yapmak istiyorsun? Bellirlediğin zaman içinde send komutunumu göndermek istiyorsun? Edit: Eğer öyleyse basit bir örnek [codebox]Send("{NumPad2}") _Blue_Send("{NumPad3}",500,5) ;Tuş,Gönderme aralığı,gönderme sayısı,döngüde bekleme Func _Blue_Send($Bl_Send, $Bl_Wait = 100,$Bl_Count = -1,$Bl_Idle = 100) Local $Bl_Timer = TimerInit() While $Bl_Count <> 0 If Round(TimerDiff($Bl_Timer)) > $Bl_Wait Then MsgBox(64,"Test",$Bl_Count) Send($Bl_Send) $Bl_Timer = TimerInit() $Bl_Count -=1 EndIf Sleep($Bl_Idle) WEnd EndFunc[/codebox] Edited February 17, 2011 by blue_life 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.