Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 20:47

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Help]For AutoIT

Discussion on [Help]For AutoIT within the AutoIt forum part of the Coders Den category.

Closed Thread
 
Old   #1
 
~>Kredar<~'s Avatar
 
elite*gold: 0
Join Date: Aug 2011
Posts: 19
Received Thanks: 1
[Help]For AutoIT

I create a hack for CS with Autoit but he gives error.Plz Help my


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<~", 383, 81, 192, 124)
$Checkbox1 = GUICtrlCreateCheckbox("Health Inf.", 16, 8, 73, 17)
$Button1 = GUICtrlCreateButton("Start", 136, 0, 241, 33, 0)
$Button2 = GUICtrlCreateButton("Exit", 136, 40, 241, 33, 0)
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
~>Kredar<~ is offline  
Old 08/03/2011, 20:29   #2
 
Brutalon's Avatar
 
elite*gold: 0
Join Date: Jul 2011
Posts: 995
Received Thanks: 471
Tell us the Error the Compiler gives, then I may can help you
Brutalon is offline  
Old 08/03/2011, 20:57   #3
 
BlackHybrid's Avatar
 
elite*gold: 52
The Black Market: 101/0/0
Join Date: Oct 2010
Posts: 1,998
Received Thanks: 389
I already answered you...
You use $Checkbox2 but you havent already declared it.
BlackHybrid is offline  
Old 08/03/2011, 21:12   #4
 
elite*gold: 0
Join Date: Mar 2011
Posts: 8,645
Received Thanks: 3,454
Quote:
Originally Posted by BlackHybrid View Post
I already answered you...
You use $Checkbox2 but you havent already declared it.
Ich glaube, dass kann er auch selber lesen.

Line 38
If GUICtrlRead($Checkbox1) = 1 Then
Freddy​ is offline  
Old 08/04/2011, 21:28   #5

 
Adroxxx's Avatar
 
elite*gold: 15
Join Date: Nov 2005
Posts: 13,021
Received Thanks: 5,323
Adroxxx is offline  
Thanks
1 User
Closed Thread




All times are GMT +2. The time now is 20:47.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.