Jump to content

1, 2, 3 Ve Üç Tuslarına Basmak Için Komut ?


134679852
 Share

Recommended Posts

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

[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]

Link to comment
Share on other sites

Ü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 by 134679852
Link to comment
Share on other sites

[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]

Link to comment
Share on other sites

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