How to write a simple (MMO)RPG bot in C# part 1
How to write a simple (MMO)RPG bot in C# part 2
by C3ops
How to write a simple (MMO)RPG bot in C# part 1
How to write a simple (MMO)RPG bot in C# part 2
by C3ops
Thanks for this post, realy help-me.
Thank you very much for this tutorial.
im getting many errors tho, for example in this sentence
grp.CopyFromScreen(new Point (X, Y), Point.Empty, new Size(1,1));
i dont get a Cyan color so there is something wrong with that.
i dont know if im running wrong libraries or wich mistake im doing but i get tons of errors, im stuck after the message box part
here is all my codeSpoiler
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Drawing.Imaging;
namespace WindowsFormsApplication4
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
int GetPixel(int X, int Y)
(
Bitmap bmp = new Bitmap (1, 1, PixelFormat.Format32bppArgb);
Graphics grp = Graphics.FromImage(bmp);
grp.CopyFromScreen(new Point (X, Y), Point.Empty, new Size(1,1));
grp.Save();
return bmp.GetPixel(0, 0).ToArgb();
)
private void Form1_Load(object sender, EventArgs e)
{
MessageBox.Show(GetPixel(1763,1818).ToString());
}
}
}
are you really have 1763 x 1818 resolution??...
program try to get pixel on image that you been make from screen on point X = 1763 and Y = 1818..
can you tell me what error is?..
Learn from PGC for Share on PGC..
- [Please, register to view links]
- [Please, register to view links]
- [Please, register to view links]
- [Please, register to view links]
For another Stuff i have make try to find it [Please, register to view links]
If i have help you, please thanks and respect ..
Sorry bro hahaha i wish i had a monitor that big
yes, let me run the program once more,
i got 14 errors, mostly missing tokens, expected ; and generally that happens when i code wrong, perhaps he is using a library i dont
have?
here is the fixed code it should run in any pcSpoiler
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Drawing.Imaging;
namespace ArBotv1._1alphatest
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
int GetPixel(int X, int Y)
(
Bitmap bmp = new Bitmap (1, 1, PixelFormat.Format32bppPArgb);
Graphics grp = Graphics.FromImage(bmp);
grp.CopyFromScreen (new Point(i,j), Point.Empty, new Size(1,1));
grp.Save();
return bmp.Getpixel (0 , 0).toArgb();
)
private void Form1_Load(object sender, EventArgs e)
{
MessageBox.Show (GetPixel(308,209).toString());
}
}
}
P.S: Sorry for my bad english my fluent language is spanish, thank you very much for your reply.
Hahaha Sorry bro...
i just asking maybe the resolution is a problem..
here is the code i have repair it for you :
Spoiler
Code:using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Drawing.Imaging; namespace ForTest { public partial class Form1 : Form { public Form1() { InitializeComponent(); } public int GetPixel(int x, int y) { Bitmap bmp = new Bitmap (1, 1, PixelFormat.Format32bppPArgb); Graphics grp = Graphics.FromImage(bmp); grp.CopyFromScreen (new Point(x,y), Point.Empty, new Size(1,1)); grp.Save(); return bmp.GetPixel(x, y).ToArgb(); } private void Form1_Load(object sender, EventArgs e) { MessageBox.Show(GetPixel(1763, 1818).ToString()); } } }
Learn from PGC for Share on PGC..
- [Please, register to view links]
- [Please, register to view links]
- [Please, register to view links]
- [Please, register to view links]
For another Stuff i have make try to find it [Please, register to view links]
If i have help you, please thanks and respect ..
haha...
No Problem...
Hope what u make is will be shared here ..
and yeah thx for the cookies
Learn from PGC for Share on PGC..
- [Please, register to view links]
- [Please, register to view links]
- [Please, register to view links]
- [Please, register to view links]
For another Stuff i have make try to find it [Please, register to view links]
If i have help you, please thanks and respect ..
Hi I can't download the MLib file from the video, does anyone have a copy of MLib.dll that you would like to share? Thanks
OMW to improve mine C Skills xD
Thanks!