Advertisement
Bwl-Network

Launchersource

Dec 25th, 2012
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 4.16 KB | None | 0 0
  1. Public Class YourServerLauncher
  2.  
  3.     Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
  4.         Application.Exit()
  5.     End Sub
  6.  
  7.     Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click
  8.         Me.WindowState = FormWindowState.Minimized
  9.     End Sub
  10.  
  11.     Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
  12.         Process.Start("https://www.facebook.com")
  13.     End Sub
  14.  
  15.     Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
  16.         Process.Start("https://www.youtube.com")
  17.     End Sub
  18.  
  19.     Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click
  20.         Process.Start("https://www.google.de")
  21.     End Sub
  22.  
  23.     Private Sub Button6_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button6.Click
  24.         Process.Start("C:\Users\ffa\Downloads\Privat Sachen\wow 3.3.5.a\wow.exe")
  25.         Application.Exit()
  26.     End Sub
  27.  
  28.     Private Sub Button8_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button8.Click
  29.         Try
  30.             My.Computer.FileSystem.WriteAllText(My.Application.Info.DirectoryPath.ToString & "\Data\deDE\realmlist.wtf", "set realmlist 127.0.0.1", False)
  31.             MsgBox("Deine Realmliste wurde erfolgreich geändert! / Your realmlist was successfully changed!", MsgBoxStyle.Information)
  32.         Catch ex As Exception
  33.             MsgBox("Realmlist konnte nicht geändert werden! / Realmlist could not be changed!", MsgBoxStyle.Critical)
  34.         End Try
  35.     End Sub
  36.  
  37.     Private Sub Button7_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button7.Click
  38.         If My.Computer.FileSystem.DirectoryExists(My.Application.Info.DirectoryPath.ToString & "\Cache") Then
  39.             Try
  40.                 My.Computer.FileSystem.DeleteDirectory(My.Application.Info.DirectoryPath.ToString & "Cache", FileIO.DeleteDirectoryOption.DeleteAllContents)
  41.                 MsgBox("Dein Cache Ordner wurde erfolgreich gelöscht! / Your cache folder was successfully deleted!", MsgBoxStyle.Information)
  42.             Catch ex As Exception
  43.                 MsgBox("Dein Cache Ordner konnte nicht gelöscht werden! / Your cache folder could not be deleted!", MsgBoxStyle.Critical)
  44.             End Try
  45.  
  46.  
  47.         Else
  48.             MsgBox("Dein Cache Ordner ist nicht vorhanden oder es wurde gerade gelöscht! / Your cache folder does not exist or it was just deleted!", MsgBoxStyle.Information)
  49.         End If
  50.     End Sub
  51.  
  52.     Private Sub YourServerLauncher_MouseDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles MyBase.MouseDown
  53.         If (e.Button = Windows.Forms.MouseButtons.Left) Then
  54.             Me.Capture = False
  55.             Me.WndProc(Message.Create(Me.Handle, &HA1, CType(&H2, IntPtr), IntPtr.Zero))
  56.  
  57.         Else : End If
  58.     End Sub
  59.  
  60.     Private Sub Button2_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs)
  61.         Process.Start("https://www.google.com")
  62.     End Sub
  63.  
  64.     Private Sub Button3_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs)
  65.         Process.Start("http://www.ac-web.org/forums/content.php")
  66.     End Sub
  67.  
  68.     Private Sub YourServerLauncher_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
  69.  
  70.     End Sub
  71.  
  72.     Private Sub Button9_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button9.Click
  73.         Process.Start("https://www.youtube.com")
  74.     End Sub
  75.  
  76.     Private Sub Button10_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button10.Click
  77.         Process.Start("https://www.facebook.com")
  78.     End Sub
  79.  
  80.     Private Sub Button3_Click_2(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
  81.         Process.Start("http://www.ac-web.org/forums/content.php")
  82.     End Sub
  83.  
  84.     Private Sub Button11_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button11.Click
  85.         Process.Start("https://www.google.com")
  86.     End Sub
  87. End Class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement