detect a program inactivity situation

Post Reply
User avatar
Silvio.Falconi
Posts: 7154
Joined: Thu Oct 18, 2012 7:17 pm
Been thanked: 2 times

detect a program inactivity situation

Post by Silvio.Falconi »

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
User avatar
karinha
Posts: 7948
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil
Been thanked: 3 times
Contact:

Re: detect a program inactivity situation

Post by karinha »

João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
Posts: 7948
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil
Been thanked: 3 times
Contact:

Re: detect a program inactivity situation

Post by karinha »

João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
Silvio.Falconi
Posts: 7154
Joined: Thu Oct 18, 2012 7:17 pm
Been thanked: 2 times

Re: detect a program inactivity situation

Post by Silvio.Falconi »

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
User avatar
ukoenig
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany
Contact:

Re: detect a program inactivity situation

Post by ukoenig »

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 :?:
Last edited by ukoenig on Wed Apr 03, 2019 7:14 am, edited 2 times in total.
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.
User avatar
Silvio.Falconi
Posts: 7154
Joined: Thu Oct 18, 2012 7:17 pm
Been thanked: 2 times

Re: detect a program inactivity situation

Post by Silvio.Falconi »

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
User avatar
ukoenig
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany
Contact:

Re: detect a program inactivity situation

Post by ukoenig »

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.
User avatar
Silvio.Falconi
Posts: 7154
Joined: Thu Oct 18, 2012 7:17 pm
Been thanked: 2 times

Re: detect a program inactivity situation

Post by Silvio.Falconi »

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
Post Reply