Hallo Lute,
Ich habe eine Frage ich will für mich einen Hack erstellen,
aber leider verändert er die Values wohl nicht, da nix passiert.
Hier das Script:
Danke Slyzze
Ich habe eine Frage ich will für mich einen Hack erstellen,
aber leider verändert er die Values wohl nicht, da nix passiert.
Hier das Script:
Code:
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <WindowsConstants.au3>
#include <NomadMemory.au3>
#include <EditConstants.au3>
#include <String.au3>
#include "GetHWID.au3"
#include <WinAPI.au3>
#include <Memory.au3>
#include <GDIPlus.au3>
#RequireAdmin
Global Const $RT_BITMAP = 2
Global Const $RT_RCDATA = 10
$hGui = GUICreate("Form1", 700, 349, 272, 167)
$Group1 = GUICtrlCreateGroup("Player", 8, 120, 145, 225)
$SPR = GUICtrlCreateCheckbox("SP Refill", 24, 176, 97, 17)
$SP = GUICtrlCreateCheckbox("Inf. SP", 24, 203, 97, 17)
$GOD = GUICtrlCreateCheckbox("Godmode", 24, 150, 97, 17)
$AMMO = GUICtrlCreateCheckbox("Inf. Ammo", 24, 130, 97, 17)
;$Pic = GUICtrlCreatePic("", 70, 0, 500, 500)
;_SetImagefromResource($Pic, "jcm", @ScriptDir & "\jcm.dll", 2)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Group2 = GUICtrlCreateGroup("Group2", 160, 120, 169, 225)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Group3 = GUICtrlCreateGroup("Group3", 336, 120, 153, 225)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Group4 = GUICtrlCreateGroup("Credits", 496, 128, 113, 41)
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUISetState(@SW_SHOW)
#cs
Do
$Msg = GUIGetMsg()
If $Msg == $Pic Then ShellExecute("s4.de.alaplaya.net")
Sleep(50)
Until $Msg == -3
#ce
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case -3
Exit
If ProcessExists("S4Client.exe") <> 0 Then
_Werte_Aendern()
EndIf
EndSwitch
WEnd
Func _Werte_Aendern()
$PID = ProcessExists("S4Client.exe")
$Open = _MemoryOpen($PID)
If GUICtrlRead($SPR) = 1 Then
_MemoryWrite(0x********, $Open, "4", "Byte")
EndIf
; Hier habe ich alles lieber rausgenomen.
_MemoryClose($Open)
Exit
EndFunc ;==>_Werte_Aendern
Func _SetImageFromResource($CtrlID, $Resname, $Resfile = -1, $ResType = 10)
;Diese Funktion basiert auf der UDF von [Only registered and activated users can see links. Click Here To Register...] und Code von [Only registered and activated users can see links. Click Here To Register...]
Local Const $IMAGE_BITMAP = 0
Local Const $STM_SETIMAGE = 0x0172
Local $hmod, $hwnd, $InfoBlock, $ResSize, $Mem, $pMem, $dll, $dll2, $hData, $pData, $pStream, $ret, $hBitmap, $pBitmap
If $Resfile = -1 Then
$hmod = _WinAPI_GetModuleHandle("")
Else
$hmod = _WinAPI_LoadLibrary($Resfile)
EndIf
If $ResType = $RT_BITMAP Then
$hBitmap = _WinAPI_LoadImage($hmod, $Resname, $IMAGE_BITMAP, 0, 0, 0)
If @error Then Return SetError(1, 0, 0)
$hwnd = GUICtrlGetHandle($CtrlID)
If $hwnd = 0 Then Return SetError(2, 0, 0)
DllCall("user32.dll", "hwnd", "SendMessage", "hwnd", $hwnd, "int", $STM_SETIMAGE, "int", $IMAGE_BITMAP, "int", $hBitmap)
If @error Then Return SetError(3, 0, 0)
Else
$InfoBlock = DllCall("kernel32.dll", "int", "FindResourceA", "int", $hmod, "str", $Resname, "long", $ResType)
If @error Then Return SetError(4, 0, 0)
$InfoBlock = $InfoBlock[0]
If $InfoBlock = 0 Then Return SetError(5, 0, 0)
$ResSize = DllCall("kernel32.dll", "dword", "SizeofResource", "int", $hmod, "int", $InfoBlock)
If @error Then Return SetError(6, 0, 0)
$ResSize = $ResSize[0]
If $ResSize = 0 Then Return SetError(7, 0, 0)
$Mem = DllCall("kernel32.dll", "int", "LoadResource", "int", $hmod, "int", $InfoBlock)
If @error Then Return SetError(8, 0, 0)
$Mem = $Mem[0]
If $Mem = 0 Then Return SetError(9, 0, 0)
$pMem = DllCall("kernel32.dll", "int", "LockResource", "int", $Mem)
If @error Then Return SetError(8, 0, 0)
$pMem = $pMem[0]
If $pMem = 0 Then Return SetError(10, 0, 0)
If $Resfile <> -1 Then DllCall("Kernel32.dll", "int", "FreeLibrary", "str", $hmod)
$hData = _MemGlobalAlloc($ResSize, 2)
$pData = _MemGlobalLock($hData)
_MemMoveMemory($pMem, $pData, $ResSize)
_MemGlobalUnlock($hData)
$ret = DllCall("ole32.dll", "int", "CreateStreamOnHGlobal", "int", $hData, "long", 1, "Int*", 0)
$pStream = $ret[3]
_GDIPlus_Startup()
$pBitmap = DllCall($ghGDIPDll, "int", "GdipCreateBitmapFromStream", "ptr", $pStream, "int*", 0)
$pBitmap = $pBitmap[2]
$hBitmap = _GDIPlus_BitmapCreateHBITMAPFromBitmap($pBitmap)
$hwnd = GUICtrlGetHandle($CtrlID)
If $hwnd = 0 Then Return SetError(11, 0, 0)
DllCall("user32.dll", "hwnd", "SendMessage", "hwnd", $hwnd, "int", $STM_SETIMAGE, "int", $IMAGE_BITMAP, "int", $hBitmap)
If @error Then Return SetError(12, 0, 0)
_GDIPlus_BitmapDispose($pBitmap)
_GDIPlus_Shutdown()
$dll = DllStructCreate("Uint", $pStream)
$dll2 = DllStructCreate("uInt", DllStructGetData($dll, 1) + 8)
DllCall("", "UInt", DllStructGetData($dll2, 1), "UInt", $pStream)
_WinAPI_DeleteObject($pStream)
$pStream = 0
_MemGlobalFree($hData)
EndIf
EndFunc ;==>_SetImageFromResource
Danke Slyzze