Re: Automating / Scripting programs


[ Follow Ups ] [ Post Followup ] [ Signature.net Forum ]

Posted by Mike Saunders on April 10, 2007 at 12:54:40:

In Reply to: Re: Automating / Scripting programs posted by Barbara Brazil on April 03, 2007 at 08:46:23:

I have started looking into this a little.
I see the COS.SendMessage function.
For initial testing I am doing it in VB.
I hope final solution is all IB program.

I have a VB program that activates Notepad then does SendMessage to send keystrokes into Notepad.
I have a VB program that enumerates all the windows, filtering only for windows that have a Class of "CometClient", getting the handles for those windows.
I can then use the handles to do a SetForegroundWindow to bring the the desired Comet Screen to the foreground.

I am thinking I would have an IB program running in one screen sending keystrokes to another comet screen.

The piece I seem to have not found yet, is how in the COS library do I get a list of the other CometScreens (windows). I have not found an enumerate windows or findwindow function that returns the handles for those windows, so i can use the SendMessage to that window.
All I can see is how to get the handle of the currenly active Comet window.

Is there a way to enumerate all windows?


Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

What is the name of the main Signature System's Product?

Comments:

Optional Link URL:
Link Title:
Optional Image URL:

You may attach up to 5 files to your followup (see below):






[ Follow Ups ] [ Post Followup ] [ Signature.net Forum ]