Hey I'm new here and I need help with something.
I need help putting a pointer, address, and offset into a button. The button will do action whatever is in the textbox. For example:
I have 100 health in a game. I put 1000 in the textbox and click the button to make it 1000.
Okay so, so far I already have the pointer, address, and offset in the button, but how do I make it so when I input text in the textbox, it activates when I click the button?
"
I want to know how to put for example:
I put 999 in the textbox. When I click the button, the value goes to 999. If I put 10000 in the textbox, the value goes to 10000.
Your trying to make a trainer for a game? fair enough they can be quite fun, and I'm sure if you don't know this it won't be for any kind of AAA or reasonably secured online game.
So you have made a winform and have a button. Also a manual entry of the value your patching to your game memory in the onClick event handler.
All you need to do is;
1. create and add a text box (will mostly be very similar to how you created and added your button).
2. In your onClick event handler just replace the 999 value with the textbox->Text member value (of course, converted to int)
After kurokis additions I would assume you would need to grab the text from the text box and then convert that text to an int safely. In most if nto all commercial IDEs there will be a properties box for the textbox object that will list either allowed characters or character sets (ie, numeric only), you could also use a specific number container type like an incrementor box.
After doing this, I'm getting this error:
"argument of type "System::String ^" is incompatible with parameter of type "const char*"
But, when I tried this: