Problème autoit 3

    Publicités

Users Who Are Viewing This Thread (Total: 0, Members: 0, Guests: 0)

Status
Not open for further replies.

TheHardButcher

Programmeur C/C++
V
Dec 14, 2009
1,461
58
964
France
Avec ces trois modification, il semble fonctionnel !
Code:
#RequireAdmin
#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_Compile_Both=y
#AutoIt3Wrapper_UseX64=y
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
#include <NomadMemory.au3>
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("[A]pKeI Trainer", 615, 438, 192, 124)
$Checkbox1 = GUICtrlCreateCheckbox("God mode", 64, 64, 97, 17)
$Checkbox2 = GUICtrlCreateCheckbox("200hp", 424, 56, 113, 41)
$Checkbox3 = GUICtrlCreateCheckbox("fast fire", 64, 152, 97, 17)
$Checkbox4 = GUICtrlCreateCheckbox("inf sp", 432, 128, 113, 33)
$Button1 = GUICtrlCreateButton("Lancer les cheat ", 0, 216, 611, 217)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
$Button1
cheat()
Exit
EndSwitch
WEnd

Func cheat()
ToolTip("En Attente d'S4League", 0, 0)
ProcessWait("S4Client.exe")
$PID = ProcessExists("S4Client.exe")
Sleep(500)
$OPEN = _MEMORYOPEN($PID)
Sleep (2000)

If GUICtrlRead ($Godmode) = 1 Then
_MEMORYWRITE(0x00504858, $OPEN, "4226388112", "Float")
[COLOR=Red]EndIf[/COLOR]
If GUICtrlRead ($200hp) = 1 Then
_MEMORYWRITE(0x005047F4, $OPEN, "2348565979", "Float")
[COLOR=Red]EndIf[/COLOR]
If GUICtrlRead ($fastfire) = 1 Then
_MEMORYWRITE(0x0054A939, $OPEN, "990399115", "Float")
[COLOR=Red]EndIf[/COLOR]
If GUICtrlRead ($infsp) = 1 Then
_MEMORYWRITE(0x00472A02, $OPEN, "2348565979", "Float")
EndIf

Endfunc
 

-[G]riKey

Membre actif
Aug 28, 2012
103
0
221
Konoha
Merci mais j'ai toujours pareil

Godmode
Wanirng : Godmode : possiby used before déclaration

sa me fait sa jusqua _MEMORYWRITE(0x00472A02, $OPEN, "2348565979", "Float")
 
Last edited:

drov

V
Feb 27, 2012
1,427
1
944
Cette erreur surviens car tu demande à la fonction de lire la variable "godmode" qui n'exite pas ;)


transforme ton
If GUICtrlRead ($Godmode) = 1 Then
en
If GUICtrlRead ($Checkbox1) = 1 Then

et j'ai l'impression que il y a le même problème avec toutes les autres checkbox
 
Jan 6, 2010
1,308
0
942
Non loin de ce forum
Sinon, tout simplement :

PHP:
If _IsChecked($Checkbox1) Then

en ajoutant cela à la fin de votre script :

PHP:
Func _IsChecked($ToSee) ; regarde si une radio/check box est activée/cochée
	Return BitAND(GUICtrlRead($ToSee), $GUI_CHECKED) = $GUI_CHECKED
EndFunc   ;==>_IsChecked
 
Status
Not open for further replies.