I want to execute a function while the system is in idle.
I use
- Code: Select all Expand view
- hb_IdleAdd( {|| hb_BackGroundRun() } )
obck = hb_BackGroundAdd( {|| SQLLeestrest(valias,vreccount) }, 1000, .T. )
SET BACKGROUND TASKS ON
The problem is that the function is executed every second, even while I'm scrolling down in a browse with the arrows.
I thought it was only executed when nobody is touching the keyboard or mouse.
How can I do that?
Thanks,
Marc