HelpCA Opener.

Posts 115 of 15 · Page 1 of 1
CA Opener.
Hey guys can some one hp me with something?
What's the code to make CA opener like
There's a button click it browses for CA or any game. Then another button says launch u click it and it automaticly launches game with out putting it in Game folder.
Please help. Thanks..

Program: VisualBasic 2010
Just have a program have 2 buttons, 1 that opens an openfiledialog, which makes the user select Engine.exe, and then when the second button (launch button) is clicked, Process.Start the openfiledialog location, which should be where Engine.exe is located.

I decided to code it as well (in c#)...

Make:
1 Label
2 Buttons (1 to browse, 1 to launch)

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.Diagnostics;

namespace Random_Project
{
    public partial class Form1 : Form
    {
        string EngineLocation;

        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            OpenFileDialog openFileDialog1 = new OpenFileDialog();

            if (openFileDialog1.ShowDialog() == DialogResult.OK)
            {
                EngineLocation = openFileDialog1.FileName;
                label1.Text = EngineLocation;
            }
        }

        private void button2_Click(object sender, EventArgs e)
        {
            Process.Start(EngineLocation);
        }
    }
}
Quote Originally Posted by Shadow` View Post
Just have a program have 2 buttons, 1 that opens an openfiledialog, which makes the user select Engine.exe, and then when the second button (launch button) is clicked, Process.Start the openfiledialog location, which should be where Engine.exe is located.

I decided to code it as well (in c#)...

Make:
1 Label
2 Buttons (1 to browse, 1 to launch)

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.Diagnostics;

namespace Random_Project
{
    public partial class Form1 : Form
    {
        string EngineLocation;

        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            OpenFileDialog openFileDialog1 = new OpenFileDialog();

            if (openFileDialog1.ShowDialog() == DialogResult.OK)
            {
                EngineLocation = openFileDialog1.FileName;
                label1.Text = EngineLocation;
            }
        }

        private void button2_Click(object sender, EventArgs e)
        {
            Process.Start(EngineLocation);
        }
    }
}

Does it work for vb2010
Quote Originally Posted by Stanman08 View Post
Does it work for vb2010
If you adapt the code...
Quote Originally Posted by Stanman08 View Post
Does it work for vb2010
I don't know if you can read or not, but he clearly states this code is in the language C#.
Quote Originally Posted by Saltine View Post

I don't know if you can read or not, but he clearly states this code is in the language C#.
I can read -_- im just asking...
Obviously not in that form, convert it into VB code... then it will!
Strange you guys write your hacks in C++ but for anything else its C# or VB.net, why? im sure you know enough C++ to write other thing besides hacks?
nothing wrong with C# of cause, I think they should never have released the vb.net and just kept with C# as it is the most easiest language to program in with powerful features.
Quote Originally Posted by Departure View Post
Strange you guys write your hacks in C++ but for anything else its C# or VB.net, why? im sure you know enough C++ to write other thing besides hacks?
nothing wrong with C# of cause, I think they should never have released the vb.net and just kept with C# as it is the most easiest language to program in with powerful features.
I like to code in a variety of languages, I actually prefer c# over c++.
Quote Originally Posted by Departure View Post
Strange you guys write your hacks in C++ but for anything else its C# or VB.net, why? im sure you know enough C++ to write other thing besides hacks?
nothing wrong with C# of cause, I think they should never have released the vb.net and just kept with C# as it is the most easiest language to program in with powerful features.
Most people here know more of the simpler languages then they do of C++
Everyone knows you don't need to know much C++ to make a hack when you can just pick up a base like MOST people here.
Quote Originally Posted by Shadow` View Post
I like to code in a variety of languages, I actually prefer c# over c++.
Why would ever use a weaker language? I'm guessing you would prefer a Honda over a BMW too? When you code in C# you're coding in VB.net with a different syntax. C# just allows you to handle pointers better than VB.net. If you can code in C/C++ you shouldn't need to use any other language to make programs.
Quote Originally Posted by ****** View Post


Why would ever use a weaker language? I'm guessing you would prefer a Honda over a BMW too? When you code in C# you're coding in VB.net with a different syntax. C# just allows you to handle pointers better than VB.net. If you can code in C/C++ you shouldn't need to use any other language to make programs.
Did you even read my earlier post? I prefer coding in c#, it's a personal preference. If I wanted to do it in C/C++, that's how it would have been done. I really don't know why I have to explain this, it's common sense. The kid also asked for something in visual basic, so if I did it in C/C++ it would have just confused him even more. I didn't do it in visual basic because I hate visual basic. I don't care if it's a "weaker" language or not, it's what you get out of it and how you enjoy it. If I like a Honda better than a BMW, I'll use a Honda. Coding because it's a "stronger" language is stupid if you don't prefer it and have a choice, especially since this is an extremely small program.

Example:
Lets say I have a job that I make around $80,000 a year, but I don't like it.
Now, there is another job that I make $50,000 a year, and I like it.

I would choose the latter job, since I prefer it.

I don't "need" to use the same language, it's my choice. And no lol, coding in c# is not coding in visual basic with a different syntax.
Quote Originally Posted by Shadow` View Post
Did you even read my earlier post? I prefer coding in c#, it's a personal preference. If I wanted to do it in C/C++, that's how it would have been done. I really don't know why I have to explain this, it's common sense. The kid also asked for something in visual basic, so if I did it in C/C++ it would have just confused him even more. I didn't do it in visual basic because I hate visual basic. I don't care if it's a "weaker" language or not, it's what you get out of it and how you enjoy it. If I like a Honda better than a BMW, I'll use a Honda. Coding because it's a "stronger" language is stupid if you don't prefer it and have a choice, especially since this is an extremely small program.

Example:
Lets say I have a job that I make around $80,000 a year, but I don't like it.
Now, there is another job that I make $50,000 a year, and I like it.

I would choose the latter job, since I prefer it.

I don't "need" to use the same language, it's my choice. And no lol, coding in c# is not coding in visual basic with a different syntax.
C# is Visual Basic with a different syntax. At the end of the day any program you make in C# or Visual Basic is interpreted by .Net Framework. Also any logical person would take the job paying 80K year no matter if they liked it or not because they would gain more from it. I just think it's funny that you would prefer C# over C++ when C++ is better in every way. Unless you want to make a program that hogs a bunch of memory.
Quote Originally Posted by ****** View Post


C# is Visual Basic with a different syntax. At the end of the day any program you make in C# or Visual Basic is interpreted by .Net Framework. Also any logical person would take the job paying 80K year no matter if they liked it or not because they would gain more from it. I just think it's funny that you would prefer C# over C++ when C++ is better in every way. Unless you want to make a program that hogs a bunch of memory.
It's your choice if you want to make decisions based on how effective or better they may be, but unlike you, I choose things that will make the thing enjoyable and fun. I find it funny how you're so blind to this... Who even cares what I code in to be honest, it's what I feel is right at the time. And no, that $30,000 difference would not pay off if you don't like how you made it. If you enjoy something, do it. I wouldn't take a job that I hate. If you don't get my point of view, then don't bother replying. It's pointless to have a discussion with someone who is flame baiting, actually present your side without aggravation, then it will be worth discussing.
Just pm/vm a coder you trust. This thread has gotten way out of hand. @Stanman08
Posts 115 of 15 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?