Autoit ^^

01/01/2010 22:41 ~kau~#1
Ich hatte L.W. und da dachte ich ok schreibste Tariner ...
Jetzt hab ich noch mal ne Frage wie kann ich
Quote:
$write = _MemoryWrite(0x0A9428, $hprocess, 100)
anstat der 100 das so machen das er das nimmt was man eingibt? xD
PS: Suche Autoit Lehrer/in^^
01/01/2010 23:01 AllesVergeben#2
Schau dir mal die Inputbox an. ;)
01/01/2010 23:13 ~kau~#3
Also Ich scheck das net^^ Hier mal der ganze Text
Quote:
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 168, 138, 192, 124)
$Button1 = GUICtrlCreateButton("Button1", 8, 8, 153, 41, $WS_GROUP)
$Button2 = GUICtrlCreateButton("Button2", 8, 56, 153, 41, $WS_GROUP)
$Input1 = GUICtrlCreateInput("Input1", 8, 104, 153, 21)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###


While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
case $button1
$pid = WinGetProcess("Solitär")
$hprocess = _MemoryOpen($pid)
$read = _MemoryRead(0x0A9428, $hprocess)
MsgBox(0,"Title", "Memory: " & $read)
case $button2
$pid = WinGetProcess("Solitär")
$hprocess = _MemoryOpen($pid)
$read = _MemoryRead(0x0A9428, $hprocess)
$write = _MemoryWrite(0x0A9428, $hprocess, 100)
EndSwitch
WEnd


01/01/2010 23:22 .nAno#4
PHP Code:
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 GUICreate("Form1"168138192124)
$Button1 GUICtrlCreateButton("Button1"8815341$WS_GROUP)
$Button2 GUICtrlCreateButton("Button2"85615341$WS_GROUP)
$Input1 GUICtrlCreateInput("Input1"810415321)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

$DeinWert Inputbox ( *Hier die Parameter angeben* )

While 
1
$nMsg 
GUIGetMsg()
Switch 
$nMsg
Case $GUI_EVENT_CLOSE
Exit
case 
$button1
$pid 
WinGetProcess("Solitär")
$hprocess _MemoryOpen($pid)
$read _MemoryRead(0x0A9428$hprocess)
MsgBox(0,"Title""Memory: " $read)
case 
$button2
$pid 
WinGetProcess("Solitär")
$hprocess _MemoryOpen($pid)
$read _MemoryRead(0x0A9428$hprocess)
$write _MemoryWrite(0x0A9428$hprocess$DeinWert)
EndSwitch
WEnd 
01/01/2010 23:48 ~kau~#5
ok habs THX ..ne doch net^^ SRY help pls
Quote:
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include<NoMadMemory.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("xD", 195, 112, 192, 124)
$Button1 = GUICtrlCreateButton("Info", 64, 8, 65, 65, $WS_GROUP)
$Button2 = GUICtrlCreateButton("set", 8, 8, 49, 65, $WS_GROUP)
$Button3 = GUICtrlCreateButton("run", 136, 8, 49, 65, $WS_GROUP)
$Input1 = GUICtrlCreateInput("", 8, 80, 169, 21)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

Inputbox("lol","1 bis 9999")
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
case $button1
case $button1
$pid = WinGetProcess("Solitär")
$hprocess = _MemoryOpen($pid)
$read = _MemoryRead(0x0A9428, $hprocess)
MsgBox(0,"Title", "Memory: " & $read)
case $button2
$pid = WinGetProcess("Solitär")
$hprocess = _MemoryOpen($pid)
$read = _MemoryRead(0x0A9428, $hprocess)
$write = _MemoryWrite(0x0A9428, $hprocess, 100)
case $button3
run("sol.exe")
EndSwitch
WEnd
Suche Autoit Lehrer/in pls pm me^^
01/02/2010 02:02 KDeluxe#6
Code:
#include <NoMadMemory.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <ButtonConstants.au3>
#include <WindowsConstants.au3>

$Form1 = GUICreate("xD", 195, 112, 192, 124)
$Button1 = GUICtrlCreateButton("Info", 64, 8, 65, 65, $WS_GROUP)
$Button2 = GUICtrlCreateButton("set", 8, 8, 49, 65, $WS_GROUP)
$Button3 = GUICtrlCreateButton("run", 136, 8, 49, 65, $WS_GROUP)
$Input1 = GUICtrlCreateInput("Wert hier eingeben", 8, 80, 169, 21)
GUISetState(@SW_SHOW)

While True
	$pid = WinGetProcess("Solitär")
	$hprocess = _MemoryOpen($pid)
	$nMsg = GUIGetMsg()
	Switch $nMsg
		Case $GUI_EVENT_CLOSE
			Exit
		Case $Button1
			$read = _MemoryRead(0x0A9428, $hprocess)
			MsgBox(0,"Title", "Memory: " & $read)
		Case $Button2
			$write = _MemoryWrite(0x0A9428, $hprocess, GUICtrlRead($Input1))
		Case $Button3
			Run("sol.exe")
	EndSwitch
WEnd
Habs mal ein bisschen aufgeräumt ^^
Wenn du auf "Set" drückst schreibt das Programm die Eingabe von deinem Inputfeld in den Speicher
01/02/2010 10:54 oO-D&S-Oo#7
Quote:
PS: Suche Autoit Lehrer/in^^
ja...ich würde mich auch sehr freuen, wenn mir jemand den Umgang mit Autoit beibringen/erkläen würde XÞ
01/02/2010 12:31 ~kau~#8
jo THX nochmal!^^ PS:^^ suche Lehrer/in^^@killer? oder @ .Nano
01/02/2010 12:35 HardCore.1337#9
mach ne schöne GUI und ließ den Wert mit GuiCtrlRead aus

€killer hatte die Idee auch schon. Habs nicht gesehen
01/02/2010 13:10 .nAno#10
Lehrer braucht man für sowas wie AutoIT nicht :P
Frag nen pa Leute einfach nach Source-Codes, schau se dir an und versuch die zu verstehn^^

(schau dir als beispiel mal meinen Anhang an ;) )

Mir war langweilig und ich hab bei dem Game andauernd verloren xD
Hier mal der Link da kannst dus testen [Only registered and activated users can see links. Click Here To Register...]

Ich glaub ich hab vergessen die Debugger rauszunehmen aber das hindert dich ja nicht dran den mal auszuprobieren ;)
01/02/2010 13:27 ~kau~#11
..Da ihr ja sonne tollen HElfer seit hab ich nochmal ne Aufgabe für euch/mich /kp^^
Quote:
#include<IE.au3>
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("xD", 214, 140, 192, 124)
$Button1 = GUICtrlCreateButton("Go", 8, 64, 193, 73, $WS_GROUP)
$Label1 = GUICtrlCreateLabel("ID:", 8, 16, 36, 17)
$Label2 = GUICtrlCreateLabel("PW:", 8, 40, 36, 17)
$Input1 = GUICtrlCreateInput("Hier ID", 48, 16, 153, 21)
$Input2 = GUICtrlCreateInput("Hier PW", 48, 40, 153, 21)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
case $button1
$oIE = _IECreate("https://www.battlefieldheroes.com/")
$oName = _IEFormElementGetObjByName ($oIE, "Email")
$oPass = _IEFormElementGetObjByName ($oIE, "Password")

_IEFormElementSetValue($oName,GUICtrlRead($Input1) )
_IEFormElementSetValue ($oPass,GUICtrlRead($Input2))
EndSwitch
WEnd
:awesome: THX für die Ganze Hilfe :awesome:
01/02/2010 14:30 | Moep |#12
@.nAno wie soll er sich den source anschauen, wenn du ne exe schickst?! Außerdem braucht man bei so einen Bot doch nur Pixelsearch und mousemove...

@TS fang einfach irgendwas an, wo du Bock drauf hast. Wenn du dann mal nicht weiterkommst, schau in der [Only registered and activated users can see links. Click Here To Register...] nach. Wenn du da nichts findest, dann schau hier im Forum oder im [Only registered and activated users can see links. Click Here To Register...] nach, ob deine Frage schonmal gestellt wurde. Wenn du dann immer noch nicht schlauer bist, dann poste deine Frage hier. Bitte fang nicht so an wie viele hier und poste deine Frage ohne vorher die Suche zu nutzen...


€: wo ist die Aufgabe? Kannst du auch formulieren was dir fehlt?
01/02/2010 15:08 .nAno#13
ohh mist, hab das falsche Packet erwischt^^
Ich schick dir den Source nochmal per PM wenn du möchtest

Und ja, auch wenns nur mousemove etc ist, fürn Anfang kann man da ja schonmal einiges lernen
01/02/2010 18:39 ~kau~#14
@.Nano ne brauchste net kann pixel bots schon acmhe hatte für das game schon einen xD
und @ meine aufgabe is ich mach was falsch er gibt auf der seite nix ein /vllt falsch formuliert oder so^^
01/02/2010 20:09 KDeluxe#15
Code:
#include<IE.au3>
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>

$Form1 = GUICreate("xD", 214, 140, 192, 124)
$Button1 = GUICtrlCreateButton("Go", 8, 64, 193, 73, $WS_GROUP)
$Label1 = GUICtrlCreateLabel("ID:", 8, 16, 36, 17)
$Label2 = GUICtrlCreateLabel("PW:", 8, 40, 36, 17)
$Input1 = GUICtrlCreateInput("Hier ID", 48, 16, 153, 21)
$Input2 = GUICtrlCreateInput("Hier PW", 48, 40, 153, 21)
GUISetState(@SW_SHOW)

While 1
	$nMsg = GUIGetMsg()
	Switch $nMsg
		Case $GUI_EVENT_CLOSE
			Exit
		Case $Button1
			$oIE = _IECreate("https://www.battlefieldheroes.com/user/login")
			$oName = _IEGetObjByName($oIE, "mail")
			_IEFormElementSetValue($oName, GUICtrlRead($Input1))

			$oPass = _IEGetObjByName($oIE, "password")
			_IEFormElementSetValue($oPass, GUICtrlRead($Input2))
	EndSwitch
WEnd