-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathForm1.vb
51 lines (40 loc) · 1.68 KB
/
Form1.vb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
Public Class Launcher
Dim drag As Boolean
Dim mousex As Integer
Dim mousey As Integer
Private Sub Launcher_MouseDown(sender As Object, e As MouseEventArgs) Handles MyBase.MouseDown
drag = True
mousex = Cursor.Position.X - Me.Left
mousey = Cursor.Position.Y - Me.Top
End Sub
Private Sub Launcher_MouseMove(sender As Object, e As MouseEventArgs) Handles MyBase.MouseMove
If drag Then
Me.Top = Cursor.Position.Y - mousey
Me.Left = Cursor.Position.X - mousex
End If
End Sub
Private Sub Launcher_MouseUp(sender As Object, e As MouseEventArgs) Handles MyBase.MouseUp
drag = False
End Sub
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Me.Close()
End Sub
Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
Me.WindowState = FormWindowState.Minimized
End Sub
Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click
Shell("Explorer.exe fivem://connect/XXX.XXX.XXX.XXX:30120")
End Sub
Private Sub Button4_Click(sender As Object, e As EventArgs) Handles Button4.Click
Shell("Explorer.exe https://discord.com/invite/XXXXXXX")
End Sub
Private Sub gotoTS_Click(sender As Object, e As EventArgs) Handles gotoTS.Click
Shell("Explorer.exe ts3server://ts.XXXXXXXXX.com")
End Sub
Private Sub GotoWeb_Click(sender As Object, e As EventArgs) Handles GotoWeb.Click
Shell("Explorer.exe https://www.alttabgaming.com/")
End Sub
Private Sub Label1_Click(sender As Object, e As EventArgs) Handles Label1.Click
End Sub
End Class