Simple key stroke spammer that can send up to three strokes. Enter key that you want spammed and how often you want it to be clicked. Time is measured in milliseconds; therefore, 1 second is 1000 milliseconds. Check/Uncheck box to enable or disable one of the inputs.
List of special keystrokes can be found . Please report which games it works on, so I can make a list and maybe make further modifications if needed. Click spoiler for a VirusTotal scan (false positives).
NOTE:The original links which where submitted by me and credited under this username/site have been deleted. I did not back them up. These newly updated links are accredited under a different username/site but are the same exact program. Too lazy to re-compile new ones ;D Links are backed up now. 10-9-2011
RAPIDSHARE , for windows 64bit , for windows 32bit
...have fun with hooked SendInput/Send functions. GameGuard ftw.
Add a keystroke helper, just search GetKeyboardState.
I don't see how getting the status of the keys will bypass or serve as an alternative to the Send/ControlSend functions? I looked it up and even found some examples. Yet I don't see what purpose it will serve.
Three examples of using GetKeyboardState.
Code:
; #EXAMPLE 1# =======================================================================================
; Description : Creates GUI which will be displayed until any key is pressed.
; ===================================================================================================
$hGui = GUICreate("Example 1 - Press any key to exit...", 400, 100)
GUISetState()
$sKeyboardState = _WinAPI_GetKeyboardState(1)
While _WinAPI_GetKeyboardState(1) = $sKeyboardState
Sleep(100)
WEnd
GUIDelete($hGui)
Sleep(500)
; #EXAMPLE 2# =======================================================================================
; Description : Creates GUI which will be displayed until the "A" key is pressed.
; ===================================================================================================
$hGui = GUICreate('Example 2 - Press "A" to exit...', 400, 200)
GUISetState()
$aKeyboardStateOld = _WinAPI_GetKeyboardState()
While 1
$aKeyboardState = _WinAPI_GetKeyboardState()
If $aKeyboardState[65] <> $aKeyboardStateOld[65] Then ExitLoop
Sleep(100)
WEnd
GUIDelete($hGui)
Sleep(500)
; #EXAMPLE 3# =======================================================================================
; Description : Creates GUI which will display the [state] and [toggle] of keys A-Z.
; ===================================================================================================
$hGui = GUICreate('Example 3 - Type...', 400, 400)
$hLabel = GUICtrlCreateLabel("", 2, 2, 396, 396)
GUISetState()
While GUIGetMsg() <> -3
$aKeyboardState = _WinAPI_GetKeyboardState()
$sKeys = "I" & @TAB & "CHR" & @TAB & "State" & @TAB & "Toogle" & @LF
For $i = 65 To 90
$sKeys &= $i & @TAB & Chr($i) & @TAB & BitAND($aKeyboardState[$i], 0xF0) & @TAB & BitAND($aKeyboardState[$i], 0x0F) & @LF
Next
GUICtrlSetData($hLabel, $sKeys)
Sleep(100)
WEnd
; #FUNCTION# =======================================================================================
; Function Name : _WinAPI_GetKeyboardState
; Description : Returns the status of the 256 virtual keys
; Syntax : _WinAPI_GetKeyboardState($iFlag=0)
; Parameters : Return Type:
; 0 - Returns an array[256]
; 1 - Returns a string
; Return values : Return Type:
; Success - Array[256] or String containing status of 256 virtual keys
; Failure - False
; ===================================================================================================
Func _WinAPI_GetKeyboardState($iFlag = 0)
Local $aDllRet, $lpKeyState = DllStructCreate("byte[256]")
$aDllRet = DllCall("User32.dll", "int", "GetKeyboardState", "ptr", DllStructGetPtr($lpKeyState))
If @error Then Return SetError(@error, 0, 0)
If $aDllRet[0] = 0 Then
Return SetError(1, 0, 0)
Else
Switch $iFlag
Case 0
Local $aReturn[256]
For $i = 1 To 256
$aReturn[$i - 1] = DllStructGetData($lpKeyState, 1, $i)
Next
Return $aReturn
Case Else
Return DllStructGetData($lpKeyState, 1)
EndSwitch
EndIf
EndFunc ;==>_WinAPI_GetKeyboardState
#include <misc.au3>
$keys = IniReadSection("keys.ini","keys")
While 1
for $x =1 to $keys[0][0]
if _ispressed($keys[$x][0]) then
MsgBox(0,"",$keys[$x][1]&" was pressed")
EndIf
next
sleep(99)
WEnd
But dunno how to check if multiple keys have been pressed.
_IsPressed checks if a key is pressed xD
The script above returns the pressed key in a MsgBox.
Use this in your script so the user can set keys easier.
NOTE:The original links which where submitted by me and credited under this username/site have been deleted. I did not back them up. These newly updated links are accredited under a different username/site but are the same exact program. Too lazy to re-compile new ones ;D Links are backed up now. 10-9-2011