Code Comments
Programming Forum and web based access to our favorite programming groups.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
Post Follow-up to this messageOn 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
Post Follow-up to this messageHello 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
Post Follow-up to this messageOn 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
Post Follow-up to this messageHello 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
Post Follow-up to this messageHi 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 > >
Post Follow-up to this messageHi 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 > >
Post Follow-up to this messagePowered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.