Quote:
Originally Posted by Mrƒury
Hi,ePvP'ers ^^.
I hope you can help me with my 1st trainer.
So i created my 1st trainer for S4 League and it seems like i got a error when i finished it.
Screen
[Only registered and activated users can see links. Click Here To Register...]
Source code :
Code:
#include <ButtonConstants.au3>
#include <NomadMemory.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("First Trainer [Mrƒury]", 338, 187, 192, 124)
GUISetBkColor(0x99B4D1)
$Checkbox1 = GUICtrlCreateCheckbox("1 Hit Kill", 16, 32, 97, 17)
$Checkbox2 = GUICtrlCreateCheckbox("Inf Sp", 112, 32, 97, 17)
$Button1 = GUICtrlCreateButton("Start", 8, 88, 89, 33)
$Button2 = GUICtrlCreateButton("Exit", 104, 88, 89, 33)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
_Start()
Case $Button2
Exit
EndSwitch
WEnd
Func _Start()
$PID = ProcessExists("S4Client.exe")
$Open = _MemoryOpen($PID)
If GUICtrlRead($Checkbox1) = 1 Then
_MEMORYWRITE(0x00519439, $OPEN, "long", "0")
EndIf
_MemoryClose($Open)
Exit
EndFunc
If GUICtrlRead($Checkbox2) = 1 Then
_MEMORYWRITE(0x00481422, $OPEN, "long", "0")
EndIf
_MemoryClose($Open)
Exit
EndFunc
|
PHP Code:
#include <ButtonConstants.au3>
#include <NomadMemory.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("First Trainer [Mrƒury]", 338, 187, 192, 124)
GUISetBkColor(0x99B4D1)
$Checkbox1 = GUICtrlCreateCheckbox("1 Hit Kill", 16, 32, 97, 17)
$Checkbox2 = GUICtrlCreateCheckbox("Inf Sp", 112, 32, 97, 17)
$Button1 = GUICtrlCreateButton("Start", 8, 88, 89, 33)
$Button2 = GUICtrlCreateButton("Exit", 104, 88, 89, 33)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
_Start()
Case $Button2
Exit
EndSwitch
WEnd
Func _Start()
$PID = ProcessExists("S4Client.exe")
$Open = _MemoryOpen($PID)
If GUICtrlRead($Checkbox1) = 1 Then
_MEMORYWRITE(0x00519439, $OPEN, "long", "0")
EndIf
_MemoryClose($Open)
Exit // why do u want to exit the program here??
EndFunc
// i really dont know why you continue with the function below EndFunc...
If GUICtrlRead($Checkbox2) = 1 Then
_MEMORYWRITE(0x00481422, $OPEN, "long", "0")
EndIf
_MemoryClose($Open)
Exit // same as above
EndFunc
i would suggest you learn before you copy&paste something