detect a program inactivity situation

detect a program inactivity situation

Postby Silvio.Falconi » Mon Apr 01, 2019 9: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 November 2023 - January 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
Silvio.Falconi
 
Posts: 7056
Joined: Thu Oct 18, 2012 7:17 pm

Re: detect a program inactivity situation

Postby karinha » Mon Apr 01, 2019 3:34 pm

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

Re: detect a program inactivity situation

Postby karinha » Mon Apr 01, 2019 7:40 pm

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

Re: detect a program inactivity situation

Postby Silvio.Falconi » 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 November 2023 - January 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
Silvio.Falconi
 
Posts: 7056
Joined: Thu Oct 18, 2012 7:17 pm

Re: detect a program inactivity situation

Postby ukoenig » Wed Apr 03, 2019 7: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 :?:
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
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: detect a program inactivity situation

Postby Silvio.Falconi » Wed Apr 03, 2019 7: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 November 2023 - January 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
Silvio.Falconi
 
Posts: 7056
Joined: Thu Oct 18, 2012 7:17 pm

Re: detect a program inactivity situation

Postby ukoenig » Wed Apr 03, 2019 6: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.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: detect a program inactivity situation

Postby Silvio.Falconi » Wed Apr 03, 2019 8: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 November 2023 - January 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
Silvio.Falconi
 
Posts: 7056
Joined: Thu Oct 18, 2012 7:17 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 75 guests