Autoload next days events?

Please post any questions regarding the program here.

Moderator: 2020vision

Autoload next days events?

Postby cooldad » Wed Jul 30, 2008 7:17 am

I like to run a bet bot for multiple consecutive days, without human intervention. In order for this to work, BA should automatically select markets for a new day as soon as the new day arrives (let´s say at midnight).

In other words, BA should auto load the quick pick list at midnight (or as soon as the races are available).

I know I can automatically reboot the PC, and autostart BA and the trigger spreadsheet, but this leaves me with other problems, like auto logon to BA, selecting the trigger spreadsheet from BA etc.

Is there a way to achieve this?

Thanks!
cooldad
 
Posts: 33
Joined: Fri Jun 13, 2008 2:16 pm

Postby GaryRussell » Wed Jul 30, 2008 8:13 am

Entering -3 in cell Q2 will reload the quick pick list so you can use VBA to populate this cell at the appropriate time.
User avatar
GaryRussell
Site Admin
 
Posts: 9871
Joined: Fri Nov 18, 2005 8:09 pm
Location: Birmingham, UK

Postby cooldad » Wed Jul 30, 2008 9:26 am

Thanks, Gary, I knew you would've built in something like this!

I am using the Application.onTime function to enter the value in Q2, and it works perfectly.

For others that are interested in doing the same, here's the VBA code

In the code for ThisWorkbook, add the following:

Private Sub Workbook_Open()

Application.OnTime TimeValue("12:00:00"), "ReloadQuickPickList"

End Sub


When the spreadsheet opens, this will set a timer so that at 12:00:00, the macro "ReloadQuickPickList" will be executed.

Then anywhere in your modules, add the following macro:

Sub ReloadQuickPickList()

Application.OnTime TimeValue ("12:00:00"), "ReloadQuickPickList"
Workbooks("YourWorkbook.xls").Worksheets("BetAssist").Range("Q2") = -3

End Sub


This will set a new timer (to be executed the next day), and then it enters the value -3 in cell Q2 which will result in reloading of the quick pick list in Betting Assistant.
cooldad
 
Posts: 33
Joined: Fri Jun 13, 2008 2:16 pm


Return to Help

Who is online

Users browsing this forum: No registered users and 55 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.