Guardian - Auto delete suspended markets.
I am using BAP 1.59.0_b2 and trying to get the win status of each selection into excel.
I have tried the win status in BA to push that to excel and automation with a SV to excel but it is bit of hit and miss, because the win status is conditional on the market close before it triggers and guardian stops updating on market close the win status is not always updated in excel.
I have set a 20ms update in guardian, but there appears to be a timing issue with the win status and guardian both triggering and stopping on market close.
Any help would be appreciated.
I have tried the win status in BA to push that to excel and automation with a SV to excel but it is bit of hit and miss, because the win status is conditional on the market close before it triggers and guardian stops updating on market close the win status is not always updated in excel.
I have set a 20ms update in guardian, but there appears to be a timing issue with the win status and guardian both triggering and stopping on market close.
Any help would be appreciated.
- jamesedwards
- Posts: 2323
- Joined: Wed Nov 21, 2018 6:16 pm
I run several thousand markets simultaneously across multiple duplications of Guardian on one PC. I'm pretty sure my PC speeds up refresh of open markets significantly when I remove a large volume of completed closed markets.
It might be worth trying something along these lines.bob1957 wrote: ↑Mon Apr 04, 2022 1:25 amI am using BAP 1.59.0_b2 and trying to get the win status of each selection into excel.
I have tried the win status in BA to push that to excel and automation with a SV to excel but it is bit of hit and miss, because the win status is conditional on the market close before it triggers and guardian stops updating on market close the win status is not always updated in excel.
I have set a 20ms update in guardian, but there appears to be a timing issue with the win status and guardian both triggering and stopping on market close.
Any help would be appreciated.
viewtopic.php?f=31&t=25480
- jamesedwards
- Posts: 2323
- Joined: Wed Nov 21, 2018 6:16 pm
I tested this today:jamesedwards wrote: ↑Mon Apr 04, 2022 8:24 pmI run several thousand markets simultaneously across multiple duplications of Guardian on one PC. I'm pretty sure my PC speeds up refresh of open markets significantly when I remove a large volume of completed closed markets.
All day I have been running 4000 football matches with relatively simple rules, across 8 different simultaneously running versions of Guardian with 500 on each.
As of now, 3400 of the 4000 markets are complete and have been suspended. With 600 live and 3400 suspended markets loaded in Guardian the refresh cycles in the Guardian window of focus is every 3 seconds, while refresh cycles in other Guardians are every 7 seconds.
Now I remove the 3400 closed markets from all Guardian windows leaving 600 markets running across 8 Guardians. With only the 600 live markets remaining the refresh cycles in the Guardian window of focus improve from 3 seconds to 1.5 seconds, while refresh cycles in the other Guardian windows improve from 7 seconds to 2 seconds.
It would be great if there was a way to remove markets automatically from Guardian in order to speed up refresh cycles.
Obviously a risk in removing suspended footy markets but I like to keep things neat by removing closed ones, using a shortcut key combo.
I use Shift + C, and then a quick macro in AutoHotkey or Auto-It script, looping every 5 mins, to bring Guardian into focus and send the Shift + C key combo works a treat
I use Shift + C, and then a quick macro in AutoHotkey or Auto-It script, looping every 5 mins, to bring Guardian into focus and send the Shift + C key combo works a treat
You do not have the required permissions to view the files attached to this post.
- jamesedwards
- Posts: 2323
- Joined: Wed Nov 21, 2018 6:16 pm
Thanks for the idea. Can this be done when needing to shift between 8 simultaneous iterations of Guardian though?sniffer66 wrote: ↑Mon Apr 11, 2022 9:50 amObviously a risk in removing suspended footy markets but I like to keep things neat by removing closed ones, using a shortcut key combo.
I use Shift + C, and then a quick macro in AutoHotkey or Auto-It script, looping every 5 mins, to bring Guardian into focus and send the Shift + C key combo works a treat
Capture.JPG
Shouldnt be an issue. Would take a little more scripting skill but you can get Auto-it to return the handle of all windows containing the text "Guardian", then it's just a case of looping through them and sending the keys.jamesedwards wrote: ↑Mon Apr 11, 2022 6:07 pmThanks for the idea. Can this be done when needing to shift between 8 simultaneous iterations of Guardian though?sniffer66 wrote: ↑Mon Apr 11, 2022 9:50 amObviously a risk in removing suspended footy markets but I like to keep things neat by removing closed ones, using a shortcut key combo.
I use Shift + C, and then a quick macro in AutoHotkey or Auto-It script, looping every 5 mins, to bring Guardian into focus and send the Shift + C key combo works a treat
Capture.JPG
If that becomes a struggle, let me know and I'll knock something up in Auto-it
- jamesedwards
- Posts: 2323
- Joined: Wed Nov 21, 2018 6:16 pm
I've never used any of these or done any scripting. If you wouldnt mind creating it it would be very kind of you!sniffer66 wrote: ↑Mon Apr 11, 2022 6:10 pmShouldnt be an issue. Would take a little more scripting skill but you can get Auto-it to return the handle of all windows containing the text "Guardian", then it's just a case of looping through them and sending the keys.jamesedwards wrote: ↑Mon Apr 11, 2022 6:07 pmThanks for the idea. Can this be done when needing to shift between 8 simultaneous iterations of Guardian though?sniffer66 wrote: ↑Mon Apr 11, 2022 9:50 amObviously a risk in removing suspended footy markets but I like to keep things neat by removing closed ones, using a shortcut key combo.
I use Shift + C, and then a quick macro in AutoHotkey or Auto-It script, looping every 5 mins, to bring Guardian into focus and send the Shift + C key combo works a treat
Capture.JPG
If that becomes a struggle, let me know and I'll knock something up in Auto-it
This should do it
Will find each Guardian window, activate each window in turn, send Shift + C, then minimise the window again. You'll need to set up the shortcut combo keys in BA. I've only one window running but works fine on there testing. Runs every 60s - tiny overhead and very quick. if you want to increase the time between cycles, edit line 6 from Sleep(6000) . Number is in milliseconds
if you've used my Sofascore script you'll have Auto-It already, if not instructions on how to install and run a script are here :
viewtopic.php?f=50&t=25395
(in the old thread in post 1)
I usually compile these an exe and run in the Windows taskbar - Tools-Compile in the Scite Editor
Enjoy
Will find each Guardian window, activate each window in turn, send Shift + C, then minimise the window again. You'll need to set up the shortcut combo keys in BA. I've only one window running but works fine on there testing. Runs every 60s - tiny overhead and very quick. if you want to increase the time between cycles, edit line 6 from Sleep(6000) . Number is in milliseconds
if you've used my Sofascore script you'll have Auto-It already, if not instructions on how to install and run a script are here :
viewtopic.php?f=50&t=25395
(in the old thread in post 1)
I usually compile these an exe and run in the Windows taskbar - Tools-Compile in the Scite Editor
Enjoy
Code: Select all
While 1
Find_Guardian()
Sleep(60000)
WEnd
Func Find_Guardian()
Local $aList = WinList()
For $i = 1 To $aList[0][0]
If StringinStr($aList[$i][0], "Guardian") Then
WinActivate($aList[$i][1],"")
Send("+c")
WinSetState($aList[$i][1], "",@SW_MINIMIZE)
EndIf
Next
EndFunc
- jamesedwards
- Posts: 2323
- Joined: Wed Nov 21, 2018 6:16 pm
Thanks, very much appreciated. Will definitely give this a go in the next few days.sniffer66 wrote: ↑Mon Apr 11, 2022 7:48 pmThis should do it
Will find each Guardian window, activate each window in turn, send Shift + C, then minimise the window again. You'll need to set up the shortcut combo keys in BA. I've only one window running but works fine on there testing. Runs every 60s - tiny overhead and very quick. if you want to increase the time between cycles, edit line 6 from Sleep(6000) . Number is in milliseconds
if you've used my Sofascore script you'll have Auto-It already, if not instructions on how to install and run a script are here :
viewtopic.php?f=50&t=25395
(in the old thread in post 1)
I usually compile these an exe and run in the Windows taskbar - Tools-Compile in the Scite Editor
Enjoy
Code: Select all
While 1 Find_Guardian() Sleep(60000) WEnd Func Find_Guardian() Local $aList = WinList() For $i = 1 To $aList[0][0] If StringinStr($aList[$i][0], "Guardian") Then WinActivate($aList[$i][1],"") Send("+c") WinSetState($aList[$i][1], "",@SW_MINIMIZE) EndIf Next EndFunc
- jamesedwards
- Posts: 2323
- Joined: Wed Nov 21, 2018 6:16 pm
Thanks! Working perfectly. Took me a while to realise because I called the script file "Guardian auto close" it was inserting capital Cs into it's own script causing it to crashsniffer66 wrote: ↑Mon Apr 11, 2022 7:48 pmThis should do it
Will find each Guardian window, activate each window in turn, send Shift + C, then minimise the window again. You'll need to set up the shortcut combo keys in BA. I've only one window running but works fine on there testing. Runs every 60s - tiny overhead and very quick. if you want to increase the time between cycles, edit line 6 from Sleep(6000) . Number is in milliseconds
if you've used my Sofascore script you'll have Auto-It already, if not instructions on how to install and run a script are here :
viewtopic.php?f=50&t=25395
(in the old thread in post 1)
I usually compile these an exe and run in the Windows taskbar - Tools-Compile in the Scite Editor
Enjoy
Last edited by jamesedwards on Mon Apr 11, 2022 10:26 pm, edited 1 time in total.
Good stuff.
I should have said, I didn't put Guardian in the script name or it would have found itself
Thinking through this further, if you couple this with a key combo that calls Dallas' shortcut setup to load coupons and then apply the bafs to market type automatically, and used Windows scheduler to run it once each morning, you'd have an automated Guardian setup
I should have said, I didn't put Guardian in the script name or it would have found itself
Thinking through this further, if you couple this with a key combo that calls Dallas' shortcut setup to load coupons and then apply the bafs to market type automatically, and used Windows scheduler to run it once each morning, you'd have an automated Guardian setup