lol sehe da überhaupt kein problem drinn.. in c genauso wenig. kp was du gemacht hast aber es funktioniert!
#include <Misc.au3>
$dll = DllOpen("user32.dll")
$File = FileOpen("Log.txt", 1)
;========================
;-_IsPressed Table
;========================
Const $0 = 30
Const $1 = 31
Const $2 = 32
Const $3 = 33
Const $4 = 34
Const $5 = 35
Const $6 = 36
Const $7 = 37
Const $8 = 38
Const $9 = 39
Const $A = 41
Const $B = 42
Const $C = 43
Const $D = 44
Const $E = 45
Const $F = 46
Const $G = 47
Const $H = 48
Const $I = 49
Const $J = "4A"
Const $K = "4B"
Const $L = "4C"
Const $M = "4D"
Const $N = "4E"
Const $O = "4F"
Const $P = 50
Const $Q = 51
Const $R = 52
Const $S = 53
Const $T = 54
Const $U = 55
Const $V = 56
Const $W = 57
Const $X = 58
Const $Y = 59
Const $Z = "5A"
While True
If _IsPressed($0, $dll) Then
FileWriteLine($File, "0")
Sleep(150)
EndIf
If _IsPressed($1, $dll) Then
FileWriteLine($File, "1")
Sleep(150)
EndIf
If _IsPressed($2, $dll) Then
FileWriteLine($File, "2")
Sleep(150)
EndIf
If _IsPressed($3, $dll) Then
FileWriteLine($File, "3")
Sleep(150)
EndIf
If _IsPressed($4, $dll) Then
FileWriteLine($File, "4")
Sleep(150)
EndIf
If _IsPressed($5, $dll) Then
FileWriteLine($File, "5")
Sleep(150)
EndIf
If _IsPressed($6, $dll) Then
FileWriteLine($File, "6")
Sleep(150)
EndIf
If _IsPressed($7, $dll) Then
FileWriteLine($File, "7")
Sleep(150)
EndIf
If _IsPressed($8, $dll) Then
FileWriteLine($File, "8")
Sleep(150)
EndIf
If _IsPressed($9, $dll) Then
FileWriteLine($File, "9")
Sleep(150)
EndIf
WEnd
DllClose($dll)
FileClose($File)
If _IsPressed($1, $dll) Then FileWriteLine($File, "1") while _IsPressed($1, $dll) Sleep (...) WEnd EndIf
wo/wie einfügen ? weil nen code zu posten hilft wenig ? habe keine ahnung von C++ ^^Quote:
Naja..mit C sehe ich da auch kein Problem drin, aber mit AutoIT.
Ich denke ich gehe da auch einfach falsch ran.. zu wenig EXP mit AutoIT..
Hab mal eben nen alten Versuch rausgekramt.
Code:#include <Misc.au3> $dll = DllOpen("user32.dll") $File = FileOpen("Log.txt", 1) ;======================== ;-_IsPressed Table ;======================== Const $0 = 30 Const $1 = 31 Const $2 = 32 Const $3 = 33 Const $4 = 34 Const $5 = 35 Const $6 = 36 Const $7 = 37 Const $8 = 38 Const $9 = 39 Const $A = 41 Const $B = 42 Const $C = 43 Const $D = 44 Const $E = 45 Const $F = 46 Const $G = 47 Const $H = 48 Const $I = 49 Const $J = "4A" Const $K = "4B" Const $L = "4C" Const $M = "4D" Const $N = "4E" Const $O = "4F" Const $P = 50 Const $Q = 51 Const $R = 52 Const $S = 53 Const $T = 54 Const $U = 55 Const $V = 56 Const $W = 57 Const $X = 58 Const $Y = 59 Const $Z = "5A" While True If _IsPressed($0, $dll) Then FileWriteLine($File, "0") Sleep(150) EndIf If _IsPressed($1, $dll) Then FileWriteLine($File, "1") Sleep(150) EndIf If _IsPressed($2, $dll) Then FileWriteLine($File, "2") Sleep(150) EndIf If _IsPressed($3, $dll) Then FileWriteLine($File, "3") Sleep(150) EndIf If _IsPressed($4, $dll) Then FileWriteLine($File, "4") Sleep(150) EndIf If _IsPressed($5, $dll) Then FileWriteLine($File, "5") Sleep(150) EndIf If _IsPressed($6, $dll) Then FileWriteLine($File, "6") Sleep(150) EndIf If _IsPressed($7, $dll) Then FileWriteLine($File, "7") Sleep(150) EndIf If _IsPressed($8, $dll) Then FileWriteLine($File, "8") Sleep(150) EndIf If _IsPressed($9, $dll) Then FileWriteLine($File, "9") Sleep(150) EndIf WEnd DllClose($dll) FileClose($File)
Nirgendwo.. außerdem ist das AutoIT.Quote:
wo/wie einfügen ? weil nen code zu posten hilft wenig ? habe keine ahnung von C++ ^^
Also.. Ich bin jetzt soweit das man a-z und 0-9 aufnehmen kann..Quote:
heißt ein programm das loggt wie lange und in welcher reienfolge das und das getippt ?
dein alter gedanke sag ich mal funkt bei mir leider garnicht ^^
wow nice :>Quote:
Also.. Ich bin jetzt soweit das man a-z und 0-9 aufnehmen kann..
füge jetzt noch Numpad und F-Tasten hinzu, dann nen netten GUI und dann ists fertig.
$File = FileOpen("GuildWars_Bot.au3", 1)
$dll = DllOpen("user32.dll")
Const $W = 57
If _IsPressed($W, $dll) Then
$W_Timer = TimerInit()
While _IsPressed($W, $dll)
Sleep(1)
WEnd
FileWrite($File, 'Send("' & '{w down' & '}' & '")' & @CRLF & 'Sleep(' & Int(TimerDiff($W_Timer)) & ')' & @CRLF & 'Send("' & '{w up' & '}' & '")' & @CRLF)
EndIf