Jump to content
GIGN Forum

Auto Clicker


tops2
 Share

Recommended Posts

Vai ir tada programa piemeram man viena spele vajag daudz spiest "X" burtu! Man vajadzetu programu lai man tas X automatiski spiezas! Kaut kas lidzigs Mouse Auto Clicker! es mekleju Auto Key Clicker bet neko ladzigu neatradu ludzu kads nevar atsutit Saitni vai ari pateikt kur atrast un vispar tada pastav?

Link to comment
Share on other sites

AutoHotkey download-icon.gif

Ieinstalē, atver, apakšā pie pulksteņa parādīsies zaļš H burts, nospied uz viņa labo taustiņu un Edit This Script un tad iekopē to kodu apakšā, saglabā failu, pēctam atkal labo taustiņu uz zaļā H un Reload This Script. Nospiežot F12, visu laiku tiks spiests X, pārtraukt darbību var nospiežot jebkuru citu pogu.

F12::
#Persistent
SetBatchLines, -1
SetKeyDelay, -1
OnExit, HandleExit

SetFormat, Integer, Hex

ThreadID := DllCall("GetCurrentThreadId")
VarSetCapacity(State, 256)
SetTimer, MonitorKeyboard, 30

Loop
{
   Sleep 1
   If BreakLoop
   Break
   Send X
}
Return


MonitorKeyboard:
TID := DllCall("GetWindowThreadProcessId", "UInt", WinActive("A"), "UInt", 0)

If (TID != TIDOld)
{
   DllCall("AttachThreadInput", "UInt", ThreadID, "UInt", TIDOld, "Int", 0)
   DllCall("AttachThreadInput", "UInt", ThreadID, "UInt", TID, "Int", 1)
   TIDOld := TID
}
DllCall("GetKeyboardState", "UInt", &State)

State := ""
Loop, 254
{
   If (*(&State+A_Index) & 0x80)
   State := A_Index
}

If State
{
   If State not in 0x1,0x2,0x4
   BreakLoop = 1
}
Return

HandleExit:
DllCall("AttachThreadInput", "UInt", ThreadID, "UInt", TIDOld, "Int", 0)
ExitApp

Link to comment
Share on other sites

  • 1 month later...
Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...