[Help]AutoIT Project Creator

08/03/2011 11:36 ~>Kredar<~#1
Hello.I created a hack for CS, but not know why he gives error.We used this data:

PHP Code:
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <NomadMemory.au3>
#Region ### START Koda GUI section ### Form=
$Form1 GUICreate("Counter-Strike Health Trainer by ~>Kredar<~"38381192124)
$Checkbox1 GUICtrlCreateCheckbox("Health Inf."1687317)
$Button1 GUICtrlCreateButton("Start"1360241330)
$Button2 GUICtrlCreateButton("Exit"13640241330)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg 
GUIGetMsg()
    Switch 
$nMsg
        
Case $GUI_EVENT_CLOSE
            
Exit
        Case 
$Button1
            _Hack
()
        Case 
$Button2
            
Exit
        Case 
$Checkbox1    
            _Func
()

    EndSwitch
WEnd

Func _Hack
(); This is the functions which turns on the hacks when you start S4 League.
    
GUISetState(@SW_HIDE);
    
ToolTip("Whait for CS...",0,0); This is up in the corner which says Start S4 League!
    
$WAIT ProcessWait("hl.exe"); Waiting For S4 League
    $PID 
ProcessExists("hl.exe"); He found S4Client.exe
    Sleep
(500);Takes a little break..
    
$OPEN _MemoryOpen ($PID); The memory .. which makes the functions work.
    If 
GUICtrlRead($Checkbox1) = 1 Then
        _MemoryWrite
(0x00FE26EA,$OPEN,"0","Float");This is a float value
    EndIf
    If 
GUICtrlRead($Checkbox2) = 1 Then
        _MemoryWrite
(0x00EF37A6,$OPEN,"0","char[2]"); This is a string..
        
_MemoryWrite(0x00EF37D6,$OPEN,"0","char[2]"); This is another string with an other address.
        
_MemoryWrite(0x00EF3806,$OPEN,"0","char[2]")
    EndIf
    Exit
EndFunc


Func _Func
(); This is the function to be Health
$PID 
ProcessExists("hl.exe"); He found S4Client.exe
Sleep
(500);Takes a little break..
    
$OPEN _MemoryOpen ($PID); The memory .. which makes the functions work.
If 
GUICtrlRead($Checkbox1) = 1 Then
    _MemoryWrite
(0x0A14CFC,$OPEN,"0","char[1]"); This is a string..
    
_MemoryWrite(0x0A14D7C,$OPEN,"0","char[1]"); This is another string with an other address.
    
_MemoryWrite(0x0A14D1C,$OPEN,"0","char[1]")
    
_MemoryWrite(0x0A14CEC,$OPEN,"0","char[1]")
EndIf

EndFunc 
08/03/2011 15:06 buFFy!#2
try to create a 3rd topic. maybe u'll get help then.
08/03/2011 16:40 kknb#3
$Checkbox2
08/03/2011 17:10 ~>Kredar<~#4
Quote:
Originally posted by kknb
$Checkbox2
Yes he gives error but how to solve the problem?
08/03/2011 17:15 BlackHybrid#5
U haven't a $Checkbox2 so it isent declared.
08/04/2011 09:10 ~>Kredar<~#6
but how to solve the problem?
08/04/2011 15:22 BlackHybrid#7
Create another checkbox or change it to $Checkbox1
08/05/2011 11:28 ~>Kredar<~#8
I created another Checkbox.But gives error


PHP Code:
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <NomadMemory.au3>
#Region ### START Koda GUI section ### Form=
$Form1 GUICreate("Counter-Strike Health Trainer by ~>Kredar<~"38381192124)
$Checkbox1 GUICtrlCreateCheckbox("Health Inf."1687317)
$Button1 GUICtrlCreateButton("Start"1360241330)
$Button2 GUICtrlCreateButton("Exit"13640241330)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg 
GUIGetMsg()
    Switch 
$nMsg
        
Case $GUI_EVENT_CLOSE
            
Exit
        Case 
$Button1
            _Hack
()
        Case 
$Button2
            
Exit
        Case 
$Checkbox1    
            _Func
()

    EndSwitch
WEnd

Func _Hack
(); This is the functions which turns on the hacks when you start Counter-Strike.
    
GUISetState(@SW_HIDE);
    
ToolTip("Whait for CS...",0,0); This is up in the corner which says Start CS!
    
$WAIT ProcessWait("hl.exe"); Waiting For hl
    $PID 
ProcessExists("hl.exe"); He found hl.exe
    Sleep
(500);Takes a little break..
    
$OPEN _MemoryOpen ($PID); The memory .. which makes the functions work.
    If 
GUICtrlRead($Checkbox1) = 1 Then
        _MemoryWrite
(0x00FE26EA,$OPEN,"0","Float");This is a float value
    EndIf
    If 
GUICtrlRead($Checkbox2) = 1 Then
        _MemoryWrite
(0x00EF37A6,$OPEN,"0","char[2]"); This is a string..
        
_MemoryWrite(0x00EF37D6,$OPEN,"0","char[2]"); This is another string with an other address.
        
_MemoryWrite(0x00EF3806,$OPEN,"0","char[2]")
     EndIf
    If 
GUICtrlRead($Checkbox4) = 1 Then
       _MemoryWrite
(0x05C5B34,$OPEN,"0","Float");This is a float value
    EndIf
    
EndFunc


Func _Func
(); This is the function to be Health
$PID 
ProcessExists("hl.exe"); He found hl.exe
Sleep
(500);Takes a little break..
    
$OPEN _MemoryOpen ($PID); The memory .. which makes the functions work.
    If 
GUICtrlRead($Checkbox3) = 1 Then
       _MemoryWrite
(0x0A14CFC,$OPEN,"0","char[1]"); This is a string..
       
_MemoryWrite(0x0A14D7C,$OPEN,"0","char[1]"); This is another string with an other address.
       
_MemoryWrite(0x0A14D1C,$OPEN,"0","char[1]")
       
_MemoryWrite(0x0A14CEC,$OPEN,"0","char[1]")
    EndIf

EndFunc 
08/05/2011 11:59 BlackHybrid#9
Then you did something wrong.
$Checkbox2 = GUICtrlCreateCheckbox("...", 16, 30, 73, 17)
Put this to the other controls.
08/05/2011 15:12 ~>Kredar<~#10
Quote:
Originally posted by BlackHybrid
Then you did something wrong.
$Checkbox2 = GUICtrlCreateCheckbox("...", 16, 30, 73, 17)
Put this to the other controls.

I did as you said but still no go

PHP Code:
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <NomadMemory.au3>
#Region ### START Koda GUI section ### Form=
$Form1 GUICreate("Counter-Strike Health Trainer by ~>Kredar<~"38381192124)
$Checkbox1 GUICtrlCreateCheckbox("Health Inf."1687317)
$Checkbox2 GUICtrlCreateCheckbox("Ammo Inf."16307317)
$Button1 GUICtrlCreateButton("Start"1360241330)
$Button2 GUICtrlCreateButton("Exit"13640241330)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg 
GUIGetMsg()
    Switch 
$nMsg
        
Case $GUI_EVENT_CLOSE
            
Exit
        Case 
$Button1
            _Hack
()
        Case 
$Button2
            
Exit
        Case 
$Checkbox1    
            _Func
()

    EndSwitch
WEnd

Func _Hack
(); This is the functions which turns on the hacks when you start hl.
    
GUISetState(@SW_HIDE);
    
ToolTip("Whait for CS...",0,0); This is up in the corner which says Start hl!
    
$WAIT ProcessWait("hl.exe"); Waiting For hl
    $PID 
ProcessExists("hl.exe"); He found hl.exe
    Sleep
(500);Takes a little break..
    
$OPEN _MemoryOpen ($PID); The memory .. which makes the functions work.
    If 
GUICtrlRead($Checkbox1) = 1 Then
        _MemoryWrite
(0x00FE26EA,$OPEN,"0","Float");This is a float value
    EndIf
    If 
GUICtrlRead($Checkbox2) = 1 Then
        _MemoryWrite
(0x00EF37A6,$OPEN,"0","char[2]"); This is a string..
        
_MemoryWrite(0x00EF37D6,$OPEN,"0","char[2]"); This is another string with an other address.
        
_MemoryWrite(0x00EF3806,$OPEN,"0","char[2]")
    EndIf
    
EndFunc


Func _Func
(); This is the function to be Health
$PID 
ProcessExists("hl.exe"); He found hl.exe
Sleep
(500);Takes a little break..
    
$OPEN _MemoryOpen ($PID); The memory .. which makes the functions work.
If 
GUICtrlRead($Checkbox1) = 1 Then
    _MemoryWrite
(0x0A14CFC,$OPEN,"0","char[1]"); This is a string..
    
_MemoryWrite(0x0A14D7C,$OPEN,"0","char[1]"); This is another string with an other address.
    
_MemoryWrite(0x0A14D1C,$OPEN,"0","char[1]")
    
_MemoryWrite(0x0A14CEC,$OPEN,"0","char[1]")
  EndIf

EndFunc 
08/05/2011 16:20 BlackHybrid#11
Then try to include the SecurityConstants.au3.
There are some const in Nomad missing.
08/05/2011 16:27 KDeluxe#12
You failed at C&P?

PHP Code:
#include <GUIConstantsEx.au3>
#include <NomadMemory.au3>

GUICreate("KD"15055)
$C_Ammunition GUICtrlCreateCheckbox("Infinite Ammunition"5514025)
$C_Health GUICtrlCreateCheckbox("Infinite Health"53014025)
GUISetState()

Do
    
$ProcessId ProcessExists("hl.exe")
    If 
$ProcessId 0 Then
        $hProcess 
_MemoryOpen($ProcessId)
        If 
Not @error Then
            
If BitAND(GUICtrlRead($C_Ammunition), $GUI_CHECKEDThen
                
;Ammunition
            
EndIf

            If 
BitAND(GUICtrlRead($C_Health), $GUI_CHECKEDThen
                
;Health
            
EndIf
        EndIf

        
_MemoryClose($hProcess)
    EndIf

    
Sleep(50)
Until GUIGetMsg() == $GUI_EVENT_CLOSE 
08/05/2011 20:03 ~>Kredar<~#13
He gives error

PHP Code:
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <SecurityConstants.au3>
#include <NomadMemory.au3>
#Region ### START Koda GUI section ### Form=
$Form1 GUICreate("Counter-Strike Health Trainer by ~>Kredar<~"38381192124)
$Checkbox1 GUICtrlCreateCheckbox("Health Inf."1687317)
$Checkbox2 GUICtrlCreateCheckbox("Ammo Inf."16307317)
$Button1 GUICtrlCreateButton("Start"1360241330)
$Button2 GUICtrlCreateButton("Exit"13640241330)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg 
GUIGetMsg()
    Switch 
$nMsg
        
Case $GUI_EVENT_CLOSE
            
Exit
        Case 
$Button1
            _Hack
()
        Case 
$Button2
            
Exit
        Case 
$Checkbox1    
            _Func
()

    EndSwitch
WEnd

Func _Hack
(); This is the functions which turns on the hacks when you start hl.
    
GUISetState(@SW_HIDE);
    
ToolTip("Whait for CS...",0,0); This is up in the corner which says Start hl!
    
$WAIT ProcessWait("hl.exe"); Waiting For hl
    $PID 
ProcessExists("hl.exe"); He found hl.exe
    Sleep
(500);Takes a little break..
    
$OPEN _MemoryOpen ($PID); The memory .. which makes the functions work.
    If 
GUICtrlRead($Checkbox1) = 1 Then
        _MemoryWrite
(0x00FE26EA,$OPEN,"0","Float");This is a float value
    EndIf
    If 
GUICtrlRead($Checkbox2) = 1 Then
        _MemoryWrite
(0x00EF37A6,$OPEN,"0","char[2]"); This is a string..
        
_MemoryWrite(0x00EF37D6,$OPEN,"0","char[2]"); This is another string with an other address.
        
_MemoryWrite(0x00EF3806,$OPEN,"0","char[2]")
    EndIf
    
EndFunc


Func _Func
(); This is the function to be Health
$PID 
ProcessExists("hl.exe"); He found hl.exe
Sleep
(500);Takes a little break..
    
$OPEN _MemoryOpen ($PID); The memory .. which makes the functions work.
If 
GUICtrlRead($Checkbox1) = 1 Then
    _MemoryWrite
(0x0A14CFC,$OPEN,"0","char[1]"); This is a string..
    
_MemoryWrite(0x0A14D7C,$OPEN,"0","char[1]"); This is another string with an other address.
    
_MemoryWrite(0x0A14D1C,$OPEN,"0","char[1]")
    
_MemoryWrite(0x0A14CEC,$OPEN,"0","char[1]")
  EndIf

EndFunc 
08/05/2011 20:39 KDeluxe#14
You copied crap from a S4 hack. Use my Script and add the _MemoryWrite() functions.
08/06/2011 06:33 ~>Kredar<~#15
I want to learn to program.But I don't know how.You can help me?