Hi:
I open other program .exe from a Form 6i with Win_Api_Shell.WinExec( I'm using D2kwutil.pll ), but I don't know if the program is runnig or not( the .exe program ), I'm using Win_Api_Utility.Get_Active_Window, but the function returns the Forms handler and I need the .exe handler I have executed.
This is the code :
Declare
v_WindowHandle PLS_INTEGER;
Begin
Win_Api_Shell.WinExec( 'c:\faxpress.50\faxmain.exe c:\faxtest.txt', WIN_API.SW_SHOWMINIMIZED, false );
Win_Api_Utility.Sleep( 5000 );
Win_Api_Utility.Get_Active_Window( true )
Win_Api_Shell.SendKeys( v_WindowHandle, :block.txtnombre||'^%2'||:block.txtcompany||'^%2'||:block.txtfaxemail||'{Enter}');
End;
thank a lot.
Paholi
I open other program .exe from a Form 6i with Win_Api_Shell.WinExec( I'm using D2kwutil.pll ), but I don't know if the program is runnig or not( the .exe program ), I'm using Win_Api_Utility.Get_Active_Window, but the function returns the Forms handler and I need the .exe handler I have executed.
This is the code :
Declare
v_WindowHandle PLS_INTEGER;
Begin
Win_Api_Shell.WinExec( 'c:\faxpress.50\faxmain.exe c:\faxtest.txt', WIN_API.SW_SHOWMINIMIZED, false );
Win_Api_Utility.Sleep( 5000 );
Win_Api_Utility.Get_Active_Window( true )
Win_Api_Shell.SendKeys( v_WindowHandle, :block.txtnombre||'^%2'||:block.txtcompany||'^%2'||:block.txtfaxemail||'{Enter}');
End;
thank a lot.
Paholi