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

running prog
Hi All,

in my clipper-app would like to display imagefiles stored in a flexfile dbv
via a Windows-imageviewer-program.

So far so good. That works fine with MSPAINT, IFANVIEW, ....

Only problem: everytime the swpruncmd(....) from my app is done it launches
a new instances of the programm.

Question now: Is there a possibility to check from within a clipper-programm
if a specific windows-progr. is already running?
I considered creating/checking for  a flagfile which is created before the
viewer is started. But if the user closes the viewer manually the flagfile
is not deleted and the system won't work anymore.

Thanks for any hints

Thomas



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


Re: running prog
On Wed, 24 Mar 2004 12:42:23 +0100, "Thomas Venus"
<venus.thomas@wm-schmuck.de> wrote:

>Hi All,
>
>in my clipper-app would like to display imagefiles stored in a flexfile dbv
>via a Windows-imageviewer-program.
>
>So far so good. That works fine with MSPAINT, IFANVIEW, ....
>
>Only problem: everytime the swpruncmd(....) from my app is done it launches
>a new instances of the programm.
>
>Question now: Is there a possibility to check from within a clipper-program
m
>if a specific windows-progr. is already running?
>I considered creating/checking for  a flagfile which is created before the
>viewer is started. But if the user closes the viewer manually the flagfile
>is not deleted and the system won't work anymore.
>
>Thanks for any hints
>
>Thomas
>
>

Hello Thomas,

I use a 32 bit console application to examine the program queue for
the tell-tale signature of the Windows application and to periodically
update that information. I will send you a copy by email.


Regards,

Ross McKenzie
ValuSoft
Melbourne Australia

valusoft AT optushome DOT com DOT au

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


Re: running prog
Hello Ross,

thankyou very much for that wonderfull  tools (winprogs).
I already implemented it in my app and it works fine. Also I have a
few other ideas where to use this prog.
Thanks again and greeting from the cold and rainy :( Germany
Thomas


<Ross McKenzie> schrieb im Newsbeitrag news:40617dab.20501109@news...
> On Wed, 24 Mar 2004 12:42:23 +0100, "Thomas Venus"
> <venus.thomas@wm-schmuck.de> wrote:
> 
dbv 
launches 
clipper-programm 
the 
flagfile 
>
> Hello Thomas,
>
> I use a 32 bit console application to examine the program queue for
> the tell-tale signature of the Windows application and to periodically
> update that information. I will send you a copy by email.
>
>
> Regards,
>
> Ross McKenzie
> ValuSoft
> Melbourne Australia
>
> valusoft AT optushome DOT com DOT au



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


Re: running prog
On Wed, 24 Mar 2004 15:10:44 +0100, "Thomas Venus"
<venus.thomas@wm-schmuck.de> wrote:

>Hello Ross,
>
>thankyou very much for that wonderfull  tools (winprogs).
>I already implemented it in my app and it works fine. Also I have a
>few other ideas where to use this prog.
>Thanks again and greeting from the cold and rainy :( Germany
>Thomas
>

Always pleased to hear about a success story Thomas.


Regards,

Ross McKenzie
ValuSoft
Melbourne Australia

valusoft AT optushome DOT com DOT au

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


Re: running prog
Hello Ross and all the others,

I've got still another question.
I use the blinker swpruncmd() function to launch the windows imageviewer
program.
Is there a chance to return the program focus back to my calling clipper app
after the image viewer is
started ?
Thanks for any answer.
Thomas





<Ross McKenzie> schrieb im Newsbeitrag news:40617dab.20501109@news...
> On Wed, 24 Mar 2004 12:42:23 +0100, "Thomas Venus"
> <venus.thomas@wm-schmuck.de> wrote:
> 
dbv 
launches 
clipper-programm 
the 
flagfile 
>
> Hello Thomas,
>
> I use a 32 bit console application to examine the program queue for
> the tell-tale signature of the Windows application and to periodically
> update that information. I will send you a copy by email.
>
>
> Regards,
>
> Ross McKenzie
> ValuSoft
> Melbourne Australia
>
> valusoft AT optushome DOT com DOT au



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


Re: running prog
Hi Thomas,

One instance
I use the swpruncmd to Irfanview with a switch (/one) to allow just one
instance.

Reactivate window
I wrote a little Purebasic prog to put focus back to my window checks every
5 seconds. If you want the source or the binary I can mail it to you, it
simply does a left mouseclick in the window. It runs without an own window,
you just see it in the taskmanager.
By the way, it also disables the "closer" in the upper right corner of a
running MS-OUTLOOK, but thats another story....


Greetings from Hamburg
Tom


"Thomas Venus" <venus.thomas@wm-schmuck.de> schrieb im Newsbeitrag
news:c3rs6v$9pm$03$1@news.t-online.com...
> Hi All,
>
> in my clipper-app would like to display imagefiles stored in a flexfile
dbv
> via a Windows-imageviewer-program.
>
> So far so good. That works fine with MSPAINT, IFANVIEW, ....
>
> Only problem: everytime the swpruncmd(....) from my app is done it
launches
> a new instances of the programm.
>
> Question now: Is there a possibility to check from within a
clipper-programm
> if a specific windows-progr. is already running?
> I considered creating/checking for  a flagfile which is created before the
> viewer is started. But if the user closes the viewer manually the flagfile
> is not deleted and the system won't work anymore.
>
> Thanks for any hints
>
> Thomas
>
>



Report this thread to moderator Post Follow-up to this message
Old Post
itds
04-05-04 06:30 PM


Re: running prog
Hi Tom,

thanks for your answer,

Yes please, it would be very nice if you send me a copy of basic-prog,.

Thanx

Thomas
P.s. Viele Grüsse aus Süddeutschland


"itds" <hbgmail@itds.de> schrieb im Newsbeitrag
news:c4rvvk$ap$03$1@news.t-online.com...
> Hi Thomas,
>
> One instance
> I use the swpruncmd to Irfanview with a switch (/one) to allow just one
> instance.
>
> Reactivate window
> I wrote a little Purebasic prog to put focus back to my window checks
every
> 5 seconds. If you want the source or the binary I can mail it to you, it
> simply does a left mouseclick in the window. It runs without an own
window,
> you just see it in the taskmanager.
> By the way, it also disables the "closer" in the upper right corner of a
> running MS-OUTLOOK, but thats another story....
>
>
> Greetings from Hamburg
> Tom
>
>
> "Thomas Venus" <venus.thomas@wm-schmuck.de> schrieb im Newsbeitrag
> news:c3rs6v$9pm$03$1@news.t-online.com... 
> dbv 
> launches 
> clipper-programm 
the 
flagfile 
>
>



Report this thread to moderator Post Follow-up to this message
Old Post
Thomas Venus
04-08-04 10:30 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 12:37 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.