I don't know much about programming, so this have been a interesting ride. There's a few bots around here in the forum, but, none really to my satisfaction. I want total adaptability so it can fit whichever online casino I choose to play on. Hence, this little project.

The Macros: Each type/version in their own post with their own info: 1: The Original and not so "simple" Martingale double up red and black alternating macro. 2: The Improved version. Recommended! Read the entire post. Work in progress!

Thank you all for inspiration in how to approach different stuff. There's also a very tiny bit of code theft, the "human mouse". Thanks for the function.

Last edited by Mattofsweden on Wed Mar 27, 2013 3:46 pm, edited 22 times in total.

The Original and "simple" Martingale double up red and black alternating macro.

How to use: * It should be fairly straight forward due to commented code.

1: Specify the casino window name. Don't be to exact. Omit session numbers etc (macro does a close match).2: Select how to use markers and their coordinates Humanly or chuck in one and the same over and over.3: You need to fix the "check if we won" function. Check "Good to know".4: You also need to fix how the macro determines readiness. Check "Good to know".5: Specify your betting limits.6: Try it out with fun money for a while until you're satisfied it works.7: Everything good? Post your version of the macro, which casino you where playing at, and if you've won anything.

Good to know:

* Detecting if we won or lost is now built up of two different checks depending on how you want it. Two checks for Red or Black respectively and one unified check. Which one to use depends on how easy it is to implement one or the other on the casino you're adjusting it for. Currently it's checking for markers returned on the table. Or rather, if there is no markers returned on that spot (area is green), we lost. That will work for all three checks as it is now. I do not know how to transfer this into selectable variables yet.

* Macro checks for "readiness" by checking if spin is available. Currently it checks colours on the spin button and repeats pauses until the colours appear. Adjust function to suit the particular casino you're using. This will probably be transferred into selectable variables later.

* Due to "human mouse movement", be precise when you input "middle" coordinates of markers, bet area and spin button. Adjust accuracy if the areas are small.

* Upper and lower betting limits are of actual currency. Not the amount of times to chuck in a chosen marker. Make sure you try it out on play for fun money first. I'm not 100% sure it behaves as it should.

* Current Values for Free Spin isn't good. Actually, using Free Spin might decrease your chance of winning when the stakes are high. Switch it off, do a mathematical analysis on it or just fiddle around with other values to see if it works for you.

VERSION HISTORYv1.3* Fixed bug in Human Betting: Initial bet equal to Marker 1 resulted in MarkerValue to not be set, it bugged out badly.* Switched off FreeSpin by default.

v1.2* Human Betting function rewritten. A little inefficient, but works as expected.* Free Spin quirk fixed. Will now wait a few rounds, unless explicitly specified in variable, to not do so.

v1.1* Statistics function fixed - I think* Free Spin works - with a quirk to be further worked upon.

This macro has a very different approach. Some functions have evolved, some are entirely new. Do not confuse these two!

What is specific with this one?!*HumanBettingMode was removed. I will put it back later if you complain too much * It uses FreeSpin if you choose to. It will Freespin until one of the colours have appeared a preset number of times in a row, then bet on the other colour. Improves your odds of winning greatly.

Known issues: * I think Free Spin randomly, but very seldom, counts wrong. Occurred once.* Somewhere during Free Spin, or upon moving to "place bets", a accidental click occurs way off. This is repeatable when using low bets, but I have not managed to track it down.* I'm now implementing redundancy all over, to make sure no errors occur, amongst them a clear bets function if bets are accidentally placed before actually "placing bets".

How to use: * It should be fairly straight forward due to commented code.

1: Specify the casino window name. Don't be to exact. Omit session numbers etc (macro does a close match).2: Insert coordinates and values of markers 1 to 7. If there is no marker 7, set value to 9999 and coordinates to 0 and 0 just to be safe.3: You need to adjust a few functions to match your casino. Check red and check black needs to be working spot on! Check "Good to know".4: You also need to fix how the macro determines readiness. Check "Good to know".5: Specify your betting limits.6: Try it out with fun money for a while until you're satisfied it works.7: Everything good? Post your version of the macro, which casino you where playing at, and if you've won anything.

Good to know:

* Detecting if we won or lost in this version is very much different than the last. It will check the statistics window for the colours at a specific location.

* Macro checks for "readiness" by checking if spin is available. Currently it checks if the spin button is not there, a black table border, and will do so until spin button appears. Adjust function to suit the particular casino you're using.

* Due to "human mouse movement", be precise when you input "middle" coordinates of markers, bet area and spin button. Adjust accuracy if the areas are small.

* Upper and lower betting limits are of actual currency. Not the amount of times to chuck in a chosen marker. Make sure you try it out on play for fun money first. I'm not 100% sure it behaves as it should.

* This one uses "FreeSpin" differently. It will Freespin until a colour has won a preset amount of times, then it will bet on the other colour. Having a very low number here will basically neglect the efficency, having a too high number will not work, because of statistics. Having it set to "four" will make earnings slow, but it will increase the odds of you turning up a win within two to three bettings.

VERSION HISTORY

v1.1 (Upcoming version)* Double checks and tripple checks to make sure it works.* Clear bets function. In case of any mishap. * Budget function. Maximum loss before quit and and win goal before quit.

function("Check red win") begin // For consistensy, we assume it did not land on red initially Variable.Set("RedWonNow", "No") Variable.Set("RedLostNow", "Yes") // Check statistics in casino window for red number at top right if Color.Near coordinate is (RGB)("255", "0", "0", "782", "60", "4") begin Variable.Set("RedWonNow", "Yes") end endfunction

function("Check black win") begin // For consistensy, we assume it did not land on black initially Variable.Set("BlackWonNow", "No") Variable.Set("BlackLostNow", "Yes") // Check statistics in casino window for black number at top left if Color.Near coordinate is (RGB)("255", "255", "0", "734", "60", "4") begin Variable.Set("BlackWonNow", "Yes") end endfunction

Hi. I have been trying out your bot and after some adjustments it works very good (I use the Improved v1.0 bot)

I would like to make a slight adjustment though, and I can't seem to figure it out. Here is an example of the behaviour I would like to have:

The bot starts betting 1 on Red. Then, if he wins, keeps on betting on red until black is rolled.

At that moment, the bot switches to black, until red is rolled and so on.

The thought behind it is to use series of the same color, which seems to happen very often in the casino I'm playing in (I know it's fully random, but I have tried both methods and the one I described seems to generate money faster)

I tried switching a few of the functions around, but everytime I tested it it only kept on betting red and never switched the color as I liked it.

I would be very grateful if you could push me in the right direction of how this could be done. Thanks a lot for your awesome work.

Hi. I have been trying out your bot and after some adjustments it works very good (I use the Improved v1.0 bot)

I would like to make a slight adjustment though, and I can't seem to figure it out. Here is an example of the behaviour I would like to have:

The bot starts betting 1 on Red. Then, if he wins, keeps on betting on red until black is rolled.

At that moment, the bot switches to black, until red is rolled and so on.

The thought behind it is to use series of the same color, which seems to happen very often in the casino I'm playing in (I know it's fully random, but I have tried both methods and the one I described seems to generate money faster)

I tried switching a few of the functions around, but everytime I tested it it only kept on betting red and never switched the color as I liked it.

I would be very grateful if you could push me in the right direction of how this could be done. Thanks a lot for your awesome work.

Strainer

Basically, at current implementation FreeSpin function chooses the color to bet on depending on winning color streaks (three in a row, bet on opposite).If FreeSpin is killed (FreeSpin = No), the "did win" function assumes responsibility and switches color to the opposite upon a win.

If you want the behaviour you've specified, chasing the color just won, you need to kill freespin (by initial variable) and remove the did win color switching.Thereafter you will have to make "did not win" function assume responsibility of color switch. I think you just could copy the already implemented color switch in that function, as that now only takes place if we've bet enough and freespin is killed.

Did not win should thus look something like this:Note: We might have a problem though. I'm not sure my double check is entirely accurate, hence if "bet enough" is reached, it will perform a color switch. That "might" be reversed by the added code, if I didn't do everything right the first time around.

Hey im new here on the forum and i have never programmed. I think this martingale system macro looks interesting ,but im not that comfortable letting a bot make the betting part im wondering if its possible to use the free spinning part of the macro and do the betting my self after x in arow has came up ?

I don't know much about programming, so this have been a interesting ride. There's a few bots around here in the forum, but, none really to my satisfaction. I want total adaptability so it can fit whichever online casino I choose to play on. Hence, this little project.

The Macros: Each type/version in their own post with their own info: 1: The Original and not so "simple" Martingale double up red and black alternating macro. 2: The Improved version. Recommended! Read the entire post. Work in progress!

Thank you all for inspiration in how to approach different stuff. There's also a very tiny bit of code theft, the "human mouse". Thanks for the function.