Thread: Write to another programs edit box

  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
    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, 04:40 AM
  2. WS_HSCROLL in ES_READONLY edit box error
    By Homunculus in forum Windows Programming
    Replies: 4
    Last Post: 02-13-2006, 08: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, 01:58 PM
  5. Edit box question
    By learning110 in forum Windows Programming
    Replies: 6
    Last Post: 03-28-2003, 08:16 PM