Results 1 to 5 of 5
  1. #1
    HappyMan20's Avatar
    Join Date
    May 2013
    Gender
    male
    Posts
    295
    Reputation
    10
    Thanks
    35
    My Mood
    Relaxed

    If you know C# please read

    I am trying to create an advanced trade bot using image search on the screen. I am using a program called Jitbit Macro Recorder. I can create an if statement with an image but it only searches for one image and then continues after finding the one image or not finding the image. In the Macro recorder it has the option to input C# code and then run it. So basically I am trying to make it search for a certain number of images say 5 and report back if it finds 5 images or not. Maybe have it upload (say pot.png) an image to search for and search the screen for images.

    English version (this is what I need help making)

    If "pot.png" found five times
    statement is true (read next line of code)
    statement is false (goto end if)


    When I open the command to edit in the macro recorder this is in the text box.
    https://imgur.com/o8APIM8

    public class Program
    {
    public static void Main()
    {
    System.Windows.Forms.MessageBox.Show("test");
    }
    }

    Below text box:
    IMPORTANT: This code MUST contain a class name "Program" with a static method "Main".


    If you need more details or have questions post below or pm me.
    Last edited by HappyMan20; 01-23-2014 at 06:36 PM.

  2. The Following User Says Thank You to HappyMan20 For This Useful Post:

    nilly (01-24-2014)

  3. #2
    krazyshank's Avatar
    Join Date
    Jan 2012
    Gender
    male
    Location
    RealmStock
    Posts
    2,589
    Reputation
    467
    Thanks
    16,673
    My Mood
    Angelic
    The code is fine, it should run just fine.
    Post some pics?
    Last edited by krazyshank; 01-23-2014 at 05:34 PM.

    Accepting PayPal - Bitcoin - Giftcards - Items:

    Find it here: MPGH Sales Thread

  4. #3
    HappyMan20's Avatar
    Join Date
    May 2013
    Gender
    male
    Posts
    295
    Reputation
    10
    Thanks
    35
    My Mood
    Relaxed
    Quote Originally Posted by krazyshank View Post
    The code is fine, it should run just fine.
    Post some pics?
    Do you know C#? I am not sure what to do with this "This code MUST contain a class name "Program" with a static method "Main"." What does the class and static method mean?

    https://imgur.com/o8APIM8
    Last edited by HappyMan20; 01-23-2014 at 06:36 PM.

  5. #4
    krazyshank's Avatar
    Join Date
    Jan 2012
    Gender
    male
    Location
    RealmStock
    Posts
    2,589
    Reputation
    467
    Thanks
    16,673
    My Mood
    Angelic
    Quote Originally Posted by HappyMan20 View Post
    Do you know C#? I am not sure what to do with this "This code MUST contain a class name "Program" with a static method "Main"." What does the class and static method mean?

    https://imgur.com/o8APIM8
    Yes I know c#..
    That message is not an error, it a warning. If you don't know what it means, you should go learn c# first.
    Main is your entry point of your program, the first thing that is called that makes it start. Program is a class which incapsulates your code, a fundamental core of an object oriented language like c#. Your method, Main, must be in a class. Static just means only one instance of it exists, and always exists, and you access it without an object reference.

    Accepting PayPal - Bitcoin - Giftcards - Items:

    Find it here: MPGH Sales Thread

  6. #5
    unheXed's Avatar
    Join Date
    Sep 2013
    Gender
    male
    Posts
    34
    Reputation
    10
    Thanks
    1
    Quote Originally Posted by HappyMan20 View Post
    I am trying to create an advanced trade bot using image search on the screen. I am using a program called Jitbit Macro Recorder.
    Lol'd so hard

Similar Threads

  1. Replies: 34
    Last Post: 10-25-2011, 10:47 PM
  2. READ READ READ IMPORTANT OBAMA HELP ME OR DAVE PLEASE !!!
    By Artixion705 in forum Flaming & Rage
    Replies: 8
    Last Post: 06-20-2010, 10:23 PM
  3. [Request] [READ] Recruiting 2 Coders for Combat Arms EU Section [READ]
    By Trunky in forum Combat Arms Europe Hacks
    Replies: 10
    Last Post: 10-03-2009, 06:44 AM
  4. [READ] MPGH Combat Arms Public Hack? [READ]
    By Trunky in forum Combat Arms Discussions
    Replies: 45
    Last Post: 09-20-2009, 10:23 AM
  5. [READ] Final Update - Combat Arms Help Team [READ]
    By Trunky in forum Combat Arms Discussions
    Replies: 17
    Last Post: 09-14-2009, 04:02 AM

Tags for this Thread