Unchecking Check boxes(request) + extern base + offsets

Ask for Help on Using the Language With Memory Hacking Software

Moderators: g3nuin3, SpeedWing, WhiteHat, mezzo

Unchecking Check boxes(request) + extern base + offsets

Postby SpeedWing » Tue Jan 27, 2009 2:20 am

i got these 2 functions

Code: Select all
VOID runl( HWND hOwner, HWND hCheck, BOOL bChecked ) {
    //This function will fire everytime the user checks the checkbox associated.
   
}

VOID runt( HWND hOwner, HWND hCheck, BOOL bChecked ) {
    //This function will fire everytime the user checks the checkbox associated.
}


Image

but, i do not want running speed +4 or running speed teleport, being ticked at the same time.
i want, for example: i got teleport ticked and i want +4. if i tick +4 teleport will be unticked.
is there are function for this?



My 2nd question

i am making a list with extern you know.(sorry my knowledge at this part isn't great)

Code: Select all
//Base Addy
extern DWORD base = { "", 0x0041F3FC};
//Hack Offsets

the base is ofcourse my base, i don't want to edit my base everywhere everytime the pointer changes.
but i wonder how to add 2 offsets (+0]+0x40E) to make pointer complete.
([[0041F3FC]+0]+0x40E).
User avatar
SpeedWing
Defragler
 
Posts: 2031
Joined: Tue Jan 01, 2008 1:00 am
Location: If there is a Will there is a Solution.

Postby SpeedWing » Tue Jan 27, 2009 4:15 am

i think i figured out my 2nd answer

Code: Select all
//Base Addy
extern DWORD base = { "0040F3FC", 0x0};
//Hack Offsets
extern DWORD attack1 = {"base", 0x30A};
extern DWORD attack2 = {"base", 0x30E};
extern DWORD skill = {"base", 0x4FF};
User avatar
SpeedWing
Defragler
 
Posts: 2031
Joined: Tue Jan 01, 2008 1:00 am
Location: If there is a Will there is a Solution.

Postby liqmysaq » Tue Jan 27, 2009 5:17 am

the answer to your 2nd question it would be like this:

here is your pointer: [[[[0x0026D74C]+0x280]+0x30c]+0x224]+0xD0

here is your code:

extern struct PointerExample{
BYTE bBuffer[0x280];
struct {
BYTE bBuffer[0x30C];
struct {
BYTE bBuffer[0x224];
struct {
BYTE bBuffer[0xD0];
DWORD dwValue;
} * poXObj;
} * poXObj;
} * poXObj;
} * poXBase = {"", 0x0026D74C};

and to write out in a function it would look like this:

poXBase->poXObj->poXObj->poXObj->dwValue = VALUEHERE


the way u figured would work might work, i dunno. but correct way would be:

extern DWORD AddressName = {"Module.exe", 0xOffset};

so if the address was 0040F3FC then it would be written as:

extern DWORD attack1 = {"Ares.exe", 0xF3FC};

cuz Ares.exe (should) start at 00400000, add on offset and u get 0040F3FC
User avatar
liqmysaq
I Know Your Poop
 
Posts: 538
Joined: Tue Jan 01, 2008 2:02 am

Re: Unchecking Check boxes(request) + extern base + offsets

Postby L. Spiro » Tue Jan 27, 2009 8:33 am

SpeedWing wrote:i got these 2 functions

Code: Select all
VOID runl( HWND hOwner, HWND hCheck, BOOL bChecked ) {
    //This function will fire everytime the user checks the checkbox associated.
   
}

VOID runt( HWND hOwner, HWND hCheck, BOOL bChecked ) {
    //This function will fire everytime the user checks the checkbox associated.
}


Image

but, i do not want running speed +4 or running speed teleport, being ticked at the same time.
i want, for example: i got teleport ticked and i want +4. if i tick +4 teleport will be unticked.
is there are function for this?


CheckDlgButton() to uncheck the button you do not want checked.


L. Spiro
Our songs remind you of songs you’ve never heard.
User avatar
L. Spiro
L. Spiro
 
Posts: 3129
Joined: Mon Jul 17, 2006 10:14 pm
Location: Tokyo, Japan

Re: Unchecking Check boxes(request) + extern base + offsets

Postby SpeedWing » Tue Jan 27, 2009 11:08 pm

L. Spiro wrote:
SpeedWing wrote:i got these 2 functions

Code: Select all
VOID runl( HWND hOwner, HWND hCheck, BOOL bChecked ) {
    //This function will fire everytime the user checks the checkbox associated.
   
}

VOID runt( HWND hOwner, HWND hCheck, BOOL bChecked ) {
    //This function will fire everytime the user checks the checkbox associated.
}


Image

but, i do not want running speed +4 or running speed teleport, being ticked at the same time.
i want, for example: i got teleport ticked and i want +4. if i tick +4 teleport will be unticked.
is there are function for this?


CheckDlgButton() to uncheck the button you do not want checked.


L. Spiro


could you give me an example for using this function?
( i am going to use a drop combo now, ,makes the layout cleaner and easier for me).
Image

any tips for this way?

i saw each option has a number 0 1 2 etc.
how do i make an check what option is chosen?[/code]
User avatar
SpeedWing
Defragler
 
Posts: 2031
Joined: Tue Jan 01, 2008 1:00 am
Location: If there is a Will there is a Solution.

Postby L. Spiro » Wed Jan 28, 2009 7:51 am

#1: CheckDlgButton( hWnd, BUTTON_ID, BST_UNCHECKED );


#2:
Code: Select all
// Our function for handling combo-box selection changes.
VOID ComboProc( HWND hOwner, HWND hCombo, const _TCHAR * ptcText, DWORD dwData ) {
    // Print the text that was selected in the combo box.
    PrintF( "%s: %u", ptcText, dwData );
    // For fun, set the edit box to this text.
    SetWindowText( GetDlgItem( hOwner, CTRL_EDIT ), ptcText );

    // That was really fun!
}


dwData is the value you specify. Put it in a switch case and act accordingly.


L. Spiro
Our songs remind you of songs you’ve never heard.
User avatar
L. Spiro
L. Spiro
 
Posts: 3129
Joined: Mon Jul 17, 2006 10:14 pm
Location: Tokyo, Japan

Postby SpeedWing » Wed Jan 28, 2009 5:08 pm

what incase i want to check,


Code: Select all
if( dwdata == 0) {printF("0")};
if( dwdata == 1) {printF("1")};


would this be the good way?
User avatar
SpeedWing
Defragler
 
Posts: 2031
Joined: Tue Jan 01, 2008 1:00 am
Location: If there is a Will there is a Solution.

Postby L. Spiro » Wed Jan 28, 2009 5:56 pm

The code I just showed you already prints the ID.

PrintF( "%s: %u", ptcText, dwData );



L. Spiro
Our songs remind you of songs you’ve never heard.
User avatar
L. Spiro
L. Spiro
 
Posts: 3129
Joined: Mon Jul 17, 2006 10:14 pm
Location: Tokyo, Japan

Postby SpeedWing » Thu Jan 29, 2009 4:07 am

now i got this:
Code: Select all
VOID attack( HWND hOwner, HWND hCombo, const _TCHAR * ptcText, DWORD dwData ) {
if( dwdata == 0) {

}
}


any tips on making my address locked?

Code: Select all
{
      attack1Base->dwValue = 16405;
      attack2Base->dwValue = 16405;
      skillBase->dwValue = 0;
      Sleep(1);
   }


i had something, but it would only lock my addresses once.
User avatar
SpeedWing
Defragler
 
Posts: 2031
Joined: Tue Jan 01, 2008 1:00 am
Location: If there is a Will there is a Solution.

Postby L. Spiro » Thu Jan 29, 2009 7:08 am

Loop forever in a thread.
Use a Hotkey to set a variable that causes the loop to end.


L. Spiro
Our songs remind you of songs you’ve never heard.
User avatar
L. Spiro
L. Spiro
 
Posts: 3129
Joined: Mon Jul 17, 2006 10:14 pm
Location: Tokyo, Japan

Postby SpeedWing » Thu Jan 29, 2009 10:16 pm

Edit:i got it working now

Code: Select all
BOOL bSemi

VOID attack( HWND hOwner, HWND hCombo, const _TCHAR * ptcText, DWORD dwData ) {
//SEMI
if(dwData == 0){
bSemi = !bSemi;
   
   if (bSemi == true)
   {
      HANDLE hSemi = CreateThread("Semi", 0);
      if (!hSemi) { bSemi = false; return; }
      CloseHandle(hSemi);
   }
}


//Lock Attack SEMI
VOID Semi(DWORD dwParam){
   while (bSemi == true)
   {
      attack1Base->dwValue = 16395;
      attack2Base->dwValue = 16395;
     skillBase->dwValue = 0;     
      Sleep(1);
   }
        /*eindehaakje*/}
User avatar
SpeedWing
Defragler
 
Posts: 2031
Joined: Tue Jan 01, 2008 1:00 am
Location: If there is a Will there is a Solution.


Return to Help

Who is online

Users browsing this forum: No registered users and 0 guests