Jump to content

Klavyede Sürekli Bas Bırak Yapma


yusuf1284
 Share

Recommended Posts

HotKeySet("^1","_Send")
#include <Misc.au3>
Local $hDLL = DllOpen("user32.dll")
Func _Send()
 Sleep(250)
While 1
Send("1")
If _IsPressed("11", $hDLL) Then ExitLoop
WEnd
EndFunc
while 1
Sleep(100)
WEnd
DllClose($hDLL)

 

 

CTRL  + 1 Başlatır CTRL durdurur.

Link to comment
Share on other sites

Ben de öyle bir sorun yok. Birde böyle dene:
 

Opt("SendKeyDelay", "5")

Global $baslat = 0

HotKeySet("!1", "baslat")

Func baslat()
    If $baslat Then
        $baslat = 0
    Else
        $baslat = 1
    EndIf
EndFunc

While 1
Sleep(50)
    If $baslat = 1 Then
        ControlSend("[active]", "", "", '"1')
    EndIf
WEnd
Edited by reyiz
Link to comment
Share on other sites

HotKeySet("^1","_Send")
#include <Misc.au3>
Local $hDLL = DllOpen("user32.dll")
Func _Send()
 Sleep(250)
While 1
Send("1")
If _IsPressed("11", $hDLL) Then ExitLoop
WEnd
EndFunc
while 1
Sleep(100)
WEnd
DllClose($hDLL)

 

 

CTRL  + 1 Başlatır CTRL durdurur.

 

sürekli 1 yapıyor 

Link to comment
Share on other sites

 

Ben de öyle bir sorun yok. Birde böyle dene:
 

Opt("SendKeyDelay", "5")

Global $baslat = 0

HotKeySet("!1", "baslat")

Func baslat()
    If $baslat Then
        $baslat = 0
    Else
        $baslat = 1
    EndIf
EndFunc

While 1
Sleep(50)
    If $baslat = 1 Then
        ControlSend("[active]", "", "", '"1')
    EndIf
WEnd

 

aynen çalşıyor oyunda sadace tepki vermiyor..

Edited by yusuf1284
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...