|
You last visited: Today at 14:17
Advertisement
[AutoIt] Frage zu Pointer
Discussion on [AutoIt] Frage zu Pointer within the AutoIt forum part of the Coders Den category.
07/10/2010, 11:14
|
#1
|
elite*gold: 0
Join Date: Jul 2010
Posts: 38
Received Thanks: 36
|
[AutoIt] Frage zu Pointer
hu.hu...
ich hab beschlossen einen therad aufzumachen ,weil für ein poniter
einschreiben keine gute [TuT] gibt. (finde ich)
Bei mir sind da ein paar probleme aufgetreten:
1) Wenn ich
PHP Code:
#include <NomadMemory.au3>
oben hin schreibe meldet er mir ein fehler
PHP Code:
C:\Users\fabi\Desktop\test.au3 (2) : ==> Error opening the file.: #include <NomadMemory.au3>
( komplete script folgt unten)
2) Danach hab ich es versucht das weg zulassen (#include <NomadMemory.au3>), dann meldet er mri ein error bei
PHP Code:
Global $Open = _MemoryOpen Global $Open = _MemoryOpen^ ERROR
und....
PHP Code:
_MemoryPointerWrite($Pointer, $Open, $Offset, 16500) _MemoryPointerWrite^ ERROR
Hier noch der ganze SCRIPT:
PHP Code:
#include <GUIConstants.au3> #include <NomadMemory.au3> #RequireAdmin
#Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Test", 235, 114, 193, 125) $label1 = GUICtrlCreateLabel("OneHit", 16, 32, 58, 17) $setdmg = GUICtrlCreateButton("On", 16, 64, 163, 33, 0) GUISetState(@SW_SHOW)
Global $Pointer = 0x0069F190 Global $Open = _MemoryOpen(ProcessExists("TClient.exe")) Global $Offset[3] = [0, 0xa08, 0x484] Global $Bedingung = 0 Global $Pointer1 = 0x0069F190 Global $Open1 = _MemoryOpen(ProcessExists("TClient.exe")) Global $Offset1[3] = [0, 0xa20, 0x84] Global $Bedingung1 = 0
While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $setdmg If $Bedingung = 0 Then $Bedingung = 1 ElseIf $Bedingung = 1 Then $Bedingung = 0 EndIf EndSwitch
On() WEnd
Func On() If $Bedingung = 1 Then _MemoryPointerWrite($Pointer, $Open, $Offset, 9999999999) If $Bedingung = 1 Then _MemoryPoinerWrite($Pointer, $Open, $Offset1, 424) EndFunc
ich hoffe das mir jemand helfen kann!!? 
|
|
|
07/10/2010, 11:44
|
#2
|
elite*gold: 305
Join Date: Apr 2008
Posts: 2,422
Received Thanks: 546
|
ist die <NomadMemory.au3> auch im richtigen ordner entpackt worden?
überprüf mal die schreibweise der *.au3 in dem ordner ob sie auch mit dem namen in dem script übereinstimmt
|
|
|
07/10/2010, 11:51
|
#3
|
elite*gold: 0
Join Date: Mar 2008
Posts: 1,524
Received Thanks: 285
|
<NomadMemory.au3> muss in deinem include ordner sein
|
|
|
07/10/2010, 11:59
|
#4
|
elite*gold: 0
Join Date: Jul 2010
Posts: 38
Received Thanks: 36
|
wie meint ihr das .. ( beschäfte mich eerst seit einer woche mit autoit)
was ist ein include ordner ???
meint *ihr* in eine andere zeile rein ?
hat grad nochmal versucht zum compliden, da kommt das gleiche:
Uploaded with
|
|
|
07/10/2010, 12:34
|
#5
|
elite*gold: 0
Join Date: Oct 2009
Posts: 1,344
Received Thanks: 343
|
Du beschäftist dich erst seit einer Woche mit Autoit und willst sofort die Memory editieren? Lern erstmal GUI's zu erstellen. Ein Includeordner ist wo alle Includes drinn stehen. Und du musst die NomadMemory.au3 in deinen Includeordner verschieben. Sie befindet sich in deinem Autoit Ordner! Siehe erstmal zu dass du die Grundelemente drauf hast!
|
|
|
07/10/2010, 12:40
|
#6
|
elite*gold: 0
Join Date: Jul 2010
Posts: 38
Received Thanks: 36
|
Quote:
|
Du beschäftist dich erst seit einer Woche mit Autoit und willst sofort die Memory editieren? Lern erstmal GUI's zu erstellen. Ein Includeordner ist wo alle Includes drinn stehen. Und du musst die NomadMemory.au3 in deinen Includeordner verschieben. Sie befindet sich in deinem Autoit Ordner! Siehe erstmal zu dass du die Grundelemente drauf hast!
|
ehm naja .... ich kann dir ja mal nen bot von mir schicken
der hat nen gui mit wechsel-anzeige ... mausklicks (control) ... ist zwar für 4story ... spamb und lvl bot hab ich auch schon ... die funktioniren !!!!
das gui von dem beispiel oben hab ich nur schnell (seh schnell) gemacht
Edit./ xD jetzt geht sogar der include jetzt will er aber nicth den _MemoryPointerWrite..
Uploaded with
|
|
|
07/10/2010, 13:09
|
#7
|
elite*gold: 100
Join Date: Oct 2007
Posts: 738
Received Thanks: 485
|
Au3 hat die besten Fehler Codes - Siehe dein Bild da!
"Error: Unknown function name."
Was hat das bloß zu bedeuten, versuchen wir es mal zu übersetzen:
"Fehler: Unbekannter Funktions Name"
Huch, was bedeutet den das nun wieder?
Lade dir erst mal die richtige NomadMemory.au3-Datei runter...
BTW würde ich dir empfehlen ein Sleep(1 bis 100) in deine While Schleife zu packen, sonst frisst dein "Hack" unnötige Ressourcen.
|
|
|
07/10/2010, 13:23
|
#8
|
elite*gold: 0
Join Date: Jul 2010
Posts: 38
Received Thanks: 36
|
Quote:
Au3 hat die besten Fehler Codes - Siehe dein Bild da!
"Error: Unknown function name."
Was hat das bloß zu bedeuten, versuchen wir es mal zu übersetzen:
"Fehler: Unbekannter Funktions Name"
Huch, was bedeutet den das nun wieder?
Lade dir erst mal die richtige NomadMemory.au3-Datei runter...
BTW würde ich dir empfehlen ein Sleep(1 bis 100) in deine While Schleife zu packen, sonst frisst dein "Hack" unnötige Ressourcen.
|
die NomadMemory.au3 hab ich mir gerade gehollt ...
guter tipp mti der sleep paus thx
|
|
|
07/10/2010, 19:46
|
#9
|
elite*gold: 0
Join Date: Nov 2009
Posts: 2,210
Received Thanks: 6,755
|
Wenn du Pointer auslesen willst kannst du das auch anders machen ; o
Code:
Global $Pointer = 0x0069F190
Global $Open = _MemoryOpen(ProcessExists("TClient.exe"))
Dim $Offset[3]
$Offset[0]=0x0
$Offset[1]=0xa08
$Offset[2]=0x484
$Temp1= _MemoryRead($Pointer,$Open,"dword")
$Temp2= _MemoryRead($Temp1+$Offset[0],$Open,"dword")
$Temp3= _MemoryRead($Temp2+$Offset[1],$Open,"dword")
EndAdresse= _MemoryRead($Temp3+$Offset[2],$Open,"dword")
Müsste so gehen
|
|
|
07/11/2010, 19:08
|
#10
|
elite*gold: 0
Join Date: Mar 2009
Posts: 7,260
Received Thanks: 33,149
|
Oder man hat einfach die richtige Datei mit entsprechendem Inhalt...
Code:
#include-once
#region _Memory
;=================================================================================================
; AutoIt Version: 3.1.127 (beta)
; Language: English
; Platform: All Windows
; Author: Nomad
; Requirements: These functions will only work with beta.
;=================================================================================================
; Credits: wOuter - These functions are based on his original _Mem() functions. But they are
; easier to comprehend and more reliable. These functions are in no way a direct copy
; of his functions. His functions only provided a foundation from which these evolved.
;=================================================================================================
;
; Functions:
;
;=================================================================================================
; Function: _MemoryOpen($iv_Pid(, $iv_DesiredAccess(, $iv_InheritHandle)))
; Description: Opens a process and enables all possible access rights to the process. The
; Process ID of the process is used to specify which process to open. You must
; call this function before calling _MemoryClose(), _MemoryRead(), or _MemoryWrite().
; Parameter(s): $iv_Pid - The Process ID of the program you want to open.
; $iv_DesiredAccess - (optional) Set to 0x1F0FFF by default, which enables all
; possible access rights to the process specified by the
; Process ID.
; $if_InheritHandle - (optional) If this value is TRUE, all processes created by
; this process will inherit the access handle. Set to TRUE
; (1) by default. Set to 0 if you want it to be FALSE.
; Requirement(s): A valid process ID.
; Return Value(s): On Success - Returns an array containing the Dll handle and an open handle to
; the specified process.
; On Failure - Returns 0
; @Error - 0 = No error.
; 1 = Invalid $iv_Pid.
; 2 = Failed to open Kernel32.dll.
; 3 = Failed to open the specified process.
; Author(s): Nomad
; Note(s):
;=================================================================================================
Func _MemoryOpen($iv_Pid, $iv_DesiredAccess = 0x1F0FFF, $if_InheritHandle = 1)
If Not ProcessExists($iv_Pid) Then
SetError(1)
Return 0
EndIf
Local $ah_Handle[2] = [DllOpen('kernel32.dll')]
If @Error Then
SetError(2)
Return 0
EndIf
Local $av_OpenProcess = DllCall($ah_Handle[0], 'int', 'OpenProcess', 'int', $iv_DesiredAccess, 'int', $if_InheritHandle, 'int', $iv_Pid)
If @Error Then
DllClose($ah_Handle[0])
SetError(3)
Return 0
EndIf
$ah_Handle[1] = $av_OpenProcess[0]
Return $ah_Handle
EndFunc
;=================================================================================================
; Function: _MemoryRead($iv_Address, $ah_Handle(, $sv_Type))
; Description: Reads the value located in the memory address specified.
; Parameter(s): $iv_Address - The memory address you want to read from. It must be in hex
; format (0x00000000).
; $ah_Handle - An array containing the Dll handle and the handle of the open
; process as returned by _MemoryOpen().
; $sv_Type - (optional) The "Type" of value you intend to read. This is set to
; 'dword'(32bit(4byte) signed integer) by default. See the help file
; for DllStructCreate for all types.
; An example: If you want to read a word that is 15 characters in
; length, you would use 'char[16]'.
; Requirement(s): The $ah_Handle returned from _MemoryOpen.
; Return Value(s): On Success - Returns the value located at the specified address.
; On Failure - Returns 0
; @Error - 0 = No error.
; 1 = Invalid $ah_Handle.
; 2 = $sv_Type was not a string.
; 3 = $sv_Type is an unknown data type.
; 4 = Failed to allocate the memory needed for the DllStructure.
; 5 = Error allocating memory for $sv_Type.
; 6 = Failed to read from the specified process.
; Author(s): Nomad
; Note(s): Values returned are in Decimal format, unless specified as a 'char' type, then
; they are returned in ASCII format. Also note that size ('char[size]') for all
; 'char' types should be 1 greater than the actual size.
;=================================================================================================
Func _MemoryRead($iv_Address, $ah_Handle, $sv_Type = 'dword')
If Not IsArray($ah_Handle) Then
SetError(1)
Return 0
EndIf
Local $v_Buffer = DllStructCreate($sv_Type)
If @Error Then
SetError(@Error + 1)
Return 0
EndIf
DllCall($ah_Handle[0], 'int', 'ReadProcessMemory', 'int', $ah_Handle[1], 'int', $iv_Address, 'ptr', DllStructGetPtr($v_Buffer), 'int', DllStructGetSize($v_Buffer), 'int', '')
If Not @Error Then
Local $v_Value = DllStructGetData($v_Buffer, 1)
Return $v_Value
Else
SetError(6)
Return 0
EndIf
EndFunc
;=================================================================================================
; Function: _MemoryWrite($iv_Address, $ah_Handle, $v_Data(, $sv_Type))
; Description: Writes data to the specified memory address.
; Parameter(s): $iv_Address - The memory address you want to write to. It must be in hex
; format (0x00000000).
; $ah_Handle - An array containing the Dll handle and the handle of the open
; process as returned by _MemoryOpen().
; $v_Data - The data to be written.
; $sv_Type - (optional) The "Type" of value you intend to write. This is set to
; 'dword'(32bit(4byte) signed integer) by default. See the help file
; for DllStructCreate for all types.
; An example: If you want to write a word that is 15 characters in
; length, you would use 'char[16]'.
; Requirement(s): The $ah_Handle returned from _MemoryOpen.
; Return Value(s): On Success - Returns 1
; On Failure - Returns 0
; @Error - 0 = No error.
; 1 = Invalid $ah_Handle.
; 2 = $sv_Type was not a string.
; 3 = $sv_Type is an unknown data type.
; 4 = Failed to allocate the memory needed for the DllStructure.
; 5 = Error allocating memory for $sv_Type.
; 6 = $v_Data is not in the proper format to be used with the "Type"
; selected for $sv_Type, or it is out of range.
; 7 = Failed to write to the specified process.
; Author(s): Nomad
; Note(s): Values sent must be in Decimal format, unless specified as a 'char' type, then
; they must be in ASCII format. Also note that size ('char[size]') for all
; 'char' types should be 1 greater than the actual size.
;=================================================================================================
Func _MemoryWrite($iv_Address, $ah_Handle, $v_Data, $sv_Type = 'dword')
If Not IsArray($ah_Handle) Then
SetError(1)
Return 0
EndIf
Local $v_Buffer = DllStructCreate($sv_Type)
If @Error Then
SetError(@Error + 1)
Return 0
Else
DllStructSetData($v_Buffer, 1, $v_Data)
If @Error Then
SetError(6)
Return 0
EndIf
EndIf
DllCall($ah_Handle[0], 'int', 'WriteProcessMemory', 'int', $ah_Handle[1], 'int', $iv_Address, 'ptr', DllStructGetPtr($v_Buffer), 'int', DllStructGetSize($v_Buffer), 'int', '')
If Not @Error Then
Return 1
Else
SetError(7)
Return 0
EndIf
EndFunc
;=================================================================================================
; Function: _MemoryClose($ah_Handle)
; Description: Closes the process handle opened by using _MemoryOpen().
; Parameter(s): $ah_Handle - An array containing the Dll handle and the handle of the open
; process as returned by _MemoryOpen().
; Requirement(s): The $ah_Handle returned from _MemoryOpen.
; Return Value(s): On Success - Returns 1
; On Failure - Returns 0
; @Error - 0 = No error.
; 1 = Invalid $ah_Handle.
; 2 = Unable to close the process handle.
; Author(s): Nomad
; Note(s):
;=================================================================================================
Func _MemoryClose($ah_Handle)
If Not IsArray($ah_Handle) Then
SetError(1)
Return 0
EndIf
DllCall($ah_Handle[0], 'int', 'CloseHandle', 'int', $ah_Handle[1])
If Not @Error Then
DllClose($ah_Handle[0])
Return 1
Else
DllClose($ah_Handle[0])
SetError(2)
Return 0
EndIf
EndFunc
;=================================================================================================
; Function: _MemoryPointerRead ($iv_Address, $ah_Handle, $av_Offset(, $sv_Type))
; Description: Reads a chain of pointers and returns an array containing the destination
; address and the data at the address.
; Parameter(s): $iv_Address - The static memory address you want to start at. It must be in
; hex format (0x00000000).
; $ah_Handle - An array containing the Dll handle and the handle of the open
; process as returned by _MemoryOpen().
; $av_Offset - An array of offsets for the pointers. Each pointer must have an
; offset. If there is no offset for a pointer, enter 0 for that
; array dimension. (Offsets must be in decimal format, NOT hex!)
; $sv_Type - (optional) The "Type" of data you intend to read at the destination
; address. This is set to 'dword'(32bit(4byte) signed integer) by
; default. See the help file for DllStructCreate for all types.
; Requirement(s): The $ah_Handle returned from _MemoryOpen.
; Return Value(s): On Success - Returns an array containing the destination address and the value
; located at the address.
; On Failure - Returns 0
; @Error - 0 = No error.
; 1 = $av_Offset is not an array.
; 2 = Invalid $ah_Handle.
; 3 = $sv_Type is not a string.
; 4 = $sv_Type is an unknown data type.
; 5 = Failed to allocate the memory needed for the DllStructure.
; 6 = Error allocating memory for $sv_Type.
; 7 = Failed to read from the specified process.
; Author(s): Nomad
; Note(s): Values returned are in Decimal format, unless a 'char' type is selected.
; Set $av_Offset like this:
; $av_Offset[0] = NULL (not used)
; $av_Offset[1] = Offset for pointer 1 (all offsets must be in Decimal)
; $av_Offset[2] = Offset for pointer 2
; etc...
; (The number of array dimensions determines the number of pointers)
;=================================================================================================
Func _MemoryPointerRead ($iv_Address, $ah_Handle, $av_Offset, $sv_Type = 'dword')
If IsArray($av_Offset) Then
If IsArray($ah_Handle) Then
Local $iv_PointerCount = UBound($av_Offset) - 1
Else
SetError(2)
Return 0
EndIf
Else
SetError(1)
Return 0
EndIf
Local $iv_Data[2], $i
Local $v_Buffer = DllStructCreate('dword')
For $i = 0 to $iv_PointerCount
If $i = $iv_PointerCount Then
$v_Buffer = DllStructCreate($sv_Type)
If @Error Then
SetError(@Error + 2)
Return 0
EndIf
$iv_Address = '0x' & hex($iv_Data[1] + $av_Offset[$i])
DllCall($ah_Handle[0], 'int', 'ReadProcessMemory', 'int', $ah_Handle[1], 'int', $iv_Address, 'ptr', DllStructGetPtr($v_Buffer), 'int', DllStructGetSize($v_Buffer), 'int', '')
If @Error Then
SetError(7)
Return 0
EndIf
$iv_Data[1] = DllStructGetData($v_Buffer, 1)
ElseIf $i = 0 Then
DllCall($ah_Handle[0], 'int', 'ReadProcessMemory', 'int', $ah_Handle[1], 'int', $iv_Address, 'ptr', DllStructGetPtr($v_Buffer), 'int', DllStructGetSize($v_Buffer), 'int', '')
If @Error Then
SetError(7)
Return 0
EndIf
$iv_Data[1] = DllStructGetData($v_Buffer, 1)
Else
$iv_Address = '0x' & hex($iv_Data[1] + $av_Offset[$i])
DllCall($ah_Handle[0], 'int', 'ReadProcessMemory', 'int', $ah_Handle[1], 'int', $iv_Address, 'ptr', DllStructGetPtr($v_Buffer), 'int', DllStructGetSize($v_Buffer), 'int', '')
If @Error Then
SetError(7)
Return 0
EndIf
$iv_Data[1] = DllStructGetData($v_Buffer, 1)
EndIf
Next
$iv_Data[0] = $iv_Address
Return $iv_Data
EndFunc
;=================================================================================================
; Function: _MemoryPointerWrite ($iv_Address, $ah_Handle, $av_Offset, $v_Data(, $sv_Type))
; Description: Reads a chain of pointers and writes the data to the destination address.
; Parameter(s): $iv_Address - The static memory address you want to start at. It must be in
; hex format (0x00000000).
; $ah_Handle - An array containing the Dll handle and the handle of the open
; process as returned by _MemoryOpen().
; $av_Offset - An array of offsets for the pointers. Each pointer must have an
; offset. If there is no offset for a pointer, enter 0 for that
; array dimension.
; $v_Data - The data to be written.
; $sv_Type - (optional) The "Type" of data you intend to write at the destination
; address. This is set to 'dword'(32bit(4byte) signed integer) by
; default. See the help file for DllStructCreate for all types.
; Requirement(s): The $ah_Handle returned from _MemoryOpen.
; Return Value(s): On Success - Returns the destination address.
; On Failure - Returns 0.
; @Error - 0 = No error.
; 1 = $av_Offset is not an array.
; 2 = Invalid $ah_Handle.
; 3 = Failed to read from the specified process.
; 4 = $sv_Type is not a string.
; 5 = $sv_Type is an unknown data type.
; 6 = Failed to allocate the memory needed for the DllStructure.
; 7 = Error allocating memory for $sv_Type.
; 8 = $v_Data is not in the proper format to be used with the
; "Type" selected for $sv_Type, or it is out of range.
; 9 = Failed to write to the specified process.
; Author(s): Nomad
; Note(s): Data written is in Decimal format, unless a 'char' type is selected.
; Set $av_Offset like this:
; $av_Offset[0] = NULL (not used, doesn't matter what's entered)
; $av_Offset[1] = Offset for pointer 1 (all offsets must be in Decimal)
; $av_Offset[2] = Offset for pointer 2
; etc...
; (The number of array dimensions determines the number of pointers)
;=================================================================================================
Func _MemoryPointerWrite ($iv_Address, $ah_Handle, $av_Offset, $v_Data, $sv_Type = 'dword')
If IsArray($av_Offset) Then
If IsArray($ah_Handle) Then
Local $iv_PointerCount = UBound($av_Offset) - 1
Else
SetError(2)
Return 0
EndIf
Else
SetError(1)
Return 0
EndIf
Local $iv_StructData, $i
Local $v_Buffer = DllStructCreate('dword')
For $i = 0 to $iv_PointerCount
If $i = $iv_PointerCount Then
$v_Buffer = DllStructCreate($sv_Type)
If @Error Then
SetError(@Error + 3)
Return 0
EndIf
DllStructSetData($v_Buffer, 1, $v_Data)
If @Error Then
SetError(8)
Return 0
EndIf
$iv_Address = '0x' & hex($iv_StructData + $av_Offset[$i])
DllCall($ah_Handle[0], 'int', 'WriteProcessMemory', 'int', $ah_Handle[1], 'int', $iv_Address, 'ptr', DllStructGetPtr($v_Buffer), 'int', DllStructGetSize($v_Buffer), 'int', '')
If @Error Then
SetError(9)
Return 0
Else
Return $iv_Address
EndIf
ElseIf $i = 0 Then
DllCall($ah_Handle[0], 'int', 'ReadProcessMemory', 'int', $ah_Handle[1], 'int', $iv_Address, 'ptr', DllStructGetPtr($v_Buffer), 'int', DllStructGetSize($v_Buffer), 'int', '')
If @Error Then
SetError(3)
Return 0
EndIf
$iv_StructData = DllStructGetData($v_Buffer, 1)
Else
$iv_Address = '0x' & hex($iv_StructData + $av_Offset[$i])
DllCall($ah_Handle[0], 'int', 'ReadProcessMemory', 'int', $ah_Handle[1], 'int', $iv_Address, 'ptr', DllStructGetPtr($v_Buffer), 'int', DllStructGetSize($v_Buffer), 'int', '')
If @Error Then
SetError(3)
Return 0
EndIf
$iv_StructData = DllStructGetData($v_Buffer, 1)
EndIf
Next
EndFunc
|
|
|
07/13/2010, 16:27
|
#11
|
elite*gold: 0
Join Date: Jul 2010
Posts: 38
Received Thanks: 36
|
Quote:
|
Oder man hat einfach die richtige Datei mit entsprechendem Inhalt...
|
thx ... hast mir weiter geholfen
|
|
|
07/14/2010, 19:55
|
#12
|
elite*gold: 0
Join Date: Jul 2010
Posts: 38
Received Thanks: 36
|
FRAGE 2
jetzt hab ich weiter gescript ...
und hab jetzt ne vneue frage :
wie kann ich eine while-schleife beenden???? 
PHP Code:
;hier halt das gui ....
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
$I1 = $sl
Exit
Case $I1
Case $B1
While 1
MouseMove(847, 530)
MouseDown("left")
MouseMove(396, 211)
MouseUp("left")
MouseMove(880, 537)
MouseDown("left")
MouseMove(638, 210)
mouseUp("left")
MouseClick("left", 1450, 234)
WEnd
Case $B2
sleep(500)
;ein befel der nur die while - schleife schließt nicht das gui (oder pausiert)
EndSwitch
WEnd
und wie ich zwei befehle gleichzeitig sende....
PHP Code:
_MemoryPointerWrite($Pointer, $Open, $Offset, 16842752)
_MemoryPointerWrite($Pointer, $Open, $Offset, 65536)
für tele - hack
bitte helfen   
|
|
|
07/14/2010, 20:42
|
#13
|
elite*gold: 255
Join Date: Nov 2009
Posts: 2,900
Received Thanks: 1,408
|
Quote:
Originally Posted by NuHOplLeS
jetzt hab ich weiter gescript ...
und hab jetzt ne vneue frage :
wie kann ich eine while-schleife beenden???? 
PHP Code:
;hier halt das gui ....
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
$I1 = $sl
Exit
Case $I1
Case $B1
While 1
MouseMove(847, 530)
MouseDown("left")
MouseMove(396, 211)
MouseUp("left")
MouseMove(880, 537)
MouseDown("left")
MouseMove(638, 210)
mouseUp("left")
MouseClick("left", 1450, 234)
WEnd
Case $B2
sleep(500)
;ein befel der nur die while - schleife schließt nicht das gui (oder pausiert)
EndSwitch
WEnd
und wie ich zwei befehle gleichzeitig sende....
PHP Code:
_MemoryPointerWrite($Pointer, $Open, $Offset, 16842752)
_MemoryPointerWrite($Pointer, $Open, $Offset, 65536)
für tele - hack
bitte helfen    
|
PHP Code:
Dim $schalter=0, $hackschalter=0
;hier halt das gui ....
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
$I1 = $sl
Exit
Case $I1
Case $B1
$schalter=1
Case $B2
$schalter=0
EndSwitch
if $schalter=1 Then
MouseMove(847, 530)
MouseDown("left")
MouseMove(396, 211)
MouseUp("left")
MouseMove(880, 537)
MouseDown("left")
MouseMove(638, 210)
mouseUp("left")
MouseClick("left", 1450, 234)
EndIf
if $hackschalter=1 Then
_MemoryPointerWrite($Pointer, $Open, $Offset, 16842752)
_MemoryPointerWrite($Pointer, $Open, $Offset, 65536)
EndIf
WEnd
So sollte alles wunderbar klappen
|
|
|
07/15/2010, 14:30
|
#14
|
elite*gold: 0
Join Date: Jul 2010
Posts: 38
Received Thanks: 36
|
...
Quote:
|
So sollte alles wunderbar klappen
|
jo das mit dem GLEICHZEITIG STARTEN klappt .. dafür thx
aber ... wegen der while schleife hast das falsch verstanden ( war von mir komisch gescriben) nochmal!
PHP Code:
;hier wieder das gui
While 1 $NMG = GUIGetMsg() Switch $NMG Case $GUI_EVENT_CLOSE Exit Case $Button1 HotKeySet("1","CLOSE")
while 1 MouseMove(847, 530) MouseDown("left") MouseMove(396, 211) MouseUp("left") MouseMove(880, 537) MouseDown("left") MouseMove(638, 210) mouseUp("left") MouseClick("left", 1450, 234) WEnd WEnd While 2 MouseMove(880, 53) WEnd Func CLOSE () Exit While 1 EndFunc EndSwitch WEnd
per 1 drücken soll die while 1 sich schließen aber while 2 bleiben ! bzw das ganze gui
#Edit: die frage hat sich geklärt°°!!°°
|
|
|
07/15/2010, 20:08
|
#15
|
elite*gold: 2
Join Date: Mar 2008
Posts: 1,778
Received Thanks: 1,222
|
Das geht nicht, wenn du die While Schleife IN der anderen hast.
|
|
|
 |
|
Similar Threads
|
[Frage]CE Pointer idn Autoit eintragen
08/06/2010 - General Coding - 5 Replies
Hallo,
Ich habe heute versucht die Pointer von 4Story aus CE in AutoIt einzutragen.
Dazu wollte ich erst mal den CE Pointer to AutoIt von expo_botter verwenden aber bei mri kommt da immer ein varialen fail wenn ich auf Code generieren gehe.
Dann hab ich mir schon so ne Liste für AutoIt runtergeladen wo man nur noch die Pointer eintragen muss, aber ich weiß nicht wie mein die Pointer in autoit eingibt.
Drum wollte ich mal fragen da ich bei autoit ein Noob bin, wie man die Adressen von den...
|
AutoIT Pointer
05/02/2010 - General Coding - 3 Replies
Also ich habe nach längerem rumprobieren herausgefunden, wie ich Pointer aus CE in AutoIT benutze.
(Btw.: Irgendwie sind 99% der Tutorials dafür hier schlecht erklärt, die benutzten Includes fehlen oder sie funktionieren nicht.)
Ich habe bis jetzt den folgenden Programmcode.
#include<pointer.au3>
$pid = ProcessExists("sol.exe")
$handle=_MemoryOpen($pid)
|
Frage: Wie findet man zB UG Pointer?Speed pointer?
03/30/2010 - Kal Online - 2 Replies
kann mir einer sagen wie man UG/Speed pointer finden kann usw^^´ß#
|
Pointer für Autoit
12/07/2009 - AutoIt - 7 Replies
Hallöchen
bitte schlagt mich nicht bin schon alle möglichen tuts durchgegangen doch ich raff es einfach nicht.
http://img686.imageshack.us/img686/4291/unbenannt 1i.th.jpg
das hier ist mein Pointer doch wie schreib ich ihn nun in mein bot?
Hab keine Lust ihn immer rein zu schreib.
Wie gesagt bin schon ca 1 Woche daran und ich verzweifel langsam da ich nie ein gescheites Beispiel finde...
Hoffe einer kann mir helfen.
|
Pointer in AutoIT
11/20/2009 - AutoIt - 14 Replies
Hi, ich Programmiere grade einen Bot und komme nicht ganz weiter. Es geht darum das ich in Counter Strike mein Leben "einfrieren" will.
Dazu habe ich nun einen Pointer gefunden.
Wie kann ich nun auf den Pointer zugreifen? Habe mir schon paar Tuts angeschaut, aber schlau bin ich dadurch nicht geworden.
Mein Code:
Global $Adresse = 0x15452455
Dim $Offset =
|
All times are GMT +1. The time now is 14:17.
|
|