Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Launcher

Newbie Spellweaver
Joined
Mar 28, 2017
Messages
49
Reaction score
1
Good Morning .I am doing a launcher, and would like to know if it is possible to open the program in C # as it opens in cmd.in cmd we can open by commandstart maplestory.exe 127.0.0.1(IP) 8484(PORT)in C # how would you do it?

Process.Start("MapleStory.exe"........); << DONT'S WORK
 
(O_o(o_O(O_O)o_O)O_o)
Loyal Member
Joined
Apr 9, 2009
Messages
1,088
Reaction score
322
Just do like
PHP:
string path = Directory.GetCurrentDirectory();
if (!File.Exists(path + "\\MapleStory.exe"))
{
     MessageBox.Show("Unable to locate MapleStory.exe.\r\n\r\nPlease move this client into your maplestory folder.");
}
else
{
     ProcessStartInfo startInfo = new ProcessStartInfo(string.Concat(path, "\\", "MapleStory.exe"));
     startInfo.Arguments = "-GameLaunching";
     startInfo.UseShellExecute = false;
     Process.Start(startInfo);
}
 
Upvote 0
Newbie Spellweaver
Joined
Mar 28, 2017
Messages
49
Reaction score
1
Just do like
PHP:
string path = Directory.GetCurrentDirectory();
if (!File.Exists(path + "\\MapleStory.exe"))
{
     MessageBox.Show("Unable to locate MapleStory.exe.\r\n\r\nPlease move this client into your maplestory folder.");
}
else
{
     ProcessStartInfo startInfo = new ProcessStartInfo(string.Concat(path, "\\", "MapleStory.exe"));
     startInfo.Arguments = "-GameLaunching";
     startInfo.UseShellExecute = false;
     Process.Start(startInfo);
}

Where would you place the ip?
 
Upvote 0
Newbie Spellweaver
Joined
Sep 14, 2013
Messages
87
Reaction score
4
PHP:
string genArgs = "127.0.0.1 8484";                
string pathToFile = "MapleStory.exe";                
Process runProg = new Process();                
runProg.StartInfo.FileName = pathToFile;                
runProg.StartInfo.Arguments = genArgs;                
runProg.StartInfo.CreateNoWindow = true;                
runProg.Start();
 
Upvote 0
Newbie Spellweaver
Joined
Mar 28, 2017
Messages
49
Reaction score
1
PHP:
string genArgs = "127.0.0.1 8484";                
string pathToFile = "MapleStory.exe";                
Process runProg = new Process();                
runProg.StartInfo.FileName = pathToFile;                
runProg.StartInfo.Arguments = genArgs;                
runProg.StartInfo.CreateNoWindow = true;                
runProg.Start();
thanks. it worked
 
Upvote 0
Joined
Oct 16, 2004
Messages
895
Reaction score
96
Code:
        Try
                Dim proc As New Process
                proc.StartInfo.FileName = Application.StartupPath & "\MapleStory.exe"
                proc.StartInfo.Arguments = "127.0.0.1 8484"
                proc.StartInfo.UseShellExecute = False
                proc.Start()

        Catch ex As Exception
            MsgBox(ex.Message, vbCritical)

        End Try
If you wish to have an Auto Updater, I can provide you my services.
 
Upvote 0
Back
Top