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

Auto Terminate Clipper
HI!

Is there a way to automatically 'QUIT'  from clipper application if
the keyboard was in-active for more than 60 minutes ?

Thanks

Ben

Report this thread to moderator Post Follow-up to this message
Old Post
BENTAP@AOL.COM
11-16-04 11:43 PM


Re: Auto Terminate Clipper
If you have Tools III then you can use KeySec with the mode set to true for
reset after a keypress.

Ian Boys
DTE

<BENTAP@AOL.COM> wrote in message
news:5863449.0411081515.5f829164@posting.google.com...
> HI!
>
> Is there a way to automatically 'QUIT'  from clipper application if
> the keyboard was in-active for more than 60 minutes ?
>
> Thanks
>
> Ben



Report this thread to moderator Post Follow-up to this message
Old Post
Ian Boys
11-16-04 11:43 PM


Re: Auto Terminate Clipper
Ben,

>Is there a way to automatically 'QUIT'  from clipper application if
>the keyboard was in-active for more than 60 minutes ?

In the source\getsys subdirectory of your Clipper install tree you
will find a variety of getsys modifications. One of them can be set to
terminate the read after whatever time you choose. It shouldn't be too
difficult to modify it further to kill the application entirely if
that is what you want to do.

HTH,
Klas

-------
klas dot engwall at engwall dot com

Spammers, please use this address :-) mailto:postmaster@[127.0.0.1]

Report this thread to moderator Post Follow-up to this message
Old Post
Klas Engwall
11-16-04 11:43 PM


Re: Auto Terminate Clipper
klas.engwall@nospam.please (Klas Engwall) wrote in message news:<4190a50f.62701089@nntpserv
er.swip.net>...
> Ben,
> 
>
> In the source\getsys subdirectory of your Clipper install tree you
> will find a variety of getsys modifications. One of them can be set to
> terminate the read after whatever time you choose. It shouldn't be too
> difficult to modify it further to kill the application entirely if
> that is what you want to do.
>
> HTH,
> Klas
>
> -------
> klas dot engwall at engwall dot com
>
> Spammers, please use this address :-) mailto:postmaster@[127.0.0.1]



Klas!

I am looking to kill the application from 'Tbrowse' Screen or 'Menu to' ,etc
.
not only from inactive Read's.
I think your solution will not do here

Report this thread to moderator Post Follow-up to this message
Old Post
BENTAP@AOL.COM
11-16-04 11:43 PM


Re: Auto Terminate Clipper
Ben,

>I am looking to kill the application from 'Tbrowse' Screen or 'Menu to' ,et
c.
>not only from inactive Read's.
>I think your solution will not do here

Ok, then you need to get inside the event system and build your own
timer. Ian's suggestion sounds like something that could work if you
have Clipper Tools.

Or perhaps you can use FT_OnTick() from the Nanforum Toolkit to call a
function every few clock ticks that saves seconds() and lastkey() and
kills the app if there has been no change in lastkey() in the number
of seconds you specify. I have used FT_OnTick() successfully for
various background tasks althbough not exactly for this purpose. But
it wouldn't be too difficult to write a small test routine.

HTH,
Klas

-------
klas dot engwall at engwall dot com

Spammers, please use this address :-) mailto:postmaster@[127.0.0.1]

Report this thread to moderator Post Follow-up to this message
Old Post
Klas Engwall
11-16-04 11:43 PM


Re: Auto Terminate Clipper
On Wed, 10 Nov 2004 00:26:18 GMT, klas.engwall@nospam.please (Klas
Engwall) wrote:

>Ben,
> 
>
>Ok, then you need to get inside the event system and build your own
>timer. Ian's suggestion sounds like something that could work if you
>have Clipper Tools.
>
>Or perhaps you can use FT_OnTick() from the Nanforum Toolkit to call a
>function every few clock ticks that saves seconds() and lastkey() and
>kills the app if there has been no change in lastkey() in the number
>of seconds you specify. I have used FT_OnTick() successfully for
>various background tasks althbough not exactly for this purpose. But
>it wouldn't be too difficult to write a small test routine.
>
>HTH,
>Klas
>

Guys,

In the past I have used Robert Lamping's BGEvents library for similar
tasks....background processing of comports, etc. It would be ideal for
this....and it is free.


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
11-16-04 11:43 PM


Re: Auto Terminate Clipper
Hi,
On similar, but slightly different theme - does anyone know of a way to quit
and then restart _THE SAME APP_?  e.g. something fairly terminal has
happened and you need to restart the app to clear comms ports, flush buffers
etc.

--
Rob Grattan
R&D Software Pty. Ltd.



Report this thread to moderator Post Follow-up to this message
Old Post
Rob
11-16-04 11:43 PM


Re: Auto Terminate Clipper
BTW - I call this the Brute Force approach to programming....

--
Rob Grattan
R&D Software Pty. Ltd.



Report this thread to moderator Post Follow-up to this message
Old Post
Rob
11-16-04 11:43 PM


Re: Auto Terminate Clipper
On Thu, 11 Nov 2004 08:06:09 +1000, "Rob"
<robGETRIDOFTHIS@ANDTHISrndsoftware.com.au> wrote:

>Hi,
>On similar, but slightly different theme - does anyone know of a way to qui
t
>and then restart _THE SAME APP_?  e.g. something fairly terminal has
>happened and you need to restart the app to clear comms ports, flush buffer
s
>etc.
>
>--
>Rob Grattan
>R&D Software Pty. Ltd.
>
>

Rob,

Untested in this particular situation, but it should work.

Modify your app to create a dummy text file on startup and to delete
it as part of the correct exit routine. That way this text file will
be present if the app dies. Then start your application via a batch
file that checks for the presence of the text file...like this...

----- cut here-----begin.bat----

Rem routine to restart if dummy.txt found
:Beginning
Yourapp.exe
if exist DUMMY.TXT goto Beginning


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
11-16-04 11:43 PM


Re: Auto Terminate Clipper
On Wed, 10 Nov 2004 23:18:12 GMT, NoJunk_valusoft@optushome.com.au
(Ross McKenzie) wrote:

>On Thu, 11 Nov 2004 08:06:09 +1000, "Rob"
><robGETRIDOFTHIS@ANDTHISrndsoftware.com.au> wrote:
> 
>
>Rob,
>
>Untested in this particular situation, but it should work.
>
>Modify your app to create a dummy text file on startup and to delete
>it as part of the correct exit routine. That way this text file will
>be present if the app dies. Then start your application via a batch
>file that checks for the presence of the text file...like this...
>
>----- cut here-----begin.bat----
>
>Rem routine to restart if dummy.txt found
>:Beginning
>Yourapp.exe
>if exist DUMMY.TXT goto Beginning
>

Setting an error level would be less messy & also has the benefit of
working cleanly in a networked environment.  In your code, insert
ERRORLEVEL(1) in your error handler code before you issue a QUIT &
then you can test for it like this:

:Start
yourapp.exe
if errorlevel 1 goto Start


Report this thread to moderator Post Follow-up to this message
Old Post
Nick Ramsay
11-16-04 11:43 PM


Sponsored Links




Last Thread Next Thread Next
Pages (2): [1] 2 »
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 06:14 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.