Register for your free account! | Forgot your password?

Go Back   elitepvpers > Shooter > S4 League
You last visited: Today at 06:07

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

Advertisement



coding with autoit

Discussion on coding with autoit within the S4 League forum part of the Shooter category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Sep 2017
Posts: 19
Received Thanks: 1
coding with autoit

i got a problem with overwriting memory.


_MemoryWrite(0x5AFD16,$OPEN,"9090","byte")

this is the line i don't really understand.
what should i put in the space where 9090 stands? 9090 should be the bytes i have to change, and byte is the valuetype. why won't it work?

sry for my bad english xd
coolasf2re is offline  
Old 10/04/2017, 06:02   #2



 
0x404's Avatar
 
elite*gold: 47931
The Black Market: 306/0/0
Join Date: Nov 2011
Posts: 5,746
Received Thanks: 9,131
Quote:
Originally Posted by coolasf2re View Post
i got a problem with overwriting memory.


_MemoryWrite(0x5AFD16,$OPEN,"9090","byte")

this is the line i don't really understand.
what should i put in the space where 9090 stands? 9090 should be the bytes i have to change, and byte is the valuetype. why won't it work?

sry for my bad english xd
what is this?

FUNC _YourFunction()
$IPID = PROCESSEXISTS("S4Client.exe")
$MEMOPEN = _MEMORYOPEN($IPID)
$SMODULE = "S4Client.exe"
$IOFFSET = 0x5AFD16
$BASEADDR = _MEMORYMODULEGETBASEADDRESS($IPID, $SMODULE) + $IOFFSET
_MEMORYWRITE($BASEADDR, $MEMOPEN, "9090", "byte")
_MEMORYCLOSE($MEMOPEN)
ENDFUNC

might helps you (i use 'long' instead of bytes so not ested but should work)
0x404 is offline  
Old 10/04/2017, 13:31   #3
 
elite*gold: 0
Join Date: Sep 2017
Posts: 19
Received Thanks: 1
Quote:
Originally Posted by 01001101 0100010 View Post
what is this?

FUNC _YourFunction()
$IPID = PROCESSEXISTS("S4Client.exe")
$MEMOPEN = _MEMORYOPEN($IPID)
$SMODULE = "S4Client.exe"
$IOFFSET = 0x5AFD16
$BASEADDR = _MEMORYMODULEGETBASEADDRESS($IPID, $SMODULE) + $IOFFSET
_MEMORYWRITE($BASEADDR, $MEMOPEN, "9090", "byte")
_MEMORYCLOSE($MEMOPEN)
ENDFUNC

might helps you (i use 'long' instead of bytes so not ested but should work)
this is my full function

Hack();
GUISetState(@SW_HIDE);
ToolTip("Start S4 League!",0,0);
$WAIT = ProcessWait("S4Client.exe");
$PID = ProcessExists("S4Client.exe");
Sleep(500);
$OPEN = _MemoryOpen ($PID);
If GUICtrlRead($Checkbox1) = 1 Then
_MemoryWrite(0x5AFD16,$OPEN,"9090","byte[4]");
EndIf
coolasf2re is offline  
Old 10/06/2017, 11:54   #4



 
0x404's Avatar
 
elite*gold: 47931
The Black Market: 306/0/0
Join Date: Nov 2011
Posts: 5,746
Received Thanks: 9,131
Quote:
Originally Posted by coolasf2re View Post
this is my full function

Hack();
GUISetState(@SW_HIDE);
ToolTip("Start S4 League!",0,0);
$WAIT = ProcessWait("S4Client.exe");
$PID = ProcessExists("S4Client.exe");
Sleep(500);
$OPEN = _MemoryOpen ($PID);
If GUICtrlRead($Checkbox1) = 1 Then
_MemoryWrite(0x5AFD16,$OPEN,"9090","byte[4]");
EndIf

_MemoryWrite(0x5AFD16,$OPEN,"9090","byte[4]");

wont work at all try to convert the offset from hex to dez (u can use windows calculator and set to programmers. your offset 5AFD16 - in dez = 5963030

so it should look likt this

WRITEPROCESSMEMORY(PROCESSEXISTS($PROCESS), $S4CLIENT + 5963030, "0x9090", "byte[2]") byte is 2 cause 90 is 1 and the other is 1 to = 2 bytes not 4
0x404 is offline  
Old 10/07/2017, 23:49   #5
 
elite*gold: 0
Join Date: Sep 2017
Posts: 19
Received Thanks: 1
Quote:
Originally Posted by 01001101 0100010 View Post
_MemoryWrite(0x5AFD16,$OPEN,"9090","byte[4]");

wont work at all try to convert the offset from hex to dez (u can use windows calculator and set to programmers. your offset 5AFD16 - in dez = 5963030

so it should look likt this

WRITEPROCESSMEMORY(PROCESSEXISTS($PROCESS), $S4CLIENT + 5963030, "0x9090", "byte[2]") byte is 2 cause 90 is 1 and the other is 1 to = 2 bytes not 4
the .au3, where i get _Memorywrite() from says :

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 which you want to write to. It must be in hex format (0x00000000).

so i cant/shouldnt change the offset to dez
coolasf2re is offline  
Reply


Similar Threads Similar Threads
[AutoIT] AutoIT Coding Helper
07/13/2010 - Coding Releases - 10 Replies
Wer kennt das nicht? Man schreibt und schreibt an irgendwelchen AutoIT Programmen und muss dieselben Elemente, wie zum Beispiel "Func" und "EndFunc" immer wieder schreiben. Um eine Zeitersparnis beim Programmieren zu erzielen hab ich ein kleinen aber nützliches Programm entwickelt: Den AutoIT Coding Helper Screen: http://www.imagebanana.com/img/ei072w/screen.png Sobald man auf einen dieser wunderschönen Buttons klickt erscheint im Edit Feld der zugehörige AutoIT - Befehl Den Code...



All times are GMT +1. The time now is 06:08.


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.