Jump to content

Creating your own Launcher using VB6 (EZ as π)


sandbox

Recommended Posts


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  949
  • Reputation:   173
  • Joined:  06/12/12
  • Last Seen:  

Want to make a new add-on for your server?! Here's a 10-step guide on how to create your own launcher for your server. This would serve great as a one-way directory for your players, you can easily redirect them to your applications, website, etc!

 

Disclaimer

I used VB6 because most players do not have a .NET framework version later then 3.0ish installed

Step 1: Download VB 6.0 portable, Run it afterwards. Don't forget to press Reg Key before running it.

k3x4t2.jpg

 

Step 2: Select Standard EXE

2q2mmwp.jpg

 

Step 3: Click on the main form, then edit Caption under the Properties tab(lower right) rename it to your server name or whatever title you want. You can also re-size the form to whatever size you want your launcher to look like by dragging the borders, like how you re-size normal windows.

4zyuza.jpg

 

Step 4(Optional): Place an icon by browsing the file upon clicking Icon property.

2yk16kn.jpg

 

Step 5: Create a button to launch your Patcher/Exe! By clicking the Command Button tool on the toolbox(left side), then dragging the desired size that you want on your main form.

5z2v0g.jpg

 

Step 6(Optional): Create another button to launch Setup or any file that your players often access.

z3046.jpg

 

Step 7(Optional): Add your logo or banner to make your launcher pretty! Simply click the Picture Box tool, only two icons above the command button icon. Then browse for your logo by clicking the Picture property

9b9o9j.jpg

 

Step 8: Time to code those buttons! Simply double click the Patcher button we made earlier, the coding area will pop-up afterwards. Copy the codes written in the photo or paste the code below. Don't forget to replace "Your RO Patcher.exe" to the name of your patcher/exe file!

Dim RetVal
RetVal = Shell("Your RO Patcher.exe",1)
Unload Form1

245gb2h.jpg

 

Step 9: Now, let's put the code for running the Setup.exe! Now, why is it much shorter? 'Cause the code below is needed to be used instead of the one below, only IF your exe/patcher contains spaces.

Shell ("Setup.exe")
Unload Form1

25gql2r.jpg

 

Step 10: Save your project then compile it! Go to File > Make Project1.exe

hvwie0.jpg

 

Hurray, we're done! Here's the finished product of what we created!

 

Now, just simply place this on the root folder of your RO files, along with setup, patcher, etc. so you wouldn't get errors!

2cglsaa.jpg

 

To improve the design and functionality of your launcher, you might wanna add & explore some functions & properties of forms and controls!

  • Upvote 4
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  127
  • Topics Per Day:  0.03
  • Content Count:  1445
  • Reputation:   163
  • Joined:  08/17/13
  • Last Seen:  

coool thank you for the release o:!!!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  96
  • Reputation:   1
  • Joined:  03/07/12
  • Last Seen:  

How to setup auto start exe ?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  82
  • Topics Per Day:  0.02
  • Content Count:  846
  • Reputation:   136
  • Joined:  02/26/14
  • Last Seen:  

Also Maybe add in a guide for creating the Login Screen for users who require a Launcher to login?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  949
  • Reputation:   173
  • Joined:  06/12/12
  • Last Seen:  

How to setup auto start exe ?

 

Auto-start from what?

 

Also Maybe add in a guide for creating the Login Screen for users who require a Launcher to login?

 

That, I might not be able to make. I'm not pro with gfx unfortunately.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  96
  • Reputation:   1
  • Joined:  03/07/12
  • Last Seen:  

 

 

Auto-start from what?

 

from client seem likes splash screen.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  949
  • Reputation:   173
  • Joined:  06/12/12
  • Last Seen:  

 

 

 

Auto-start from what?

 

from client seem likes splash screen.

 

Hmm.. I don't have the codes right now for I am at work, but i'll give you the logic,

 

> Create a new form, make it as your default form.

> Edit its properties and make it a borderless window

> Insert picture box then resize it to the max size of the form

> Code it to load for at least 1-3 seconds.

> After the loading delay, unload the picture box form, load your launcher's form

 

There's some code like that roaming in google, I can't code in VB during weekdays so yeah. Google would be your friend for this one.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  96
  • Reputation:   1
  • Joined:  03/07/12
  • Last Seen:  

Thank you so much ^ ^

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.01
  • Content Count:  806
  • Reputation:   220
  • Joined:  03/13/12
  • Last Seen:  

I was just wondering what the purpose of this launcher is /hmm . My understanding is that the launcher served as a login screen to enter your credentials then launch the game / patcher. :)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  949
  • Reputation:   173
  • Joined:  06/12/12
  • Last Seen:  

This would serve great as a one-way directory for your players, you can easily redirect them to your applications, website, etc!

 

You can use this to create a one-click access to your website/forums/wiki/patcher/exe. You can even use this like an offline NPC with the proper idea and coding. The possibilities are limitless, i'm just showing one of its purposes, what you only need is to imagine and improvise :D

 

Visual Basic/C# is a great OOP language which is used in some of the 3rd party tools that you see in our forums..

 

Even Visual C++ which is used by most people as rAthena's compiler only, which is sad since it has more uses like the one stated above.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  21
  • Topics Per Day:  0.00
  • Content Count:  244
  • Reputation:   17
  • Joined:  11/19/11
  • Last Seen:  

Can you please give me the codes where I can put the website link? Thank you sandbox.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  36
  • Reputation:   1
  • Joined:  04/19/13
  • Last Seen:  

Thank You For This Sandbox :)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  949
  • Reputation:   173
  • Joined:  06/12/12
  • Last Seen:  

Can you please give me the codes where I can put the website link? Thank you sandbox.

 

You can google codes easily. Anyways, here's the code

 

http://visualbasic.ittoolbox.com/groups/technical-functional/visualbasic-l/open-a-website-on-clicking-a-command-button-in-vb-60-windows-application-1223688

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.01
  • Content Count:  806
  • Reputation:   220
  • Joined:  03/13/12
  • Last Seen:  

The solution presented at the top is dependent on whether the target system has IE. but someone has provided a better code a little lower.

Im just copying it below which should be the apt way of doing it.

Dim x As Long 
x = ShellExecute(large.hwnd, "Open", "http://www.windostat.org", &O0, &O0, 0) 
Link to comment
Share on other sites

  • 2 weeks later...

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  18
  • Reputation:   0
  • Joined:  02/12/14
  • Last Seen:  

Wow, that Visual Basic works like a charm on Windows 8.1. I missed VB6 since I used Windows 7. Now I don't need a VM to run Windows XP anymore. Thank you sandbox!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  949
  • Reputation:   173
  • Joined:  06/12/12
  • Last Seen:  

Thanks! I can't even remember where I got that portable software xD

Link to comment
Share on other sites

  • 6 months later...

  • Group:  Members
  • Topic Count:  59
  • Topics Per Day:  0.01
  • Content Count:  225
  • Reputation:   5
  • Joined:  05/30/12
  • Last Seen:  

cool tut :)

Link to comment
Share on other sites

  • 2 weeks later...

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  25
  • Reputation:   0
  • Joined:  04/18/13
  • Last Seen:  

I might make an addition to this tutorial about how to add cmd line switches (1rag1)

Link to comment
Share on other sites

  • 4 months later...

  • Group:  Members
  • Topic Count:  35
  • Topics Per Day:  0.01
  • Content Count:  311
  • Reputation:   46
  • Joined:  11/06/11
  • Last Seen:  

I might make an addition to this tutorial about how to add cmd line switches (1rag1)

 

Uhm sorry to bump any result to this?

Link to comment
Share on other sites

  • 2 weeks later...

  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  2285
  • Reputation:   745
  • Joined:  06/16/12
  • Last Seen:  

again, I missed something cool

 

sandbox @_@ u should come back here for a while to give a thank to u for this guide.

it's been years since last time I use VB6

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  154
  • Topics Per Day:  0.03
  • Content Count:  493
  • Reputation:   46
  • Joined:  01/24/12
  • Last Seen:  

i hope he include some login feature tutorial to the launcher using vb6

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  25
  • Reputation:   0
  • Joined:  04/18/13
  • Last Seen:  

I might make an addition to this tutorial about how to add cmd line switches (1rag1)

 

Uhm sorry to bump any result to this?

Shell("/path/to/rag.exe -1rag1 (other args)")

Edited by uyjulian
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...