Hallo liebe epvp mitglieder.
ich habe ein Problem mit meinem Code, könntet ihr euch den mal anschauen und mir sagen was ich falsch gemacht habe.
ich habe heute angefange mit autoit also bitte nicht gleich los flamen. :)
Adresse ist richtig aber im spiel ändert sich nichts.
Danke schonmal im vorraus und bitte nicht den Code zu stark kritisieren ich weis das er schrott ist und ich alles falsch gemacht habe. :)
MFG Trible22
ich habe ein Problem mit meinem Code, könntet ihr euch den mal anschauen und mir sagen was ich falsch gemacht habe.
ich habe heute angefange mit autoit also bitte nicht gleich los flamen. :)
Code:
#RequireAdmin
#include <NomadMemory.au3>
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Solitär Hack", 290, 100, 0, 0) ;121
$Input1 = GUICtrlCreateInput("", 8, 8, 121, 21)
$Button1 = GUICtrlCreateButton("Hack Points", 136, 6, 80, 25, $WS_GROUP)
$Button2 = GUICtrlCreateButton("Freeze Points Ingame",136, 32, 140, 25, $WS_GROUP)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$msg =GUIGetMsg()
Select
Case $msg = -3
Exit
EndSelect
WEnd
While 2 ;===> Points
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Case $Button1
$Value = GUICtrlRead($Input1)
SetPrivilege("SeDebugPrivilege", 1)
While Not ProcessExists("Solitaire.exe")
Sleep(200)
WEnd
$Open = _memoryopen(ProcessExists("Solitaire.exe"))
$Adresse = 0x0054A2C4
$Read = _MemoryRead($Adresse , $Open, 'dword')
$write = _MemoryWrite($Adresse, $Open,$value, 'dword')
EndSwitch
WEnd
While 3 ;===> Freeze Ingame Points
While 3=3
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Case $Button2
$Value = GUICtrlRead($Input1)
SetPrivilege("SeDebugPrivilege", 1)
While Not ProcessExists("Solitaire.exe")
Sleep(200)
WEnd
$Open = _memoryopen(ProcessExists("Solitaire.exe"))
$Adresse = 0x0054A2C4
$Read = _MemoryRead($Adresse , $Open, 'dword')
$write = _MemoryWrite($Adresse, $Open,$value, 'dword')
EndSwitch
Wend
Wend
Danke schonmal im vorraus und bitte nicht den Code zu stark kritisieren ich weis das er schrott ist und ich alles falsch gemacht habe. :)
MFG Trible22