Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

start windows app from clipper
Hi All,

in my clipper app i start a windows app (image viewer) via the blinker
swpruncmd()-function.
That works fine.

The only thing is, the called windows app keeps the focus and the user has
to
switch back to the clipper app manually.

Does anybody know of a solution to get the focus back to the calling clipper
app?

Thanks in advance

Thomas



Report this thread to moderator Post Follow-up to this message
Old Post
Thomas Venus
03-27-04 03:59 AM


Re: start windows app from clipper
Thomas

Probably not what you want  to hear but
- don't call  the windows program<g>

Why don't you add pix viewing to your app, no need for the external viewer t
hen.

See the OASIS for a couple of libraries http://www.the-oasis.net/
- Ferns Graphics Library    http://www.the-oasis.net/files/libr...ry/rpcxlb11.zip

--
HTH
Steve Quinn



Report this thread to moderator Post Follow-up to this message
Old Post
Stephen Quinn
03-27-04 03:59 AM


Re: start windows app from clipper
"Thomas Venus"

You need to use a batch file :-

:begin
yourclipper.exe
if errorlevel=1 goto :winexe
goto :end

:winexe
yourviewer.exe
goto :begin

:end


In your clipper exe,
- for normal exit : errorlevel(0),return
- for running viewer : errorlevel(1),swpruncmd(),return





Report this thread to moderator Post Follow-up to this message
Old Post
tnhoe
03-27-04 03:59 AM


Re: start windows app from clipper
You could also make certain that you run application in a window.  Some
applications will return focus.  For others, you could write a short
xbase++ or other language application that calls window API to return
focus to your clipper application.  I do this for a clipper application
that utilizes a windows application to request a client credit bureau
report.  The delphi app was not returning focus and you needed to use
the mouse to reselect the clipper window.  So clipper->intermediate
app->windows program and back.

Note the name of the window to return to is different for win9x and
win2000/xp.

tnhoe wrote:

> "Thomas Venus"
>
> You need to use a batch file :-
>
> :begin
> yourclipper.exe
> if errorlevel=1 goto :winexe
> goto :end
>
> :winexe
> yourviewer.exe
> goto :begin
>
> :end
>
>
> In your clipper exe,
> - for normal exit : errorlevel(0),return
> - for running viewer : errorlevel(1),swpruncmd(),return
>
>
>
>


Report this thread to moderator Post Follow-up to this message
Old Post
Clifford Wiernik
03-27-04 03:59 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Clipper archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 01:10 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.