From: "PANNEER SELVAN" <[EMAIL PROTECTED]> > Here is a simple program which runs an exe and does two > key functions{ tab and enter}.. Basically i want to apply > these key functions after start of the exe.These keys > functions are required for successful completion of > executing the exe. Here the problem is system command > creates a child process and run the exe.. so i could not > able to give the key functions to the exe. By this program > key functions are execute after running the exe.. I want > to execute the key funtions before completion of exe > > use Win32::GuiTest qw(FindWindowLike GetWindowText > SetForegroundWindow SendKeys); > system('EXE FILE NAME");
system(1, 'EXE FILE NAME"); or use Win32::Process; # see the docs And you will probably want to sleep($aFewSeconds) to give the program a chance to start up. > SendKeys("{TAB}"); > SendKeys("{ENTER}"); > > Is there any way to solve this problem? HTH, Jenda ===== [EMAIL PROTECTED] === http://Jenda.Krynicky.cz ===== When it comes to wine, women and song, wizards are allowed to get drunk and croon as much as they like. -- Terry Pratchett in Sourcery -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]