Thread: Windows Application Handles

  1. #1
    Unregistered
    Guest

    Windows Application Handles

    Hello everyone - I just began learning Win32 API programming and I want to be able to write scripts to other programs that are currently running on my system. So here are my questions:
    1) Does C++ have a scripting language to do this?
    2) How can I find the handles of other windows running on my system and integrate them into my application that I am running to manipulate that program?
    3) Once I find the handle of the window how can I send text or commands to that program?

    I just have finished with the creation of a basic Window so - for the reasons of why I want this information - my program involves some of these factors so for future reference it would greatly help me do what I need to do - TY

    If you can answer any of my questions please send your responses to my screenname at [email protected] thanks!

  2. #2
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793

    Re: Windows Application Handles

    Originally posted by Unregistered

    1) Does C++ have a scripting language to do this?
    C++ has no such scripting........You can use COM interfaces exposed by the program you are trying to control....but that depends on the program and what it offers...and its a fairly difficult thing to do in C++

    Originally posted by Unregistered

    2) How can I find the handles of other windows running on my system and integrate them into my application that I am running to manipulate that program?
    Depends on what you are trying to find.....if its a window, then FindWindow()...itf its a control, FindWindowEx()


    Originally posted by Unregistered

    3) Once I find the handle of the window how can I send text or commands to that program?
    You can send messages to indows with SendMessage()

    Before trying any of this stuff, take more time to inderstand the framework......otherwise you will have difficulty getting far

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Windows Application OnPaint() Function
    By userpingz in forum Windows Programming
    Replies: 3
    Last Post: 06-15-2009, 03:08 AM
  2. Virtual keys
    By Arkanos in forum Windows Programming
    Replies: 4
    Last Post: 12-12-2005, 10:00 AM
  3. Windows form application and Windows application
    By |Wiz| in forum Windows Programming
    Replies: 5
    Last Post: 10-01-2005, 04:14 PM
  4. How do you program a windows application?
    By Chrisab508 in forum Windows Programming
    Replies: 8
    Last Post: 10-18-2003, 10:21 AM
  5. Application Termination Problem in Windows XP
    By wasabee in forum Windows Programming
    Replies: 2
    Last Post: 04-11-2003, 12:53 PM