Re: Getting a handle to an external window / message box
- Posted by encephalon1 at msn.com Jan 06, 2002
- 378 views
------=_NextPart_001_0000_01C19721.02C340B0 actually, I just finished such a program; unfortunately, it wasn't in euphoria, but vbscript instead :( I was using it through client access to reach an as/400 system (the tab, tab, enter, etc.. type of interface), read the data I needed, then sending that data to an excel worksheet to print it in a decent looking format. It worked pretty well, and increased productivity for that task alone by about 300%, so if you can do it, then by all means do so. If you do happen to get a euphoria program to work in the same manner, I would be extremely interested in seeing the source- vbscript had its advantages because it was meant to do precisely what I did with it, but it didn't have the visual ease of use that I had hoped it would.. my input/output functions were limited to message boxes and input boxes. On the other hand, if you want the source for the program I'd written, just let me know. I'm only a merchandise processor myself, so it's nice to know that someone else is being completely taken advantage of other than myself. ----- Original Message ----- From: Mark Brown Subject: Getting a handle to an external window / message box Hi everyone, I am attempting to get around some of the deficiencies of the software that is used at my workplace. As I am just a storeman there is no way that I will be allowed access to the code to "fix" it (where it should have been fixed in the first place!) so I am forced to do the job externally. The software in question requires large amounts of repetitive data entry (for example, a unique number followed by 3 presses of the "tab" key and then 4 presses of "enter"....over and over again). I have had some success replacing the keypresses with a hotkey/macro utility (downloaded from web). However the next phase is going to require programming. Specifically, I need to get information regarding the feedback given by the application to the user via a message box. I am thinking that I need to get a handle to the window / message box. Is there a way I can get at the message box of an external app from my own program? Is there a way that I can get at the type of message box that is used at any given moment. Such info would be sufficient to do the job I need. Also, does anyone know of any code ( C would be OK ) which shows how to send keyboard events to an external app? It would be nice to integrate the sort of features found in the utility I am using, into my program. Sorry for the long mail. Happy New Year to all !! Mark ------=_NextPart_001_0000_01C19721.02C340B0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: 8bit <HTML><BODY BGCOLOR="#ffffff" STYLE="font:10pt verdana; border:none;background-color:#ffffff; "><DIV> </DIV> <DIV>actually, I just finished such a program; unfortunately, it wasn't in euphoria, but vbscript instead :( I was using it through client access to reach an as/400 system (the tab, tab, enter, etc.. type of interface), read the data I needed, then sending that data to an excel worksheet to print it in a decent looking format. It worked pretty well, and increased productivity for that task alone by about 300%, so if you can do it, then by all means do so.</DIV> <DIV> </DIV> <DIV>If you do happen to get a euphoria program to work in the same manner, I would be extremely interested in seeing the source- vbscript had its advantages because it was meant to do precisely what I did with it, but it didn't have the visual ease of use that I had hoped it would.. my input/output functions were limited to message boxes and input boxes.</DIV> <DIV> </DIV> <DIV>On the other hand, if you want the source for the program I'd written, just let me know. I'm only a merchandise processor myself, so it's nice to know that someone else is being completely taken advantage of other than myself.</DIV> <BLOCKQUOTE style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"> <DIV style="FONT: 10pt Arial">----- Original Message -----</DIV> <DIV style="BACKGROUND: #e4e4e4; FONT: 10pt Arial; COLOR: black"><B>From:</B> Mark Brown</DIV> <DIV style="FONT: 10pt Arial"><B>Sent:</B> Sunday, January 06, 2002 9:10 PM</DIV> <DIV style="FONT: 10pt Arial"><B>To:</B> EUforum</DIV> <DIV style="FONT: 10pt Arial"><B>Subject:</B> Getting a handle to an external window / message box</DIV> <DIV> </DIV> <META content="MSHTML 5.50.4207.2601" name=GENERATOR> <STYLE></STYLE> <PRE>============ The Euphoria Mailing List ============ </PRE> <DIV><FONT face=Arial size=2>Hi everyone,</FONT></> DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial size=2>I am attempting to get around some of the deficiencies of the software that is used at my workplace. As I am just a storeman there is no way that I will be allowed access to the code to "fix" it (where it should have been fixed in the first place!) so I am forced to do the job externally.</FONT></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial size=2>The software in question requires large amounts of repetitive data entry (for example, a unique number followed by 3 presses of the "tab" key and then 4 presses of "enter"....over and over again).</FONT></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial size=2>I have had some success replacing the keypresses with a hotkey/macro utility (downloaded from web). However the next phase is going to require programming. Specifically, I need to get information regarding the feedback given by the application to the user via a message box. I am thinking that I need to get a handle to the window / message box. Is there a way I can get at the message box of an external app from my own program?</FONT></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial size=2>Is there a way that I can get at the type of message box that is used at any given moment. Such info would be sufficient to do the job I need.</FONT></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial size=2>Also, does anyone know of any code ( C would be OK ) which shows how to send keyboard events to an external app? It would be nice to integrate the sort of features found in the utility I am using, into my program.</FONT></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial size=2>Sorry for the long mail.</FONT></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial size=2>Happy New Year to all !!</FONT></DIV> <DIV><FONT face=Arial si ------=_NextPart_001_0000_01C19721.02C340B0--