View Single Post
  #25 (permalink)  
Old 12-20-2007, 07:42 AM
eastcity eastcity is offline
Junior Member
 
Join Date: May 2007
Posts: 12
eastcity is on a distinguished road
Alerts

I thought I could limit the number of alerts triggered by trigger using this:

extern int MaxWaiting_sec = 30;



if(trigger == 1)
{
int StartWaitingTime = GetTickCount();
if(GetTickCount() - StartWaitingTime > MaxWaiting_sec * 1000)
{

if(ShowAlert == true) {

Alert("Buy...........


But it does not seem to work, what am I doing wrong??
Reply With Quote