FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour detect a program inactivity situation
Posts: 7318
Joined: Thu Oct 18, 2012 07:17 PM
detect a program inactivity situation
Posted: Mon Apr 01, 2019 09:38 AM

how to call a function when the operator does not press any key and does not move the mouse, after n minutes I would like the procedure to make an image appear, when the operator moves the mouse or a key the image must disappear

Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 8523
Joined: Tue Dec 20, 2005 07:36 PM
Re: detect a program inactivity situation
Posted: Mon Apr 01, 2019 03:34 PM
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Posts: 8523
Joined: Tue Dec 20, 2005 07:36 PM
Re: detect a program inactivity situation
Posted: Mon Apr 01, 2019 07:40 PM
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Posts: 7318
Joined: Thu Oct 18, 2012 07:17 PM
Re: detect a program inactivity situation
Posted: Tue Apr 02, 2019 10:26 PM

thanks the first link is good the class run ok

Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: detect a program inactivity situation
Posted: Wed Apr 03, 2019 07:08 AM

Silvio,

Yes, I agree it works without problems :D .
I'm working on a autoclose of the message
on a second mousemove after zhe message-display and
a image-solution instead of a alert,
or do You want to keep it like it works.

regards
Uwe :?:

Since 1995 ( the first release of FW 1.9 )

i work with FW.

If you have any questions about special functions, maybe i can help.
Posts: 7318
Joined: Thu Oct 18, 2012 07:17 PM
Re: detect a program inactivity situation
Posted: Wed Apr 03, 2019 07:10 AM

I want to create a courtesy screen when the user does not move the mouse or press a key, perhaps with advertisements or images chosen by the user.

Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: detect a program inactivity situation
Posted: Wed Apr 03, 2019 06:08 PM
Silvio,

It seems some changes are needed.
I noticed a missing end() of the timer.
That means once started, the message will continue running on all different dialogs.
As well we need a syntax like : oRun := TINATIVO():new( 5, "LOGOFF()", .T. )

missing object :
activate window oWnd on init tinativo():new(nTempo_espera,cNome_funcao, lTimerContinua)

regards
Uwe :-)
Since 1995 ( the first release of FW 1.9 )

i work with FW.

If you have any questions about special functions, maybe i can help.
Posts: 7318
Joined: Thu Oct 18, 2012 07:17 PM
Re: detect a program inactivity situation
Posted: Wed Apr 03, 2019 08:47 PM

tomorrow I see it , if you have some suggestion you're wellcome
this night i must resolve another problems

Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com

Continue the discussion