Problème autoit 3

  • Partenaires

Utilisateurs qui regardent le poste (Total: 0, Members: 0, Invité: 0)

Statut
La discussion n'est pas ouverte à d'autres réponses
-[G]riKey

-[G]riKey

Level 4
Level 3
Level 2
Level 1
28 Août 2012
103
0
221
Konoha
Problème régler merci beaucoup a ceux qui mon aider
 
Dernière édition:
TheHardButcher

TheHardButcher

Programmeur C/C++
Level 5
Level 4
Level 3
Level 2
Level 1
14 Déc. 2009
1,460
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

-[G]riKey

Level 4
Level 3
Level 2
Level 1
28 Août 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")
 
Dernière édition:
drov

drov

Level 5
Level 4
Level 3
Level 2
Level 1
27 Fév. 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
 
itachi26

itachi26

Level 5
Level 4
Level 3
Level 2
Level 1
6 Janv. 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
 
-[G]riKey

-[G]riKey

Level 4
Level 3
Level 2
Level 1
28 Août 2012
103
0
221
Konoha
Merci beaucoup,
Tous marche bien
 
Dernière édition:
Statut
La discussion n'est pas ouverte à d'autres réponses