betting under the 0:00:00

Discuss anything related to using the program (eg. triggered betting tactics)

Moderator: 2020vision

betting under the 0:00:00

Postby lucarello » Sun Nov 21, 2010 11:57 am

hallo, is there a way to back or lay when timer in D2 goes under zero seconds?

the instruction:

"If Range("Sheet1!D2").Value < TimeValue("00:00:29") Then ... "

works only until 0:00:00, but often I need to bet after some other seconds

tnx who helps
lucarello
 
Posts: 25
Joined: Fri Sep 01, 2006 11:23 am

Re: betting under the 0:00:00

Postby danjuma » Sun Nov 21, 2010 1:26 pm

lucarello wrote:hallo, is there a way to back or lay when timer in D2 goes under zero seconds?

the instruction:

"If Range("Sheet1!D2").Value < TimeValue("00:00:29") Then ... "

works only until 0:00:00, but often I need to bet after some other seconds

tnx who helps


Try this:

Put the following formula in a cell say W1

=IF(LEFT(D2)<>"-",(HOUR(D2)*3600)+(MINUTE(D2)*60)+SECOND(D2),-((HOUR(SUBSTITUTE(D2,"-",""))*3600)+(MINUTE(SUBSTITUTE(D2,"-",""))*60)+SECOND(SUBSTITUTE(D2,"-",""))))

What the formula does is that it counts down to the scheduled off, and the figure becomes negative when gone past the scheduled off. You can then amend your code to read:

"If Range("W1").Value < 0 Then ... "

HTH
User avatar
danjuma
 
Posts: 347
Joined: Mon Apr 21, 2008 4:17 pm

Postby lucarello » Wed Nov 24, 2010 2:22 pm

very nice, it works, thank you!
lucarello
 
Posts: 25
Joined: Fri Sep 01, 2006 11:23 am


Return to Discussion

Who is online

Users browsing this forum: No registered users and 110 guests

Sports betting software from Gruss Software


The strength of Gruss Software is that it’s been designed by one of you, a frustrated sports punter, and then developed by listening to dozens of like-minded enthusiasts.

Gruss is owned and run by brothers Gary and Mark Russell. Gary discovered Betfair in 2004 and soon realised that using bespoke software to place bets was much more efficient than merely placing them through the website.

Gary built his own software and then enhanced its features after trialling it through other Betfair users and reacting to their improvement ideas, something that still happens today.

He started making a small monthly charge so he could work on it full-time and then recruited Mark to help develop the products and Gruss Software was born.

We think it’s the best of its kind and so do a lot of our customers. But you can never stand still in this game and we’ll continue to improve the software if any more great ideas emerge.