| View previous topic :: View next topic |
| Author |
Message |
Pro-surf Grandmaster Cheater Supreme
Reputation: 0
Joined: 02 Dec 2007 Posts: 1415 Location: Under Ur Bed , Moauahauha
|
|
| Back to top |
|
 |
Slugsnack Grandmaster Cheater Supreme
Reputation: 71
Joined: 24 Jan 2007 Posts: 1857
|
Posted: Wed Jun 24, 2009 11:44 am Post subject: |
|
|
here is one method. use SendMessage to that new dialog's dialogproc to fetch the number with GetDlgItemInt then get it to save it to a global variable
i'm sure there is a better method though tbh..
|
|
| Back to top |
|
 |
dnsi0 I post too much
Reputation: 0
Joined: 04 Jan 2007 Posts: 2674
|
Posted: Wed Jun 24, 2009 1:41 pm Post subject: Re: [Problem] Reading values from another dialogs ! C++ |
|
|
| Pro-surf wrote: | Lately iv added some new dialog into my trainer
look at the pic (attached)
ok so whenever i turn auto hp/ mp , the game freeze!
thats because the auto pot function cannot read the values from dialog10 so it takes it as NULL or something ..
i used to have this to read the HP value (EDIT4 was in the main window)
unsigned AHPValue = GetDlgItemInt(hWnd, IDC_EDIT4, NULL, FALSE);
how do i fix it ? |
I wouldn't do that. I would keep the actual value in a variable and set it to the dialog instead of relying in the text. And wow why is everyone making these "VIP" things...
|
|
| Back to top |
|
 |
Pro-surf Grandmaster Cheater Supreme
Reputation: 0
Joined: 02 Dec 2007 Posts: 1415 Location: Under Ur Bed , Moauahauha
|
Posted: Thu Jun 25, 2009 6:58 am Post subject: |
|
|
dnsi can you give me an example please im such a shity coder..
_________________
ProsTrain VIP |..........| - 80% Done im close to the finish line
 |
|
| Back to top |
|
 |
dnsi0 I post too much
Reputation: 0
Joined: 04 Jan 2007 Posts: 2674
|
Posted: Thu Jun 25, 2009 5:03 pm Post subject: |
|
|
| Pro-surf wrote: | | dnsi can you give me an example please im such a shity coder.. |
You declare a global variable like DWORD whatever. Then when you are setting, you make 2 changes. One to set the whatever declared and one to set the dialog's text. And when your accessing, your just accessing the var not the dialog text.
C++:
| Code: | DWORD a;
void SetDialogText(DWORD data){
a=data;
//I dont know how to set dialog text... so set here
}
DWORD GetDialogText(DWORD Whichone){
if(Whichone==1){
return a;
}
} |
The syntax is probably wrong...
|
|
| Back to top |
|
 |
Pro-surf Grandmaster Cheater Supreme
Reputation: 0
Joined: 02 Dec 2007 Posts: 1415 Location: Under Ur Bed , Moauahauha
|
Posted: Thu Jun 25, 2009 7:59 pm Post subject: |
|
|
oh i see thanks
_________________
ProsTrain VIP |..........| - 80% Done im close to the finish line
 |
|
| Back to top |
|
 |
|