Sign in to follow this  
Followers 0
Krypton88

AUTOITV3 Beta, variable issue, How do I change value with check box?

5 posts in this topic

Hey guys! Im still working on my memory program and im scripting it in AutoIT V3 BETA because I have to use "NomadMemory.au3"(#include) and it only will complie in BETA AutoIT3. and Im trying to figure out when the user checks the check box called "Enable" that it changes the value from + 1 to +10 (Code Snippets Below)

So as you can see the snippets below That I have made the GUI check box and tryed to make it a variable ($value) but im not sure if i did it right.... Can someone please show me how to replace the # 1 value (after the $yeah +) to the value of 10? Thanks alot!

;Heres the GUI code that im curently Using So how do i modify this so that it can change the value of 1 to the value of 10?
=============================================================================
; Includes
#include <GUIConstants.au3>
#include <NomadMemory.au3>
#include <array.au3>
#Include <Misc.au3>
#include <GuiEdit.au3>
#include <WindowsConstants.au3>
============================================================================
GUICreate(" Memory write Version1.0 BETA", 300, 230,"","", 1)
$pwn = GUICtrlCreateButton("GRAB YOUR COORDS!", 70, 95)
$status = GUICtrlCreateLabel("Click to start", 15, 10,220,40)
$value = GUICtrlCreateCheckbox( "Enable ", 75, 72) 
; ^^not sure if this is how to do it. for the check box , I was just testing but didnt work
 
; This is the code that I need to Change the $real = $yeah + 1 I need to make it $real = $yeah + 10 when the check box is checked and then back to + 1 if its un checked.
===========================================================================
Case $dire = 5
    $yeah = _MemoryRead($ptrPlayerZ , $hprocess, 'float')
$real = $yeah + 1
; there are 4 cases that will need to be changd the value of 10 instead of 1

Share this post


Link to post
Share on other sites



If you read the Helpfile then this would be very clear :)

;Heres the GUI code that im curently Using So how do i modify this so that it can change the value of 1 to the value of 10?
=============================================================================
; Includes
#include <GUIConstants.au3>
#include <NomadMemory.au3>
#include <array.au3>
#Include <Misc.au3>
#include <GuiEdit.au3>
#include <WindowsConstants.au3>
============================================================================
GUICreate("    Memory write Version1.0 BETA", 300, 230,"","", 1)
$pwn = GUICtrlCreateButton("GRAB YOUR COORDS!", 70, 95)
$status = GUICtrlCreateLabel("Click to start", 15, 10,220,40)
$value = GUICtrlCreateCheckbox( "Enable ", 75, 72)
; ^^not sure if this is how to do it. for the check box , I was just testing but didnt work

; This is the code that I need to Change the $real = $yeah + 1 I need to make it $real = $yeah + 10 when the check box is checked and then back to + 1 if its un checked.
===========================================================================
Case $dire = 5
    $yeah = _MemoryRead($ptrPlayerZ , $hprocess, 'float')
If GUICtrlRead($value) = $GUI_CHECKED Then ;Reads the state of the Checkbox, Will return $GUI_UNCHECKED if it is unticked.
    $real = $yeah + 10
Else
    $real = $yeah + 1
EndIf

Click here for the best AutoIt help possible.Currently Working on: Autoit RAT

Share this post


Link to post
Share on other sites

Do i need to put an Special #include for that $GUI_CHECKED ?

It's in GUIConstantsEx.au3, which you should already have included any time you are working with a GUI.

:)


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0