PDA

View Full Version : [Other Emulator] [Visual Basic] World of Warcraft Launcher ((How-To Tutorial - DETAILED))



Wise
02-01-15, 02:24 AM
{ World of Warcraft Launcher Tutorial }

Required Files:



Microsoft Visual Studio 2013 (http://www.visualstudio.com/products/visual-studio-community-vs)
Launcher GUI (https://www.mediafire.com/?h0t91o8uvukkipc)





Follow this steps:



Open Visual Studio.
Click "New Project..."

http://puu.sh/dXnDL/aeb0d3fe84.png

Go under "Templates" and Select "Visual Basic" and then find "Windows Form Application" Click OK.

http://puu.sh/dXnMt/2abbf596c3.png

This is how it should look if you done everthing correctly.

http://puu.sh/dXo63/b1113243a1.png

Now Right Click the "Launcher" in solution explorer and click Properties. This is the window that should appear after you clicked Properties.

http://puu.sh/dXoAJ/3821b9f21b.png

Now click on "Icon:" and find the IconWoW.ico and select it.

http://puu.sh/dXwBJ/3f293e2a84.png

Go back to design tab and click "Form1".

http://puu.sh/dXwKr/5ac43ef356.png

Scroll all the way down until u see "Icon". Now use IconWoW.ico for your icon.

http://puu.sh/dXwOh/734b409709.png

Now scroll up until you see "Text". You can change the text to like: "Optium WoW Launcher" or your server or anything you want! :)

http://puu.sh/dXwWf/acde67a107.png

Go to launcher tab again.

http://puu.sh/dXx9L/b8063cefa3.png

Resources > Add Existing File... Now select all the files from Launcher GUI and load them.

http://puu.sh/dXxdf/a5806403ad.png

Now click on form1 again and scroll until you find "BackgroundImage".

http://puu.sh/dXx6V/89d24af3ff.png

Select "background.png" from Launcher GUI as "BackgroundImage". Resize it until you get something as this:

http://puu.sh/dXxu5/6214c7fe52.png

Now click on toolbox and select PictureBox under Common Controls. Load play_static as Image and BackColor as Transaprent.

http://puu.sh/dXxS9/63176af340.png

Now do same for the all buttons until you have something like this:

http://puu.sh/dXykD/9e950b0725.png

Now we can move to coding! ooo i like this part ^_^

Okay so, here's the thing. People love to see button changes after click, ima tell you that.

Alright let's begin.

First of all you must add this at the very top of the code:


Imports System.IO

http://puu.sh/dXzfP/884dfca390.png

Play button is our PictureBox1

So, double click the Play button and then paste this code:


PictureBox1.Image = My.Resources.play_pressed

it should look like this:

http://puu.sh/dXAaN/8a6679dd6c.png

Moving to website button!

Double click website button and paste this code:


PictureBox3.Image = My.Resources.web_pressed
Process.Start("http://www.google.com")

It should look like this:

http://puu.sh/dXAmn/4cdb741a97.png

On to cache one :)

Double click Cache button and paste this code:


PictureBox2.Image = My.Resources.cache_pressed
If Directory.Exists(My.Computer.FileSystem.CurrentDir ectory & "/Cache") Then
Dim Cache As String = (My.Computer.FileSystem.CurrentDirectory & "/Cache")
Select Case MsgBox("Do you want to delete the Cache folder?", MsgBoxStyle.Critical + MsgBoxStyle.YesNo, "WARNING")
Case MsgBoxResult.Yes
Directory.Delete(Cache, True)
Case MsgBoxResult.No
End Select
End If

Should look like this:

http://puu.sh/dXAAt/073a9d8b98.png

Now let's make that play button work!

Paste this code:


If File.Exists(My.Computer.FileSystem.CurrentDirector y & "/Wow.exe") Then
Shell(My.Computer.FileSystem.CurrentDirectory & "/Wow.exe")
Me.Close()
Else
MsgBox("Could not start Wow.exe", MsgBoxStyle.Critical, "Application Not Found")
End If

Should look like this:

http://puu.sh/dXARZ/280509bcd9.png

Now right click "Solution 'Launcher'" and click Build Solution!

http://puu.sh/dXAZx/0e1e61fcca.png

And now you are done!!

Navigate to your program directory, in my case my desktop then Launcher -> Bin -> Debug

You should see Launcher application.
Move it to your wow folder(where your wow.exe is) and test it.

NOTE: Remember to save the visual project for later editing ;)



Credits TionHD

Upload
04-01-15, 04:02 AM
+1 Great tutorial; should help a lot of people out^^