Likes: 1
Results 1 to 2 of 2
-
02-01-15, 02:24 AM #1
[Visual Basic] World of Warcraft Launcher ((How-To Tutorial - DETAILED))
Register to remove this ad{ World of Warcraft Launcher Tutorial }
Required Files:
Follow this steps:
- Open Visual Studio.
- Click "New Project..."
- Go under "Templates" and Select "Visual Basic" and then find "Windows Form Application" Click OK.
- This is how it should look if you done everthing correctly.
- Now Right Click the "Launcher" in solution explorer and click Properties. This is the window that should appear after you clicked Properties.
- Now click on "Icon:" and find the IconWoW.ico and select it.
- Go back to design tab and click "Form1".
- Scroll all the way down until u see "Icon". Now use IconWoW.ico for your icon.
- Now scroll up until you see "Text". You can change the text to like: "Optium WoW Launcher" or your server or anything you want!
- Go to launcher tab again.
- Resources > Add Existing File... Now select all the files from Launcher GUI and load them.
- Now click on form1 again and scroll until you find "BackgroundImage".
- Select "background.png" from Launcher GUI as "BackgroundImage". Resize it until you get something as this:
- Now click on toolbox and select PictureBox under Common Controls. Load play_static as Image and BackColor as Transaprent.
- Now do same for the all buttons until you have something like this:
- 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:
Code:Imports System.IO
Play button is our PictureBox1
So, double click the Play button and then paste this code:
Code:PictureBox1.Image = My.Resources.play_pressed
Moving to website button!
Double click website button and paste this code:
Code:PictureBox3.Image = My.Resources.web_pressed Process.Start("http://www.google.com")
On to cache one
Double click Cache button and paste this code:
Code:PictureBox2.Image = My.Resources.cache_pressed If Directory.Exists(My.Computer.FileSystem.CurrentDirectory & "/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
Now let's make that play button work!
Paste this code:
Code:If File.Exists(My.Computer.FileSystem.CurrentDirectory & "/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
Now right click "Solution 'Launcher'" and click Build Solution!
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
› See More: [Visual Basic] World of Warcraft Launcher ((How-To Tutorial - DETAILED))
-
04-01-15, 04:02 AM #2
Register to remove this ad+1 Great tutorial; should help a lot of people out^^