Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 15:41

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Auto It - Basepointer + Offsets umsetzen [Frage]

Discussion on Auto It - Basepointer + Offsets umsetzen [Frage] within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Oct 2008
Posts: 260
Received Thanks: 143
Question Auto It - Basepointer + Offsets umsetzen [Frage]

Andreas9 is offline  
Old 05/17/2013, 15:54   #2


 
MrSm!th's Avatar
 
elite*gold: 7110
Join Date: Jun 2009
Posts: 28,902
Received Thanks: 25,407
Arrow General Coding -> AutoIt

#moved
MrSm!th is offline  
Old 05/17/2013, 19:22   #3

 
elite*gold: 64
Join Date: May 2011
Posts: 1,229
Received Thanks: 854
Probier das ganze mal so:
Code:
#RequireAdmin

Func checkLife()
	$pa = 0x1661A64
	Dim $offset[2] = [0x168, 0x8]

	$pid = WinGetProcess($fenstername)

	$Module = _MemoryModuleGetBaseAddress($pid, $fenstername) + $pa


	$aufmachen = _MemoryOpen($pid)

	$ergebnis = _MemoryRead($Module, $aufmachen) + $offset[0]
	$ergebnis = _MemoryRead($ergebnis, $aufmachen) + $offset[1]

	$ergebnis = _MemoryRead($ergebnis, $aufmachen, "Float")

	$zumachen = _MemoryClose($aufmachen)
	Return $ergebnis
EndFunc   ;==>checkLife

Func _MemoryModuleGetBaseAddress($iPID, $sModule)
	If Not ProcessExists($iPID) Then Return SetError(1, 0, 0)

	If Not IsString($sModule) Then Return SetError(2, 0, 0)

	Local $PSAPI = DllOpen("psapi.dll")

	;Get Process Handle
	Local $hProcess
	Local $PERMISSION = BitOR(0x0002, 0x0400, 0x0008, 0x0010, 0x0020) ; CREATE_THREAD, QUERY_INFORMATION, VM_OPERATION, VM_READ, VM_WRITE

	If $iPID > 0 Then
		Local $hProcess = DllCall("kernel32.dll", "ptr", "OpenProcess", "dword", $PERMISSION, "int", 0, "dword", $iPID)
		If $hProcess[0] Then
			$hProcess = $hProcess[0]
		EndIf
	EndIf

	;EnumProcessModules
	Local $Modules = DllStructCreate("ptr[1024]")
	Local $aCall = DllCall($PSAPI, "int", "EnumProcessModules", "ptr", $hProcess, "ptr", DllStructGetPtr($Modules), "dword", DllStructGetSize($Modules), "dword*", 0)
	If $aCall[4] > 0 Then
		Local $iModnum = $aCall[4] / 4
		Local $aTemp
		For $i = 1 To $iModnum
			$aTemp = DllCall($PSAPI, "dword", "GetModuleBaseNameW", "ptr", $hProcess, "ptr", Ptr(DllStructGetData($Modules, 1, $i)), "wstr", "", "dword", 260)
			If $aTemp[3] = $sModule Then
				DllClose($PSAPI)
				Return Ptr(DllStructGetData($Modules, 1, $i))
			EndIf
		Next
	EndIf

	DllClose($PSAPI)
	Return SetError(-1, 0, 0)

EndFunc   ;==>_MemoryModuleGetBaseAddress
BladeTiger12 is offline  
Old 05/30/2013, 15:01   #4
 
golle12's Avatar
 
elite*gold: 29
Join Date: Aug 2011
Posts: 640
Received Thanks: 493
Welche Autoit Version hast du denn weil die UDF für den Pointer funktioniert bei den neueren Autoit Versionen nicht mehr, lad dir einfach eine ältere Version Herunter dann sollte es auch funktionieren
kannst auch auf meinen Post gehen den ich unten in der Signatur habe da ist alles näher beschrieben
golle12 is offline  
Old 05/30/2013, 15:42   #5
 
elite*gold: 0
Join Date: Mar 2009
Posts: 7,260
Received Thanks: 33,149
Oder man schreibt die UDF um, sodass sie wieder funktioniert. Die Funktionen aus der NomadMemory.au3 bzw. Pointer.au3 können z. B. standardmäßig auch nicht für 64 Bit Anwendungen verwendet werden, da die typen "falsch" sind. Könnte bei der aktuellen Version vielleicht der selbe Auslöser sein.
KDeluxe is offline  
Old 05/30/2013, 18:16   #6

 
_RowLegend_'s Avatar
 
elite*gold: 237
Join Date: Sep 2012
Posts: 984
Received Thanks: 1,202
Scheint anscheinend nicht von den Entwicklern beabsichtigt worden sein allerdings wird die Funktion Hex falsch interpretiert.
Du musst sie Mit Int() definieren, sprich aus:

PHP Code:
   $IV_ADDRESS "0x" Hex($IV_DATA[1] + $AV_OFFSET[$I]) 

wird:

PHP Code:
   $IV_ADDRESS "0x" Hex(Int($IV_DATA[1] + $AV_OFFSET[$I])) 
Den Tipp hat mir Shadow992 gegeben und seitdem funktioniert es wunderbar.
_RowLegend_ is offline  
Old 05/31/2013, 15:41   #7
 
elite*gold: 0
Join Date: Mar 2009
Posts: 7,260
Received Thanks: 33,149
$iv_Address wird bei weiterer Verwendung nicht als String verwendet, sondern als Zahl interpretiert. Wieso also unnötig eine Zahl in einen String umwandeln um diesen anschließend wieder in eine Zahl umzuwandeln? Unnötige Performanceeinbüßen.

Code:
$iv_Data + $av_Offset[$i]
reicht vollkommen aus. Das hatte BladeTiger12 schon in seinem Code berücksichtigt, wobei hier sämtliche Fehlerüberprüfung fehlt.
KDeluxe is offline  
Reply

Tags
auto it, baseadresse, basepointer, cheat engine, offset


Similar Threads Similar Threads
[WTB]Pet Hack [CE] Offsets w/HEX Value + Script w/ Auto Attack
03/10/2015 - Dekaron Trading - 3 Replies
As title says, I can pay Siz dil.
In was 10€ Psc umsetzen?!
04/09/2012 - Off Topic - 17 Replies
Leute , helft mir! ich bin die ganze zeit schon am überlegen, in was ich investiere! In Crossfire eu RagePoints (für gewinnspiele mit heftigen waffen) oder in epvp für e*gold? euer entscheidung
[CS 1.6] How to add Auto Offsets
01/08/2010 - General Coding - 2 Replies
No section for CS = void func_offsetlog() { string filepath = getOgcDirFile(cmd.argC(1)); filepath += "OffsetLog.ini"; ofstream outfile; outfile.open(filepath.c_str(), ofstream::out | ofstream::trunc); outfile<<"SoundByte : 0x" <<soundbyte<<endl; outfile<<"GlobalTime : 0x" <<globaltime<<endl;
{REQUEST} 1.654 ksro offsets of auto select
12/09/2009 - Silkroad Online - 3 Replies
I need 1.654 ksro offsets of auto select plsss some one find this **** offsets i need them
Offsets of Non-Agro and Auto Pots? No more?
05/05/2009 - Dekaron - 4 Replies
First of all i would like to greet everyone nice meeting yah all... I would like to ask if the offsets of the non-agro and Auto pots still exist because i already read... "How to find the ACTING offsets FOR CE HACKS." and \/xWx\/ state that.. The codes need to Assemble scan: Auto POTS-> cmp dword ptr ,13 Non AGRO-> movzx eax,word ptr



All times are GMT +1. The time now is 15:41.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.