Results 1 to 5 of 5
  1. #1
    h4x0rswln is back's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Posts
    415
    Reputation
    13
    Thanks
    84
    My Mood
    Cynical

    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.

  2. #2
    Void's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Inline.
    Posts
    3,198
    Reputation
    205
    Thanks
    1,445
    My Mood
    Mellow
    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.

  3. #3
    why06's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Location
    IBM
    Posts
    4,304
    Reputation
    170
    Thanks
    2,204
    My Mood
    Flirty
    If your going to do all that your better off making your own. Injectors aren't that complex.

    "Every gun that is made, every warship launched, every rocket fired signifies, in the final sense, a theft from those who hunger and are not fed, those who are cold and are not clothed. This world in arms is not spending money alone. It is spending the sweat of its laborers, the genius of its scientists, the hopes of its children. The cost of one modern heavy bomber is this: a modern brick school in more than 30 cities. It is two electric power plants, each serving a town of 60,000 population. It is two fine, fully equipped hospitals. It is some fifty miles of concrete pavement. We pay for a single fighter plane with a half million bushels of wheat. We pay for a single destroyer with new homes that could have housed more than 8,000 people. This is, I repeat, the best way of life to be found on the road the world has been taking. This is not a way of life at all, in any true sense. Under the cloud of threatening war, it is humanity hanging from a cross of iron."
    - Dwight D. Eisenhower

  4. #4
    Hell_Demon's Avatar
    Join Date
    Mar 2008
    Gender
    male
    Location
    I love causing havoc
    Posts
    3,976
    Reputation
    343
    Thanks
    4,321
    My Mood
    Cheeky
    Get and SetDlgItemText, you'll need the dialog handles tho(use Spy++ or reshacker for it)
    Ah we-a blaze the fyah, make it bun dem!

  5. #5
    h4x0rswln is back's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Posts
    415
    Reputation
    13
    Thanks
    84
    My Mood
    Cynical
    thanks guys, i have a basic idea now. it'll take me awhile to get the code right. but i can handle that.

Similar Threads

  1. [Question] How to make mods work?
    By Brig in forum Combat Arms Mod Discussion
    Replies: 2
    Last Post: 03-03-2010, 11:16 PM
  2. How to make a simple Program With Notepad
    By NuB_GhOsT in forum Programming Tutorials
    Replies: 9
    Last Post: 01-15-2010, 08:16 PM
  3. Replies: 13
    Last Post: 12-28-2009, 01:13 AM
  4. [TUT]How to make a notepad program
    By stevethehacker in forum Visual Basic Programming
    Replies: 9
    Last Post: 11-15-2009, 07:41 PM
  5. [Question] How to make a button link to a website?
    By Hax0r69 in forum Visual Basic Programming
    Replies: 8
    Last Post: 07-23-2009, 11:03 PM