Execute while in idle

Execute while in idle

Postby Marc Vanzegbroeck » Fri Feb 24, 2012 8:14 pm

Hello,

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
Regards,
Marc

FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Marc Vanzegbroeck
 
Posts: 1159
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 60 guests