Ich wollte mal versuchen ein Ingame Trainer zumachen und wollte ertmal mit Autoit anfangen und hab diesen Script hier geschrieben aber er funktioniert nicht :/
Was hab ich jetz falsch gemacht?
Was hab ich jetz falsch gemacht?
Code:
#RequireAdmin
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <NomadMemory.au3>
$Form1 = GUICreate("Form1", 251, 100, 192, 124)
$Checkbox1 = GUICtrlCreateCheckbox("SP", 40, 24, 121, 17)
GUISetState(@SW_SHOW)
While 1
$nmsg = GUIGetMsg()
Switch $nmsg
Case $gui_event_close
Exit
EndSwitch
WEnd
$pid = ProcessExists("S4Client.exe")
$open = $pid
If GUICtrlRead($checkbox1) = 1 Then
_memorywrite(0x00489A42, $open, "2348565979", "long")
ElseIf GUICtrlRead($checkbox1) = 1 Then
_memorywrite(0x00489A42, $open, "2348565977", "long")
EndIf