Jump to content

Autoit Fonksiyon Kullanımı


johncher
 Share

Recommended Posts

[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 by BrightBlade
Başlık kurallara uygun bir şekilde düzenlenmiştir!
Link to comment
Share on other sites

@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?

Link to comment
Share on other sites

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 by blue_life
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...