new question, how to make a c++ program open and ''press'' a specific button.

Posts 15 of 5 · Page 1 of 1
new question, how to make a c++ program open and ''press'' a specific button.
title says most of it.


i'm new to c++ (started two days ago) and with the help of mpgh i know how to open not only firefox, but any task, with a fairly simple code.


so my question is, how can i make it press a button?

for example, how would i make an exe that opens perx and presses inject?


and to go farther, how could i use c++ to change settings? like auto-type ''Engine.exe'' auto-type the .dll i want to inject, and then select "auto-inject" and finally (i know how to do this part) start Combat Arms?


note: dont give me the exact code, i dont want to be a copy&paste noob, make me work for it. i just need a pretyt good idea of what i'd use to do this.

night all, going to bed. hope to get a headstart on c++ tomorrow. when i get up at 1:30 p.m. that is.
You would use ShellExecute to open the program(I feel as if I said this before)
And for editing the textbox and button pressing you can use SendMessage or PostMessage to send/post messages to the program. Of course you need the window handle. Get the window handle using FindWindow.

In this case you should use FindWindowEx since you're looking for child windows.

I'm sorry I can't give examples it's like 1:30 and i'm tired.
If your going to do all that your better off making your own. Injectors aren't that complex.
Get and SetDlgItemText, you'll need the dialog handles tho(use Spy++ or reshacker for it)
thanks guys, i have a basic idea now. it'll take me awhile to get the code right. but i can handle that.
Posts 15 of 5 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?