Ok i have simple question. Ok it's kinda hard for me to explain it with this bad english but i gonna try.
So i wanna to simulate buttion click in a program with memory writing(if it's impossible).
Originally Posted by Pwnographer
Ok i have simple question. Ok it's kinda hard for me to explain it with this bad english but i gonna try.
So i wanna to simulate buttion click in a program with memory writing(if it's impossible).
Definitely possible, but you need to research some things first.
Uhm..
Like that the program click the button1 every tick of the timer1?
MessageQueue does not work in DirectX I guess.
If you want to click a button in a normal application message queue (as said previously) is the way to go.
Memoryediting won't help you in this case.
Originally Posted by Blubb1337
MessageQueue does not work in DirectX I guess.
If you want to click a button in a normal application message queue (as said previously) is the way to go.
Memoryediting won't help you in this case.
I think it's unlikely that the target is a DirectX application, but it's a fair point. Clicking a button using SendMessage is fairly trivial once you understand the messaging queue and how to iterate child controls (EnumChildWindows..etc), but learning the basics can be a bit of a pain.
@Broderick answer should work.
Using spy++ to get the control id. Use GetDlgItem to get the handle from that or maybe use FindWindowEx to get the child control.
Using PostMessage or SendMessage, cant remember which one.
In the past iv used this method to auto send messages to a game server. But iv never tried clicking buttons, shouldnt be all that hard to do.
If you or anyone comes up with a solution, share it in this thread. I wouldnt mind knowing, incase this question comes up again.