Write to another programs edit box

This is a discussion on Write to another programs edit box within the Windows Programming forums, part of the Platform Specific Boards category; Is there any method you can use or someting if you want not just to execute a program, but to ...

  1. #1
    Registered User
    Join Date
    Oct 2002
    Posts
    160

    Write to another programs edit box

    Is there any method you can use or someting if you want not just to execute a program, but to maybe write something in one of the programs edit boxes?
    Well english isn't my first language, (it's instead a useless language called danish which only 5 milion people speak!!) so if you think my grammar SUCKS (it does by the way) than you're more then welcome to correct me.
    Hell I might even learn something

  2. #2
    UNBANNED OneStiffRod's Avatar
    Join Date
    Jan 2002
    Posts
    669
    I've tried this and was unnsuccessful at it. Instead of using WinExec() I'm pretty sure you'd have to use -

    CreateProcess()

    //The create process executes another application and returns a bunch of handles to the process and thread but it doesn't return any HWND's so you'd have to find a way - probably very involved- to get an HWND from the Windows of the app.
    Code:
    STARTUP_INFO *si;     //These are the STRUCTS that are filled by the
    PROCESS_INFO *pi;    //CreateProcess() fxn
    
    CreateProcess(blahh....,...)
    Your handles are stored in the STRUCTS.
    My Avatar says: "Stay in School"

    Rocco is the Boy!
    "SHUT YOUR LIPS..."

  3. #3
    Registered User MicroFiend's Avatar
    Join Date
    Nov 2002
    Posts
    80
    Edited--

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. edit box
    By beene in forum Windows Programming
    Replies: 3
    Last Post: 11-11-2006, 03:40 AM
  2. WS_HSCROLL in ES_READONLY edit box error
    By Homunculus in forum Windows Programming
    Replies: 4
    Last Post: 02-13-2006, 07:46 AM
  3. setting fixed floats in edit box
    By WaterNut in forum Windows Programming
    Replies: 4
    Last Post: 08-13-2004, 09:13 AM
  4. display a file in dropdown edit box
    By sunburnbyRA in forum Windows Programming
    Replies: 2
    Last Post: 03-10-2004, 12:58 PM
  5. Edit box question
    By learning110 in forum Windows Programming
    Replies: 6
    Last Post: 03-28-2003, 07:16 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21