Login to get access to all resources of Money Maker Machine - Forum
Open Source Roulette Systems and Roulette Tools Forum.
June 20, 2013, 01:41:49 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
French German Italian Dutch Spanish Portuguese Korean Chinese Simplified Japanese Greek Arabic Russian
 
   Home   Help Search Tags Login Register  
Del.icio.us Digg FURL FaceBook Stumble Upon Reddit SlashDot

Pages: [1]   Go Down
  Print  
Author Topic: Tom's RSS Pro: Tutorial V3 (Coding) In Depth  (Read 183 times)
0 Members and 1 Guest are viewing this topic.
thomasgrant
Moderator
Trade Count: (+1)
Hero Member
*****

Karma: 1643
Offline Offline

:Yesterday at 01:03:50 PM
Posts: 3088
Referrals: 21



Activity
40%

RSS Writer and Teacher


WWW
« on: July 27, 2010, 03:31:12 AM »

This next Tutorial will be an In Depth Look Into Coding.
Everything I know about coding.
Or everything I learnt about coding.
Just from asking questions.

I must point out, that I am not an expert in coding.
Or writing scripts. I just ask questions.
And try out things that I learn.

I have my way of writing code.
I try and make it as logical as possible.
With lots of comments.
Just so I know what it is I am doing.

I will be using this post as a sounding board.
Trying out my ideas. And seeing if they work.

Hopefully, by the end of it.
I will have a bot that does exactly what I want it to.
With all the features I want in it.

Well, I hope that didn't deter you from following on.
As I begin this rant.

So let's get started...
Logged

"Live long and prosper." Spock
www.thomasrgrant.com

The Roulette Professor.
http://rouletteprofesor.com/
thomasgrant
Moderator
Trade Count: (+1)
Hero Member
*****

Karma: 1643
Offline Offline

:Yesterday at 01:03:50 PM
Posts: 3088
Referrals: 21



Activity
40%

RSS Writer and Teacher


WWW
« Reply #1 on: July 27, 2010, 03:56:51 AM »

THE CODE

There is a great deal on writing code with Pascal on the internet.
Just do a search for Pascal or Delphi.
And I am sure you will come up with many links that can teach you something.

Here is an example.
http://pascalprogramming.byethost15.com/lesson1.php

Pascal is not that hard.
It is fairly logical code.

So I hope that what little I have learnt over the past few years.
May assist you in some small way.

This will be a hands on Tutorial.
That means, I will be coding as I write this.
And implementing it into my bot.
Let's get started with some terms.

VARIABLES.
 
VAR for short.

What is it?
And how do you use them?

This is all my point of view.
So it may or may not be accurate.

VAR (Variable)
Is something you assign to something.

Let's look at an example.

Var name;

name:='Coco';
Print ('My dog is called '+name)'

That will print out this result.
"My dog is called Coco"

That is about as simple of an explanation of what a variable is.

Here is a bunch of variables that I did for a project of mine.

Code:
{###### Variables ##########}
var F : Text;
    S : String;
{InputQuery variables}
var qr,decision,decide;
{Chips, chip units, min chip settings}
var CU,chips,chips_set,Chip1,Chip2,Chip3,Chip4,Chip5,Chip6,Chip7,min_chip,chip_q;
{Print Variables}
var PT,pn,n,i,ds,nos;
{Cash amounts variables}
var start_amount,wish_amount,amount,stop_loss;
{Array Variables}
var gv,el_n;
{Casino Variables}
var CasinoName,TableName,TN,csp;
{Operation Variables}
var last_nr,ch_n,unit_value,spin_count,fl_stop,was_betting,sim_mode;
{Element Variables}
var k_el,k_el1,el_name,set_name;
var elements,elements1;
var elements_played,total_elements;
{Date variables}
var Year,Month,Day,h,m,sec,ms
{###### End Variables ######}

Many of these variables will be used in this application.

If you want a full description of what a variable is.
And how they are used.

Then LOOK IT UP...
Do a search on the internet for information.

How do you think I found out how to do this sort of stuff?
--------------------------------------------------------------

Variables can be used for anything.
And your scripts that you make.
Will need variables to make it run.
Logged

"Live long and prosper." Spock
www.thomasrgrant.com

The Roulette Professor.
http://rouletteprofesor.com/
thomasgrant
Moderator
Trade Count: (+1)
Hero Member
*****

Karma: 1643
Offline Offline

:Yesterday at 01:03:50 PM
Posts: 3088
Referrals: 21



Activity
40%

RSS Writer and Teacher


WWW
« Reply #2 on: July 27, 2010, 06:30:17 AM »

Procedures
and
Functions


Here is a simple Button Object on the form.
http://rouletteprofesor.com/rss-pro/my_bot_v3/10.jpg
Tom's RSS Pro: Tutorial V3 (Coding) In Depth


And these are the events you can have with it.
http://rouletteprofesor.com/rss-pro/my_bot_v3/events.jpg
Tom's RSS Pro: Tutorial V3 (Coding) In Depth


When you double click on the button.
It creates a procedure for you automatically.

Code:
procedure Button1Click(Sender: TObject);
begin
  
end;

In between
begin

end;

Is where you enter in your code.

You can also give it a local variable at before it begins.

Code:
procedure Button1Click(Sender: TObject);
var name;{your name}
begin
  
end;

You can see I added in the variable name.
And I added in a comment after it.
{your name}

{} You use these to place comments.
Or you use this
// to place comments.

Functions

I must admit.
I don't know much about Functions.
Or what they do. Or how to use them.
But from what I do know.
They are similar to Procedures.

The functions that I use.
Where created by Silver.
He is the code guy at MMM.

Here is one of his functions that I use in my scripts.
Code:
function in_array(i_nr,i_array):boolean;
{check if the i_nr value is from the i_array array}
var k;
begin
result:=false;
for k:=0 to VarArrayHighBound(i_array,1) do
begin
if i_nr=i_array[k] then
begin
result:=True;
break;
end;
end;
end;

I had to look up what boolean meant.
I had no idea. Found out it has something to do with math.
And math, was not my favourite topic at school.

I understand procedures a lot more.
And how to use them.

So I will be concentrating on them.
« Last Edit: July 27, 2010, 08:36:19 AM by thomasgrant » Logged

"Live long and prosper." Spock
www.thomasrgrant.com

The Roulette Professor.
http://rouletteprofesor.com/
thomasgrant
Moderator
Trade Count: (+1)
Hero Member
*****

Karma: 1643
Offline Offline

:Yesterday at 01:03:50 PM
Posts: 3088
Referrals: 21



Activity
40%

RSS Writer and Teacher


WWW
« Reply #3 on: July 27, 2010, 08:43:30 AM »

Local and Global Variables.

Code:
procedure Button1Click(Sender: TObject);
begin
 
end;

Code:
procedure Button1Click(Sender: TObject);
var name;{Local variable}
begin
 
end;

Local Variables
Are just that.
They are variables that are use only in the confines of that procedure or function.

var youname,familyname,kidsname;

When you have these at the start of the script.
They are are Global Variables.
And are used throughout the entires script.
Logged

"Live long and prosper." Spock
www.thomasrgrant.com

The Roulette Professor.
http://rouletteprofesor.com/
thomasgrant
Moderator
Trade Count: (+1)
Hero Member
*****

Karma: 1643
Offline Offline

:Yesterday at 01:03:50 PM
Posts: 3088
Referrals: 21



Activity
40%

RSS Writer and Teacher


WWW
« Reply #4 on: July 29, 2010, 03:26:03 AM »

Ok, I have done nice code for my bot.
Came up with some good ideas.
I am in the process of writing it.
Then testing each step.
Got a few more things to do.
But it is looking good.

At the moment, I am trying to figure out how to transfer most of my
RSS script over to RSS PRO.

And then test it out.

Just not sure who in here is truly interested.
Logged

"Live long and prosper." Spock
www.thomasrgrant.com

The Roulette Professor.
http://rouletteprofesor.com/
MMM Admin
MMM Admin
Trade Count: (+2)
Hero Member
*****

Karma: 6440
Offline Offline

:Today at 12:58:36 AM
Posts: 7676
Referrals: 21



Activity
70%

We do the impossible.

Google Talk
WWW
« Reply #5 on: July 29, 2010, 03:35:00 PM »

Thomas believe me many will be interested in this.

The idea is related to the angle from which is to look on such information.

So like I told you before, what you do will be appreciated a lot during the time.
Logged
thomasgrant
Moderator
Trade Count: (+1)
Hero Member
*****

Karma: 1643
Offline Offline

:Yesterday at 01:03:50 PM
Posts: 3088
Referrals: 21



Activity
40%

RSS Writer and Teacher


WWW
« Reply #6 on: July 29, 2010, 05:25:16 PM »

Well, if you all wana see what I have done so far.
Here it is.
This is the bot in action.
After some coding.
I got it to do what I want it to do.
Well almost.
Still along way to go.

Here is the link to the video.

http://rouletteprofesor.com/rss-pro/my-bot-v3.html

I have also uploaded the src code.

* My_Bot_V3.3_RSS.zip (15.45 KB - downloaded 14 times.)
Logged

"Live long and prosper." Spock
www.thomasrgrant.com

The Roulette Professor.
http://rouletteprofesor.com/
thomasgrant
Moderator
Trade Count: (+1)
Hero Member
*****

Karma: 1643
Offline Offline

:Yesterday at 01:03:50 PM
Posts: 3088
Referrals: 21



Activity
40%

RSS Writer and Teacher


WWW
« Reply #7 on: July 29, 2010, 05:31:35 PM »

Just remember,
I created this.
With RSS Pro.
And if I can do it.
You can to.

Lots of good ideas in this one.
Logged

"Live long and prosper." Spock
www.thomasrgrant.com

The Roulette Professor.
http://rouletteprofesor.com/
MMM Admin
MMM Admin
Trade Count: (+2)
Hero Member
*****

Karma: 6440
Offline Offline

:Today at 12:58:36 AM
Posts: 7676
Referrals: 21



Activity
70%

We do the impossible.

Google Talk
WWW
« Reply #8 on: July 29, 2010, 06:17:08 PM »

Quote
Just remember,
I created this.
With RSS Pro.
And if I can do it.
You can to.

Lots of good ideas in this one.

You are right Thomas.
This will be a lesson for all newbie who want to make their own bots with RSS Pro.
Logged
floodish
Guest
Trade Count: (0)
« Reply #9 on: July 29, 2010, 11:27:20 PM »

Hi Tom, Im not able to watch your video, is there any way you can upload this video file on YouTube or send it to me.
Thanks

BTW, great work!
Logged
floodish
Guest
Trade Count: (0)
« Reply #10 on: July 29, 2010, 11:28:40 PM »

You can send it here:      floodish78@hotmail.com

Or maybe also a rapidshare direct link upload.

Thanks
Logged
thomasgrant
Moderator
Trade Count: (+1)
Hero Member
*****

Karma: 1643
Offline Offline

:Yesterday at 01:03:50 PM
Posts: 3088
Referrals: 21



Activity
40%

RSS Writer and Teacher


WWW
« Reply #11 on: July 30, 2010, 04:08:08 AM »

Hi Tom, Im not able to watch your video, is there any way you can upload this video file on YouTube or send it to me.
Thanks

BTW, great work!


Yeah, ok.
Seems like some people are having problems with viewing it.
So here is the youtube link.

<a href="http://www.youtube.com/v/_oL1lTlcnvU&amp;ap=%2526fmt%3D18&amp;rel=0" target="_blank">http://www.youtube.com/v/_oL1lTlcnvU&amp;ap=%2526fmt%3D18&amp;rel=0</a>
Logged

"Live long and prosper." Spock
www.thomasrgrant.com

The Roulette Professor.
http://rouletteprofesor.com/
MMM Admin
MMM Admin
Trade Count: (+2)
Hero Member
*****

Karma: 6440
Offline Offline

:Today at 12:58:36 AM
Posts: 7676
Referrals: 21



Activity
70%

We do the impossible.

Google Talk
WWW
« Reply #12 on: July 30, 2010, 11:40:51 AM »

Quote
Yeah, ok.
Seems like some people are having problems with viewing it.
So here is the youtube link.

I also tried several time your videos from your site so there all run slow.

Maybe you will post all on YouTube in HD mode and with MAX Window feature all will benefit from the full potential of your videos.
Logged
Tags:
Pages: [1]   Go Up
  Print  
 
Jump to:  


Related Topics
Subject Started by Replies Views Last post
Tom's first RSS Pro Tutorial.
Tom's Tutorial Zone
thomasgrant 2 416 Last post July 20, 2010, 04:24:48 AM
by floodish
Tom's RSS Pro: Tutorial V3
Tom's Tutorial Zone
thomasgrant 2 102 Last post July 22, 2010, 04:22:34 PM
by thomasgrant
Tom's RSS Pro: Tutorial V3 (Design) In Depth « 1 2 »
Tom's Tutorial Zone
thomasgrant 23 167 Last post July 27, 2010, 03:18:14 AM
by thomasgrant
RSS-Pro-tutorial
Tom's Tutorial Zone
thomasgrant 1 147 Last post July 30, 2010, 11:39:30 AM
by MMM Admin
Tom's RSS Pro: Tutorial V4 (Design) In Depth
Tom's Tutorial Zone
thomasgrant 13 227 Last post August 12, 2010, 01:21:50 PM
by thomasgrant
Tom's RSS Pro: Tutorial V4 (Code) In Depth
Tom's Tutorial Zone
thomasgrant 11 172 Last post August 12, 2010, 09:16:51 PM
by thomasgrant
Good coding resources
General Discussion
Matthew 3 350 Last post March 31, 2011, 09:19:18 AM
by thomasgrant
Request for Coding Services
SILVER's Coding Room
pjk1966 3 144 Last post September 14, 2011, 09:47:56 PM
by Silver
winning roulette system on longterm..need coding
SILVER's Coding Room
patisake 1 157 Last post March 21, 2012, 08:07:28 AM
by Silver
Coding Problem
SILVER's Coding Room
mojomeister 1 108 Last post March 21, 2013, 08:56:57 AM
by Silver
Roulette System Coding
Projects
esthermoore 3 174 Last post April 25, 2013, 08:26:08 AM
by MMM Admin
Powered by MySQL Powered by PHP Money Maker Machine © 2007-2011
Powered by SMF | SMF © 2006, Simple Machines
SMFAds for Free Forums | Sitemap | Sitemap
Valid XHTML 1.0! Valid CSS!


June 09, 2013, 07:55:38 PM