Quote:
Originally Posted by ranri369
Hi, I have a problem with the script (I think) because when I enter at s4 with my hack actived, it doesn't work.
That's my script:
Code:
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("S4 Trainer by Ranri", 319, 117, 192, 124)
$Checkbox1 = GUICtrlCreateCheckbox("Inf. Sp", 32, 48, 97, 17)
$Checkbox2 = GUICtrlCreateCheckbox("200 HP", 152, 48, 97, 17)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <NomadMemory.au3>
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
_Hack()
EndSwitch
WEnd
Func _Hack()
GUISetState(@SW_HIDE)
MsgBox ( 0, "title", "text" ) ; [B]This is a message box which will appear after pressing hack button you can change the title to what you like also the text[/B]
$WAIT = ProcessWait("S4Client.exe"); [B]This will make the hack search for s4League[/B]
$PID = ProcessExists("S4Client.exe"); [B]This means he Found S4League[/B]
Sleep(500);[B]This means that after short time he will start[/B]
$OPEN = _MemoryOpen ($PID); [B]This makes the function work[/B]
If GUICtrlRead($Checkbox1) = 1 Then
_MemoryWrite(0x0048C,$OPEN,"Inf sp","long")
EndIf
Exit
I don't know where's the problem.
(Sorry for bad english)
|
Please read, do not just copy and paste :L, but here, I think this one is right, I didn't test I just edited it on notepad :
Code:
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <NomadMemory.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("S4 Trainer by Ranri", 319, 117, 192, 124)
$Checkbox1 = GUICtrlCreateCheckbox("Inf. Sp", 32, 48, 97, 17)
$Checkbox2 = GUICtrlCreateCheckbox("200 HP", 152, 48, 97, 17)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
_Hack()
EndSwitch
WEnd
Func _Hack()
GUISetState(@SW_HIDE)
MsgBox ( 0, "title", "text" ) ; This is a message box which will appear after pressing hack button you can change the title to what you like also the text
$WAIT = ProcessWait("S4Client.exe"); [B]This will make the hack search for s4League
$PID = ProcessExists("S4Client.exe"); This means he Found S4League
Sleep(500);[B]This means that after short time he will start
$OPEN = _MemoryOpen ($PID); [B]This makes the function work
If GUICtrlRead($Checkbox1) = 1 Then
_MemoryWrite(Address,$OPEN,"Value","Type")
EndIf
Exit
Note : in the address and value, you write them wrong, read the tutorial too learn!
Quote:
Originally Posted by koas45
Nice tutorial !
Ty :)
#Edit
Turns out the problem;
[Only registered and activated users can see links. Click Here To Register...]
|
Yea, it needs a memory detection bypass ;)