#include <NoMadMemory.au3>
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("lol", 243, 112, 192, 124)
$Button1 = GUICtrlCreateButton("score", 24, 32, 193, 65, $WS_GROUP)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
$pid = WinGetProcess("Solitär")
$mem_handel = _MemoryOpen($pid)
$adresse = _MemoryRead("01007170", $mem_handel)
$adresse = _MemoryRead($adresse + "30", $mem_handel)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
case $button1
_MemoryWrite($adresse,$mem_handel,100)
EndSwitch
WEnd






