Script Probleme

10/13/2012 00:57 AlalaGames#1
Hey Leute ich Möchte ein Trainer machen aber iwie funtz er nicht why =/ ??

Quote:
#RequireAdmin
#include <NomadMemory.au3>
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 162, 157, 831, 199)
$Checkbox1 = GUICtrlCreateCheckbox("400 Points", 48, 16, 65, 17)
$Button1 = GUICtrlCreateButton("Start", 40, 48, 75, 25)
$Button2 = GUICtrlCreateButton("Close", 40, 88, 75, 25)
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()
ToolTip("Waiting Solitaire.exe", 0, 0)
$Wait = ProcessWait("Solitaire.exe")
$Solitaire = ProcessExists("Solitaire.exe")
ToolTip("Process Found!", 0,0)
Sleep(500)
$Open = _MemoryOpen($Solitaire)
If GUICtrlRead($Checkbox1) Then
_MemoryWrite(0x005EA4D4, $Open , "400" , "4 Bytes")
Sleep(50)
Exit
EndIf
EndFunc
Bitte um hilfe oder wer wo mir mein script verbessern könnte
10/13/2012 04:49 BladeTiger12#2
PHP Code:
#RequireAdmin
#include <NomadMemory.au3>
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 GUICreate("Form1"162157831199)
$Checkbox1 GUICtrlCreateCheckbox("400 Points"48166517)
$Button1 GUICtrlCreateButton("Start"40487525)
$Button2 GUICtrlCreateButton("Close"40887525)
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
()
ToolTip("Waiting Solitaire.exe"00)
$Wait ProcessWait("Solitaire.exe")
$Solitaire ProcessExists("Solitaire.exe")
ToolTip("Process Found!"0,0)
Sleep(500)
$Open _MemoryOpen($Solitaire)
If 
GUICtrlRead($Checkbox1Then
_MemoryWrite
(0x005EA4D4$Open "400" "4 Bytes")
Sleep(50)
Exit
EndIf
EndFunc 
Also erstmal:
PHP Code:
_MemoryWrite(0x005EA4D4$Open "400" "4 Bytes"
Warum 4 Bytes?
In AutoIt heißt es: ("dword")
PHP Code:
_MemoryWrite(0x005EA4D4$Open "400" "dword"
Und ich würde bei:
PHP Code:
If GUICtrlRead($Checkbox1Then 
Das machen:
PHP Code:
If GUICtrlRead($Checkbox1) = $GUI_CHECKED Then 
Mehr eigentlich nicht.
Und da es kein Pointer ist musst du jeden Solitär neustart die neue Adresse raussuchen.
10/13/2012 09:11 H@CT0R#3
Func start, wie wärs da mit if prcessexists? So machst du processwait und processexists umsonst
10/13/2012 14:57 AlalaGames#4
Nextes Problem wie bekomme ich den Pointer so rein das wenn ich das Game schließe er sich mit Aktualisiert

Neues Script :
Quote:
##Nicht Standart##
#RequireAdmin
#include <NomadMemory.au3>
###########################
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Trainer = GUICreate("Trainer V1", 249, 145, 293, 154)
GUISetBkColor(0x808080)
$Input = GUICtrlCreateInput("Input", 8, 40, 121, 21)
$Andern = GUICtrlCreateButton("Ändern", 24, 88, 75, 41)
GUICtrlSetBkColor(-1, 0xA6CAF0)
$Close = GUICtrlCreateButton("Close", 136, 88, 75, 41)
GUICtrlSetBkColor(-1, 0xA6CAF0)
$Points = GUICtrlCreateLabel("Points", 104, 8, 33, 17)
GUICtrlSetBkColor(-1, 0x800000)
$Checkbox1 = GUICtrlCreateCheckbox("Ändern", 144, 40, 97, 17)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
##Pointer##

$Pointer = 0x000BB0E8

#############
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
#########Änderungs Abfrage!
Case $Andern

If ProcessExists("Solitaire.exe") Then
MsgBox(0,"Hack","Solitaire.exe Found!")
$PID = ProcessWait("Solitaire.exe")
$OPEN = _MemoryOpen($PID)
$Point = GUICtrlRead($Input)
If GUICtrlRead($Checkbox1) = 1 Then
_MemoryWrite($Pointer, $OPEN, $Point, "dword")
#########dword = 4 Byts##############
EndIf
Else
EndIf
##########Close
Case $Close
MsgBox(0,"Trainer","Good bye!")
Exit
###########
EndSwitch
WEnd
=) ??