Page 1 of 1

Unchecking Check boxes(request) + extern base + offsets

PostPosted: Tue Jan 27, 2009 2:20 am
by SpeedWing
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).

PostPosted: Tue Jan 27, 2009 4:15 am
by SpeedWing
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};

PostPosted: Tue Jan 27, 2009 5:17 am
by liqmysaq
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

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

PostPosted: Tue Jan 27, 2009 8:33 am
by L. Spiro
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

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

PostPosted: Tue Jan 27, 2009 11:08 pm
by SpeedWing
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]

PostPosted: Wed Jan 28, 2009 7:51 am
by L. Spiro
#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

PostPosted: Wed Jan 28, 2009 5:08 pm
by SpeedWing
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?

PostPosted: Wed Jan 28, 2009 5:56 pm
by L. Spiro
The code I just showed you already prints the ID.

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



L. Spiro

PostPosted: Thu Jan 29, 2009 4:07 am
by SpeedWing
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.

PostPosted: Thu Jan 29, 2009 7:08 am
by L. Spiro
Loop forever in a thread.
Use a Hotkey to set a variable that causes the loop to end.


L. Spiro

PostPosted: Thu Jan 29, 2009 10:16 pm
by SpeedWing
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*/}