|
You last visited: Today at 04:33
Advertisement
[HELP]
Discussion on [HELP] within the AutoIt forum part of the Coders Den category.
05/10/2013, 18:07
|
#1
|
elite*gold: 0
Join Date: May 2013
Posts: 3
Received Thanks: 0
|
[HELP]
Hi,ePvP'ers ^^.
I hope you can help me with my 1st trainer.
So i created my 1st trainer for S4 League and it seems like i got a error when i finished it.
Screen
Source code :
Code:
#include <ButtonConstants.au3>
#include <NomadMemory.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("First Trainer [Mrƒury]", 338, 187, 192, 124)
GUISetBkColor(0x99B4D1)
$Checkbox1 = GUICtrlCreateCheckbox("1 Hit Kill", 16, 32, 97, 17)
$Checkbox2 = GUICtrlCreateCheckbox("Inf Sp", 112, 32, 97, 17)
$Button1 = GUICtrlCreateButton("Start", 8, 88, 89, 33)
$Button2 = GUICtrlCreateButton("Exit", 104, 88, 89, 33)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
_Start()
Case $Button2
Exit
EndSwitch
WEnd
Func _Start()
$PID = ProcessExists("S4Client.exe")
$Open = _MemoryOpen($PID)
If GUICtrlRead($Checkbox1) = 1 Then
_MEMORYWRITE(0x00519439, $OPEN, "long", "0")
EndIf
_MemoryClose($Open)
Exit
EndFunc
If GUICtrlRead($Checkbox2) = 1 Then
_MEMORYWRITE(0x00481422, $OPEN, "long", "0")
EndIf
_MemoryClose($Open)
Exit
EndFunc
|
|
|
05/10/2013, 18:29
|
#2
|
elite*gold: 0
Join Date: Sep 2009
Posts: 1,489
Received Thanks: 1,221
|
Quote:
Originally Posted by Mrƒury
Hi,ePvP'ers ^^.
I hope you can help me with my 1st trainer.
So i created my 1st trainer for S4 League and it seems like i got a error when i finished it.
Screen
Source code :
Code:
#include <ButtonConstants.au3>
#include <NomadMemory.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("First Trainer [Mrƒury]", 338, 187, 192, 124)
GUISetBkColor(0x99B4D1)
$Checkbox1 = GUICtrlCreateCheckbox("1 Hit Kill", 16, 32, 97, 17)
$Checkbox2 = GUICtrlCreateCheckbox("Inf Sp", 112, 32, 97, 17)
$Button1 = GUICtrlCreateButton("Start", 8, 88, 89, 33)
$Button2 = GUICtrlCreateButton("Exit", 104, 88, 89, 33)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
_Start()
Case $Button2
Exit
EndSwitch
WEnd
Func _Start()
$PID = ProcessExists("S4Client.exe")
$Open = _MemoryOpen($PID)
If GUICtrlRead($Checkbox1) = 1 Then
_MEMORYWRITE(0x00519439, $OPEN, "long", "0")
EndIf
_MemoryClose($Open)
Exit
EndFunc
If GUICtrlRead($Checkbox2) = 1 Then
_MEMORYWRITE(0x00481422, $OPEN, "long", "0")
EndIf
_MemoryClose($Open)
Exit
EndFunc
|
PHP Code:
#include <ButtonConstants.au3>
#include <NomadMemory.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("First Trainer [Mrƒury]", 338, 187, 192, 124)
GUISetBkColor(0x99B4D1)
$Checkbox1 = GUICtrlCreateCheckbox("1 Hit Kill", 16, 32, 97, 17)
$Checkbox2 = GUICtrlCreateCheckbox("Inf Sp", 112, 32, 97, 17)
$Button1 = GUICtrlCreateButton("Start", 8, 88, 89, 33)
$Button2 = GUICtrlCreateButton("Exit", 104, 88, 89, 33)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
_Start()
Case $Button2
Exit
EndSwitch
WEnd
Func _Start()
$PID = ProcessExists("S4Client.exe")
$Open = _MemoryOpen($PID)
If GUICtrlRead($Checkbox1) = 1 Then
_MEMORYWRITE(0x00519439, $OPEN, "long", "0")
EndIf
_MemoryClose($Open)
Exit // why do u want to exit the program here??
EndFunc
// i really dont know why you continue with the function below EndFunc...
If GUICtrlRead($Checkbox2) = 1 Then
_MEMORYWRITE(0x00481422, $OPEN, "long", "0")
EndIf
_MemoryClose($Open)
Exit // same as above
EndFunc
i would suggest you learn before you copy&paste something
|
|
|
05/10/2013, 18:46
|
#3
|
elite*gold: 0
Join Date: May 2013
Posts: 3
Received Thanks: 0
|
I didn't copy and pasted? o,o
It's my own created source code.
|
|
|
05/10/2013, 20:37
|
#4
|
elite*gold: 192
Join Date: May 2009
Posts: 2,227
Received Thanks: 3,262
|
This source is like
Code:
Func _doNothing($noParams = 0)
Sleep(1)
EndFunc
€: Look at this → 
€²: No, don't look at this. It's all german.
|
|
|
05/13/2013, 12:28
|
#5
|
elite*gold: 2
Join Date: Jul 2009
Posts: 14,456
Received Thanks: 4,685
|
Quote:
|
Thread with titels like: "Help!!", "Problem", "Question?!", "Autoit Question" are forbidden.
|
.
|
|
|
All times are GMT +1. The time now is 04:34.
|
|