Autoit[Source] Bot im Hintergrund ohne Buggy Tastatur?

05/04/2013 15:25 (Y)'#1
title

kann mir jemand helfen das die tasatur nit buggy wird bei nem bot der im hintergrund läuft?
05/04/2013 15:42 Mr.Tr33#2
Such nach der PostMessage UDF
05/04/2013 16:00 (Y)'#3
Irgendwann wurde hier mal ne source gepostet finde die aber nit mehr
05/04/2013 16:48 Mr.Tr33#4
Du kannst auch einfach mal das Internet benutzen ansttat die Seiten im Forum durchzugehen ...
[Only registered and activated users can see links. Click Here To Register...]
05/05/2013 10:05 (Y)'#5
Code:
#RequireAdmin
#include <KeyCodes.au3>
#include <PostMessage.au3>
HotKeySet("{F2}","_start")
HotKeySet("{F3}","_pause")
HotKeySet("{F4}","_stop")
HotKeySet("{F5}","_sammeln")
Global $hwnd = WinGetHandle("NosTale")

While 1
WEnd

Func _start()
	While 1
	_PostMessage_Send($hwnd, "{space}", "650")
WEnd
EndFunc

Func _pause()
	While 1
	WEnd
EndFunc




Func _stop()
	Exit
EndFunc
so sieht meine source aktuell aus ,wie baue ich eine aufhebe funktion ein habe es schon mit _PostMessage versucht mit der Taste x geht aber nicht , kann mir wer helfen?
05/05/2013 10:11 _RowLegend_#6
Die "X" Taste ist nich in der Keycodes.au3 enthalten.
[Only registered and activated users can see links. Click Here To Register...]
Einfach per Hand einfügen. :D
05/05/2013 10:32 (Y)'#7
Quote:
Originally Posted by -Chainsaw- View Post
Die "X" Taste ist nich in der Keycodes.au3 enthalten.
[Only registered and activated users can see links. Click Here To Register...]
Einfach per Hand einfügen. :D
Hab jetzt in die Keycodes.au3 das eingefügt
Code:
Global Const $VK_x			=0x59

Func _ReplaceKey($Key)
	$Key = StringReplace($Key, "{x}", $VK_x)

und in meinen mini bot
Code:
#RequireAdmin
#include <KeyCodes.au3>
#include <PostMessage.au3>
HotKeySet("{F2}","_start")
HotKeySet("{F3}","_pause")
HotKeySet("{F4}","_stop")
Global $hwnd = WinGetHandle("NosTale")

While 1
WEnd

Func _start()
	While 1
	_PostMessage_Send($hwnd, "{space}", "650")
	_PostMessage_Send($hwnd, "{c}", "400")
WEnd
EndFunc

Func _pause()
	While 1
	WEnd
EndFunc




Func _stop()
	Exit
EndFunc
geht immernoch nicht
05/05/2013 10:55 _RowLegend_#8
Quote:
Global Const $VK_x =0x58

Func _ReplaceKey($Key)
$Key = StringReplace($Key, "{x}", $VK_x)
Quote:
#RequireAdmin
#include <KeyCodes.au3>
#include <PostMessage.au3>
HotKeySet("{F2}","_start")
HotKeySet("{F3}","_pause")
HotKeySet("{F4}","_stop")
Global $hwnd = WinGetHandle("NosTale")

While 1
WEnd

Func _start()
While 1
_PostMessage_Send($hwnd, "{space}", "650")
_PostMessage_Send($hwnd, "{X}", "400")
WEnd
EndFunc

Func _pause()
While 1
WEnd
EndFunc




Func _stop()
Exit
EndFunc
Habs jetzt nicht weiter getestet.
05/05/2013 11:06 (Y)'#9
Hab mich ja komplett vertan , funktioniert jetzt .
Hatte die codes verwechselt 58 und 59 und war irgendwie auf c fixiert

Danke chainsaw