FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Execute while in idle
Posts: 1195
Joined: Mon Oct 17, 2005 05:41 AM
Execute while in idle
Posted: Fri Feb 24, 2012 08:14 PM
Hello,

I want to execute a function while the system is in idle.
I use
Code (fw): Select all Collapse
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
Regards,

Marc



FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite

Continue the discussion