Bonjour, Je viens de me lancer dans la programmation en AutoIt, je suis très motivé. J'ai commencer à me créer un trainer mais un problème de function Voici le code:
Voilà qu'est-ce qu'il ne vas pas ? Quelqu'un pourrait il me corriger et m'expliquer mon (énorme) erreur ? Merci :)
Edit : OMG j'ai mis des heures à chercher mais en fait c'est tout simplement le #include <NomadMemory.au3> que j'avais oublié
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
Global $Form1 = GUICreate("Form1", 615, 438, 192, 124)
Global $Button1 = GUICtrlCreateButton("CHEAT!", 0, 328, 611, 105)
Global $Checkbox1 = GUICtrlCreateCheckbox("Camhack", 72, 8, 105, 33)
Global $Checkbox2 = GUICtrlCreateCheckbox("Godmode", 72, 32, 73, 33)
Global $Checkbox3 = GUICtrlCreateCheckbox("SP infini", 72, 64, 65, 17)
Global $Checkbox4 = GUICtrlCreateCheckbox("1Hit Kill", 72, 88, 73, 17)
Global $Checkbox5 = GUICtrlCreateCheckbox("Tir Rapide", 72, 112, 73, 17)
Global $Checkbox6 = GUICtrlCreateCheckbox("Balles infini", 72, 136, 73, 17)
Global $Checkbox7 = GUICtrlCreateCheckbox("Cut Speed", 72, 160, 97, 25)
Global $Adrien837 = GUICtrlCreateLabel("Adrien837", 560, 312, 52, 17)
Global $Tapez_ce_que_vous_voulez_XD = GUICtrlCreateInput("Tapez_ce_que_vous_voulez_XD", 416, 0, 177, 21)
GUICtrlSetBkColor(-1, 0x3399FF)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
Func cheat()
ToolTip("En attente de S4League...", 0, 0)
ProcessWait("S4Client.exe")
$PID = ProcessExists("S4Client.exe")
Sleep(500)
$OPEN = _MEMORYOPEN($PID)
_processsuspend("Aegis.exe")
_processsuspend("Aegis64.exe")
_processsuspend("HGWC.exe")
_processsuspend("S4Client.exe")
_processsuspend("XTrap.xt")
Sleep (2000)
If GUICtrlRead ($checkbox1) = 1 Then
_MEMORYWRITE(0x00EBD28C, $OPEN, "-1", "Float")
EndIf
If GUICtrlRead ($checkbox2) = 1 Then
_MEMORYWRITE(0x00504858, $OPEN, "-1", "Float")
EndIf
If GUICtrlRead ($checkbox3) = 1 Then
_MEMORYWRITE(0x00472A02, $OPEN, "-1", "Float")
EndIf
If GUICtrlRead ($checkbox4) = 1 Then
_MEMORYWRITE(0x00505199, $OPEN, "-1", "Float")
EndIf
_memoryclose(ProcessExists("S4Client.exe"))
_processresume("Aegis.exe")
_processresume("Aegis64.exe")
_processresume("HGWC.exe")
_processresume("S4Client.exe")
_processresume("XTrap.xt")
Exit 0
Endfunc
Func _PROCESSSUSPEND($PROCESS)
$PROCESSID = ProcessExists($PROCESS)
If $PROCESSID Then
$AI_HANDLE = DllCall("kernel32.dll", "int", "OpenProcess", "int", 2035711, "int", False, "int", $PROCESSID)
$I_SUCESS = DllCall("ntdll.dll", "int", "NtSuspendProcess", "int", $AI_HANDLE[0])
DllCall("kernel32.dll", "ptr", "CloseHandle", "ptr", $AI_HANDLE)
If IsArray($I_SUCESS) Then
Return 1
Else
SetError(1)
Return 0
EndIf
Else
SetError(2)
Return 0
EndIf
EndFunc
;tuto by 0cheatero0
Func _PROCESSRESUME($PROCESS)
$PROCESSID = ProcessExists($PROCESS)
If $PROCESSID Then
$AI_HANDLE = DllCall("kernel32.dll", "int", "OpenProcess", "int", 2035711, "int", False, "int", $PROCESSID)
$I_SUCESS = DllCall("ntdll.dll", "int", "NtResumeProcess", "int", $AI_HANDLE[0])
DllCall("kernel32.dll", "ptr", "CloseHandle", "ptr", $AI_HANDLE)
If IsArray($I_SUCESS) Then
Return 1
Else
SetError(1)
Return 0
EndIf
Else
SetError(2)
Return 0
EndIf
EndFunc
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
Global $Form1 = GUICreate("Form1", 615, 438, 192, 124)
Global $Button1 = GUICtrlCreateButton("CHEAT!", 0, 328, 611, 105)
Global $Checkbox1 = GUICtrlCreateCheckbox("Camhack", 72, 8, 105, 33)
Global $Checkbox2 = GUICtrlCreateCheckbox("Godmode", 72, 32, 73, 33)
Global $Checkbox3 = GUICtrlCreateCheckbox("SP infini", 72, 64, 65, 17)
Global $Checkbox4 = GUICtrlCreateCheckbox("1Hit Kill", 72, 88, 73, 17)
Global $Checkbox5 = GUICtrlCreateCheckbox("Tir Rapide", 72, 112, 73, 17)
Global $Checkbox6 = GUICtrlCreateCheckbox("Balles infini", 72, 136, 73, 17)
Global $Checkbox7 = GUICtrlCreateCheckbox("Cut Speed", 72, 160, 97, 25)
Global $Adrien837 = GUICtrlCreateLabel("Adrien837", 560, 312, 52, 17)
Global $Tapez_ce_que_vous_voulez_XD = GUICtrlCreateInput("Tapez_ce_que_vous_voulez_XD", 416, 0, 177, 21)
GUICtrlSetBkColor(-1, 0x3399FF)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
Func cheat()
ToolTip("En attente de S4League...", 0, 0)
ProcessWait("S4Client.exe")
$PID = ProcessExists("S4Client.exe")
Sleep(500)
$OPEN = _MEMORYOPEN($PID)
_processsuspend("Aegis.exe")
_processsuspend("Aegis64.exe")
_processsuspend("HGWC.exe")
_processsuspend("S4Client.exe")
_processsuspend("XTrap.xt")
Sleep (2000)
If GUICtrlRead ($checkbox1) = 1 Then
_MEMORYWRITE(0x00EBD28C, $OPEN, "-1", "Float")
EndIf
If GUICtrlRead ($checkbox2) = 1 Then
_MEMORYWRITE(0x00504858, $OPEN, "-1", "Float")
EndIf
If GUICtrlRead ($checkbox3) = 1 Then
_MEMORYWRITE(0x00472A02, $OPEN, "-1", "Float")
EndIf
If GUICtrlRead ($checkbox4) = 1 Then
_MEMORYWRITE(0x00505199, $OPEN, "-1", "Float")
EndIf
_memoryclose(ProcessExists("S4Client.exe"))
_processresume("Aegis.exe")
_processresume("Aegis64.exe")
_processresume("HGWC.exe")
_processresume("S4Client.exe")
_processresume("XTrap.xt")
Exit 0
Endfunc
Func _PROCESSSUSPEND($PROCESS)
$PROCESSID = ProcessExists($PROCESS)
If $PROCESSID Then
$AI_HANDLE = DllCall("kernel32.dll", "int", "OpenProcess", "int", 2035711, "int", False, "int", $PROCESSID)
$I_SUCESS = DllCall("ntdll.dll", "int", "NtSuspendProcess", "int", $AI_HANDLE[0])
DllCall("kernel32.dll", "ptr", "CloseHandle", "ptr", $AI_HANDLE)
If IsArray($I_SUCESS) Then
Return 1
Else
SetError(1)
Return 0
EndIf
Else
SetError(2)
Return 0
EndIf
EndFunc
;tuto by 0cheatero0
Func _PROCESSRESUME($PROCESS)
$PROCESSID = ProcessExists($PROCESS)
If $PROCESSID Then
$AI_HANDLE = DllCall("kernel32.dll", "int", "OpenProcess", "int", 2035711, "int", False, "int", $PROCESSID)
$I_SUCESS = DllCall("ntdll.dll", "int", "NtResumeProcess", "int", $AI_HANDLE[0])
DllCall("kernel32.dll", "ptr", "CloseHandle", "ptr", $AI_HANDLE)
If IsArray($I_SUCESS) Then
Return 1
Else
SetError(1)
Return 0
EndIf
Else
SetError(2)
Return 0
EndIf
EndFunc
Edit : OMG j'ai mis des heures à chercher mais en fait c'est tout simplement le #include <NomadMemory.au3> que j'avais oublié
Last edited: