detect a program inactivity situation
- Silvio.Falconi
- Posts: 7154
- Joined: Thu Oct 18, 2012 7:17 pm
- Been thanked: 2 times
detect a program inactivity situation
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
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
- 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
Mira se ayuda:
http://fivewin.com.br/index.php?/topic/23973-fechar-o-programa-ap%C3%B3s-30-min-sem-uso/
Regards.
http://fivewin.com.br/index.php?/topic/23973-fechar-o-programa-ap%C3%B3s-30-min-sem-uso/
Regards.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
- 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
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
- Silvio.Falconi
- Posts: 7154
- Joined: Thu Oct 18, 2012 7:17 pm
- Been thanked: 2 times
Re: detect a program inactivity situation
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
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
Re: detect a program inactivity situation
Silvio,
Yes, I agree it works without problems
.
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
Yes, I agree it works without problems

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.
i work with FW.
If you have any questions about special functions, maybe i can help.
- Silvio.Falconi
- Posts: 7154
- Joined: Thu Oct 18, 2012 7:17 pm
- Been thanked: 2 times
Re: detect a program inactivity situation
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
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
Re: detect a program inactivity situation
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
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.
i work with FW.
If you have any questions about special functions, maybe i can help.
- Silvio.Falconi
- Posts: 7154
- Joined: Thu Oct 18, 2012 7:17 pm
- Been thanked: 2 times
Re: detect a program inactivity situation
tomorrow I see it , if you have some suggestion you're wellcome
this night i must resolve another problems
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
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