|
You last visited: Today at 06:07
Advertisement
coding with autoit
Discussion on coding with autoit within the S4 League forum part of the Shooter category.
10/03/2017, 22:15
|
#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
|
|
|
10/04/2017, 06:02
|
#2
|
elite*gold: 47931
Join Date: Nov 2011
Posts: 5,746
Received Thanks: 9,131
|
Quote:
Originally Posted by coolasf2re
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)
|
|
|
10/04/2017, 13:31
|
#3
|
elite*gold: 0
Join Date: Sep 2017
Posts: 19
Received Thanks: 1
|
Quote:
Originally Posted by 01001101 0100010
 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
|
|
|
10/06/2017, 11:54
|
#4
|
elite*gold: 47931
Join Date: Nov 2011
Posts: 5,746
Received Thanks: 9,131
|
Quote:
Originally Posted by coolasf2re
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, "0x 9090", "byte[ 2]") byte is 2 cause 90 is 1 and the other is 1 to = 2 bytes not 4
|
|
|
10/07/2017, 23:49
|
#5
|
elite*gold: 0
Join Date: Sep 2017
Posts: 19
Received Thanks: 1
|
Quote:
Originally Posted by 01001101 0100010
_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
|
|
|
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.
|
|