commit 6b24fbfa38d9691c0ff88fbd4cd35ca7ceef51ce Author: Dominic Reich Date: Sun Jun 14 21:07:51 2015 +0200 initial commit diff --git a/Aufwachen.sln b/Aufwachen.sln new file mode 100644 index 0000000..6c0a0a9 --- /dev/null +++ b/Aufwachen.sln @@ -0,0 +1,22 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 2013 +VisualStudioVersion = 12.0.31101.0 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "Aufwachen", "Aufwachen\Aufwachen.vbproj", "{542DFF8A-D17F-45D9-8906-A25860967587}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {542DFF8A-D17F-45D9-8906-A25860967587}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {542DFF8A-D17F-45D9-8906-A25860967587}.Debug|Any CPU.Build.0 = Debug|Any CPU + {542DFF8A-D17F-45D9-8906-A25860967587}.Release|Any CPU.ActiveCfg = Release|Any CPU + {542DFF8A-D17F-45D9-8906-A25860967587}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/Aufwachen.v12.suo b/Aufwachen.v12.suo new file mode 100644 index 0000000..de06dac Binary files /dev/null and b/Aufwachen.v12.suo differ diff --git a/Aufwachen/App.config b/Aufwachen/App.config new file mode 100644 index 0000000..49c50e0 --- /dev/null +++ b/Aufwachen/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/Aufwachen/Aufwachen.vbproj b/Aufwachen/Aufwachen.vbproj new file mode 100644 index 0000000..f178d55 --- /dev/null +++ b/Aufwachen/Aufwachen.vbproj @@ -0,0 +1,142 @@ + + + + + Debug + AnyCPU + {542DFF8A-D17F-45D9-8906-A25860967587} + WinExe + Aufwachen.My.MyApplication + Aufwachen + Aufwachen + 512 + WindowsForms + v4.5 + + + AnyCPU + true + full + true + true + bin\Debug\ + Aufwachen.xml + 42016,41999,42017,42018,42019,42032,42036,42020,42021,42022 + + + AnyCPU + pdbonly + false + true + true + bin\Release\ + Aufwachen.xml + 42016,41999,42017,42018,42019,42032,42036,42020,42021,42022 + + + On + + + Binary + + + Off + + + On + + + tmsnat.ico + + + + + + + + + + + + + + + + + + + + + + + + + + + + Form + + + frm_Main.vb + Form + + + frm_Status.vb + + + Form + + + + True + Application.myapp + + + True + True + Resources.resx + + + True + Settings.settings + True + + + + + frm_Main.vb + + + frm_Status.vb + + + VbMyResourcesResXFileCodeGenerator + Resources.Designer.vb + My.Resources + Designer + + + + + MyApplicationCodeGenerator + Application.Designer.vb + + + SettingsSingleFileGenerator + My + Settings.Designer.vb + + + + + + + + + \ No newline at end of file diff --git a/Aufwachen/Aufwachen.vbproj.user b/Aufwachen/Aufwachen.vbproj.user new file mode 100644 index 0000000..b4af33b --- /dev/null +++ b/Aufwachen/Aufwachen.vbproj.user @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/Aufwachen/My Project/Application.Designer.vb b/Aufwachen/My Project/Application.Designer.vb new file mode 100644 index 0000000..f0f052a --- /dev/null +++ b/Aufwachen/My Project/Application.Designer.vb @@ -0,0 +1,38 @@ +'------------------------------------------------------------------------------ +' +' This code was generated by a tool. +' Runtime Version:4.0.30319.36241 +' +' Changes to this file may cause incorrect behavior and will be lost if +' the code is regenerated. +' +'------------------------------------------------------------------------------ + +Option Strict On +Option Explicit On + + +Namespace My + + 'NOTE: This file is auto-generated; do not modify it directly. To make changes, + ' or if you encounter build errors in this file, go to the Project Designer + ' (go to Project Properties or double-click the My Project node in + ' Solution Explorer), and make changes on the Application tab. + ' + Partial Friend Class MyApplication + + _ + Public Sub New() + MyBase.New(Global.Microsoft.VisualBasic.ApplicationServices.AuthenticationMode.Windows) + Me.IsSingleInstance = True + Me.EnableVisualStyles = True + Me.SaveMySettingsOnExit = False + Me.ShutDownStyle = Global.Microsoft.VisualBasic.ApplicationServices.ShutdownMode.AfterMainFormCloses + End Sub + + _ + Protected Overrides Sub OnCreateMainForm() + Me.MainForm = Global.Aufwachen.frm_Main + End Sub + End Class +End Namespace diff --git a/Aufwachen/My Project/Application.myapp b/Aufwachen/My Project/Application.myapp new file mode 100644 index 0000000..74edd61 --- /dev/null +++ b/Aufwachen/My Project/Application.myapp @@ -0,0 +1,10 @@ + + + true + frm_Main + true + 0 + true + 0 + false + \ No newline at end of file diff --git a/Aufwachen/My Project/AssemblyInfo.vb b/Aufwachen/My Project/AssemblyInfo.vb new file mode 100644 index 0000000..9c319f4 --- /dev/null +++ b/Aufwachen/My Project/AssemblyInfo.vb @@ -0,0 +1,35 @@ +Imports System +Imports System.Reflection +Imports System.Runtime.InteropServices + +' General Information about an assembly is controlled through the following +' set of attributes. Change these attribute values to modify the information +' associated with an assembly. + +' Review the values of the assembly attributes + + + + + + + + + + +'The following GUID is for the ID of the typelib if this project is exposed to COM + + +' Version information for an assembly consists of the following four values: +' +' Major Version +' Minor Version +' Build Number +' Revision +' +' You can specify all the values or you can default the Build and Revision Numbers +' by using the '*' as shown below: +' + + + diff --git a/Aufwachen/My Project/Resources.Designer.vb b/Aufwachen/My Project/Resources.Designer.vb new file mode 100644 index 0000000..3b6f160 --- /dev/null +++ b/Aufwachen/My Project/Resources.Designer.vb @@ -0,0 +1,62 @@ +'------------------------------------------------------------------------------ +' +' This code was generated by a tool. +' Runtime Version:4.0.30319.36241 +' +' Changes to this file may cause incorrect behavior and will be lost if +' the code is regenerated. +' +'------------------------------------------------------------------------------ + +Option Strict On +Option Explicit On + + +Namespace My.Resources + + 'This class was auto-generated by the StronglyTypedResourceBuilder + 'class via a tool like ResGen or Visual Studio. + 'To add or remove a member, edit your .ResX file then rerun ResGen + 'with the /str option, or rebuild your VS project. + ''' + ''' A strongly-typed resource class, for looking up localized strings, etc. + ''' + _ + Friend Module Resources + + Private resourceMan As Global.System.Resources.ResourceManager + + Private resourceCulture As Global.System.Globalization.CultureInfo + + ''' + ''' Returns the cached ResourceManager instance used by this class. + ''' + _ + Friend ReadOnly Property ResourceManager() As Global.System.Resources.ResourceManager + Get + If Object.ReferenceEquals(resourceMan, Nothing) Then + Dim temp As Global.System.Resources.ResourceManager = New Global.System.Resources.ResourceManager("Aufwachen.Resources", GetType(Resources).Assembly) + resourceMan = temp + End If + Return resourceMan + End Get + End Property + + ''' + ''' Overrides the current thread's CurrentUICulture property for all + ''' resource lookups using this strongly typed resource class. + ''' + _ + Friend Property Culture() As Global.System.Globalization.CultureInfo + Get + Return resourceCulture + End Get + Set(ByVal value As Global.System.Globalization.CultureInfo) + resourceCulture = value + End Set + End Property + End Module +End Namespace diff --git a/Aufwachen/My Project/Resources.resx b/Aufwachen/My Project/Resources.resx new file mode 100644 index 0000000..ffecec8 --- /dev/null +++ b/Aufwachen/My Project/Resources.resx @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/Aufwachen/My Project/Settings.Designer.vb b/Aufwachen/My Project/Settings.Designer.vb new file mode 100644 index 0000000..0e8b63a --- /dev/null +++ b/Aufwachen/My Project/Settings.Designer.vb @@ -0,0 +1,73 @@ +'------------------------------------------------------------------------------ +' +' This code was generated by a tool. +' Runtime Version:4.0.30319.36241 +' +' Changes to this file may cause incorrect behavior and will be lost if +' the code is regenerated. +' +'------------------------------------------------------------------------------ + +Option Strict On +Option Explicit On + + +Namespace My + + _ + Partial Friend NotInheritable Class MySettings + Inherits Global.System.Configuration.ApplicationSettingsBase + + Private Shared defaultInstance As MySettings = CType(Global.System.Configuration.ApplicationSettingsBase.Synchronized(New MySettings), MySettings) + +#Region "My.Settings Auto-Save Functionality" +#If _MyType = "WindowsForms" Then + Private Shared addedHandler As Boolean + + Private Shared addedHandlerLockObject As New Object + + _ + Private Shared Sub AutoSaveSettings(ByVal sender As Global.System.Object, ByVal e As Global.System.EventArgs) + If My.Application.SaveMySettingsOnExit Then + My.Settings.Save() + End If + End Sub +#End If +#End Region + + Public Shared ReadOnly Property [Default]() As MySettings + Get + +#If _MyType = "WindowsForms" Then + If Not addedHandler Then + SyncLock addedHandlerLockObject + If Not addedHandler Then + AddHandler My.Application.Shutdown, AddressOf AutoSaveSettings + addedHandler = True + End If + End SyncLock + End If +#End If + Return defaultInstance + End Get + End Property + End Class +End Namespace + +Namespace My + + _ + Friend Module MySettingsProperty + + _ + Friend ReadOnly Property Settings() As Global.Aufwachen.My.MySettings + Get + Return Global.Aufwachen.My.MySettings.Default + End Get + End Property + End Module +End Namespace diff --git a/Aufwachen/My Project/Settings.settings b/Aufwachen/My Project/Settings.settings new file mode 100644 index 0000000..377f56d --- /dev/null +++ b/Aufwachen/My Project/Settings.settings @@ -0,0 +1,7 @@ + + + + + + + diff --git a/Aufwachen/bin/Debug/Aufwachen.vshost.exe b/Aufwachen/bin/Debug/Aufwachen.vshost.exe new file mode 100644 index 0000000..666c0af Binary files /dev/null and b/Aufwachen/bin/Debug/Aufwachen.vshost.exe differ diff --git a/Aufwachen/bin/Debug/Aufwachen.vshost.exe.config b/Aufwachen/bin/Debug/Aufwachen.vshost.exe.config new file mode 100644 index 0000000..49c50e0 --- /dev/null +++ b/Aufwachen/bin/Debug/Aufwachen.vshost.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/Aufwachen/bin/Debug/Aufwachen.vshost.exe.manifest b/Aufwachen/bin/Debug/Aufwachen.vshost.exe.manifest new file mode 100644 index 0000000..f96b1d6 --- /dev/null +++ b/Aufwachen/bin/Debug/Aufwachen.vshost.exe.manifest @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/Aufwachen/bin/Release/Aufwachen.vshost.exe b/Aufwachen/bin/Release/Aufwachen.vshost.exe new file mode 100644 index 0000000..666c0af Binary files /dev/null and b/Aufwachen/bin/Release/Aufwachen.vshost.exe differ diff --git a/Aufwachen/bin/Release/Aufwachen.vshost.exe.config b/Aufwachen/bin/Release/Aufwachen.vshost.exe.config new file mode 100644 index 0000000..49c50e0 --- /dev/null +++ b/Aufwachen/bin/Release/Aufwachen.vshost.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/Aufwachen/bin/Release/Aufwachen.vshost.exe.manifest b/Aufwachen/bin/Release/Aufwachen.vshost.exe.manifest new file mode 100644 index 0000000..f96b1d6 --- /dev/null +++ b/Aufwachen/bin/Release/Aufwachen.vshost.exe.manifest @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/Aufwachen/frm_Main.Designer.vb b/Aufwachen/frm_Main.Designer.vb new file mode 100644 index 0000000..43445b8 --- /dev/null +++ b/Aufwachen/frm_Main.Designer.vb @@ -0,0 +1,127 @@ + _ +Partial Class frm_Main + Inherits System.Windows.Forms.Form + + 'Form overrides dispose to clean up the component list. + _ + Protected Overrides Sub Dispose(ByVal disposing As Boolean) + Try + If disposing AndAlso components IsNot Nothing Then + components.Dispose() + End If + Finally + MyBase.Dispose(disposing) + End Try + End Sub + + 'Required by the Windows Form Designer + Private components As System.ComponentModel.IContainer + + 'NOTE: The following procedure is required by the Windows Form Designer + 'It can be modified using the Windows Form Designer. + 'Do not modify it using the code editor. + _ + Private Sub InitializeComponent() + Dim resources As System.ComponentModel.ComponentResourceManager = New System.ComponentModel.ComponentResourceManager(GetType(frm_Main)) + Me.txt_mac = New System.Windows.Forms.MaskedTextBox() + Me.btn_wake = New System.Windows.Forms.Button() + Me.btn_help = New System.Windows.Forms.Button() + Me.btn_end = New System.Windows.Forms.Button() + Me.btn_defined_1 = New System.Windows.Forms.Button() + Me.btn_defined_2 = New System.Windows.Forms.Button() + Me.btn_defined_3 = New System.Windows.Forms.Button() + Me.SuspendLayout() + ' + 'txt_mac + ' + Me.txt_mac.Location = New System.Drawing.Point(12, 12) + Me.txt_mac.Mask = "AA:AA:AA:AA:AA:AA" + Me.txt_mac.Name = "txt_mac" + Me.txt_mac.Size = New System.Drawing.Size(331, 20) + Me.txt_mac.TabIndex = 0 + ' + 'btn_wake + ' + Me.btn_wake.Location = New System.Drawing.Point(196, 38) + Me.btn_wake.Name = "btn_wake" + Me.btn_wake.Size = New System.Drawing.Size(147, 33) + Me.btn_wake.TabIndex = 1 + Me.btn_wake.Text = "AUFWECKEN" + Me.btn_wake.UseVisualStyleBackColor = True + ' + 'btn_help + ' + Me.btn_help.Location = New System.Drawing.Point(196, 77) + Me.btn_help.Name = "btn_help" + Me.btn_help.Size = New System.Drawing.Size(147, 33) + Me.btn_help.TabIndex = 2 + Me.btn_help.Text = "HILFE" + Me.btn_help.UseVisualStyleBackColor = True + ' + 'btn_end + ' + Me.btn_end.Location = New System.Drawing.Point(196, 116) + Me.btn_end.Name = "btn_end" + Me.btn_end.Size = New System.Drawing.Size(147, 33) + Me.btn_end.TabIndex = 3 + Me.btn_end.Text = "ENDE" + Me.btn_end.UseVisualStyleBackColor = True + ' + 'btn_defined_1 + ' + Me.btn_defined_1.Location = New System.Drawing.Point(12, 38) + Me.btn_defined_1.Name = "btn_defined_1" + Me.btn_defined_1.Size = New System.Drawing.Size(147, 33) + Me.btn_defined_1.TabIndex = 4 + Me.btn_defined_1.Text = "MONSTER" + Me.btn_defined_1.UseVisualStyleBackColor = True + ' + 'btn_defined_2 + ' + Me.btn_defined_2.Location = New System.Drawing.Point(12, 77) + Me.btn_defined_2.Name = "btn_defined_2" + Me.btn_defined_2.Size = New System.Drawing.Size(147, 33) + Me.btn_defined_2.TabIndex = 5 + Me.btn_defined_2.Text = "BUERO" + Me.btn_defined_2.UseVisualStyleBackColor = True + ' + 'btn_defined_3 + ' + Me.btn_defined_3.Location = New System.Drawing.Point(12, 116) + Me.btn_defined_3.Name = "btn_defined_3" + Me.btn_defined_3.Size = New System.Drawing.Size(147, 33) + Me.btn_defined_3.TabIndex = 6 + Me.btn_defined_3.Text = "WEITERER PC" + Me.btn_defined_3.UseVisualStyleBackColor = True + Me.btn_defined_3.Visible = False + ' + 'frm_Main + ' + Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!) + Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font + Me.ClientSize = New System.Drawing.Size(355, 163) + Me.Controls.Add(Me.btn_defined_3) + Me.Controls.Add(Me.btn_defined_2) + Me.Controls.Add(Me.btn_defined_1) + Me.Controls.Add(Me.btn_end) + Me.Controls.Add(Me.btn_help) + Me.Controls.Add(Me.btn_wake) + Me.Controls.Add(Me.txt_mac) + Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow + Me.Icon = CType(resources.GetObject("$this.Icon"), System.Drawing.Icon) + Me.Name = "frm_Main" + Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen + Me.Text = "Aufwachen - Wake On LAN Tool" + Me.ResumeLayout(False) + Me.PerformLayout() + + End Sub + Friend WithEvents txt_mac As System.Windows.Forms.MaskedTextBox + Friend WithEvents btn_wake As System.Windows.Forms.Button + Friend WithEvents btn_help As System.Windows.Forms.Button + Friend WithEvents btn_end As System.Windows.Forms.Button + Friend WithEvents btn_defined_1 As System.Windows.Forms.Button + Friend WithEvents btn_defined_2 As System.Windows.Forms.Button + Friend WithEvents btn_defined_3 As System.Windows.Forms.Button + +End Class diff --git a/Aufwachen/frm_Main.resx b/Aufwachen/frm_Main.resx new file mode 100644 index 0000000..5c5d9dc --- /dev/null +++ b/Aufwachen/frm_Main.resx @@ -0,0 +1,195 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + + + AAABAAIAEBAAAAEAGABoAwAAJgAAACAgAAABABgAqAwAAI4DAAAoAAAAEAAAACAAAAABABgAAAAAAAAD + AAASCwAAEgsAAAAAAAAAAAAAgHt8bmlqVE9QmJOUbmlqWlVWa2ZnZWBhHCQaHCIdPUFCaGtwhIeMb3N0 + UFZRaHBmYVxdV1JTWlVWdnFyUEtMR0JDXFdYV1JTHiQfO0A/U1ZbW1xmc3R+gYSJaW5tWF5ZWFNUQz4/ + aGNkY15fU05PU05PXFdYUUxNMDM3S01VVVVhV1ZmdHODlJSgiYuTYWRobWhpQDs8gXx9enV2fnl6b2pr + Yl1eVlFSQUJMODhGMjBDWFVrhYKYo6G0qam3g4SOcm1uQz4/l5KToZydk46PX1pbTEdIVVBRNzdDISAw + DgwgREBZgn6XtLLGzMvbkpKeX1pbRkFCjYiJr6qrgHt8ODM0MSwtSURFKSo0JSUzCAYZLSpAamd9uLbJ + 4uLwhYaQXllaTEdIYFtcm5aXc25vR0JDRD9AQDs8QkVKOTpEFxclPDpNYV9ynp6s1tfhfYCFcWxtVVBR + MSwtgn1+fHd4fHd4cm1uQDs8bXFyR0pPIyMvX15ubm19fHyIu77DhYmKaWhkUU9OMC8xNjk+b3F8Ymd2 + g4mcXGN3amdwOjdATElSaWZvUU5XeHV+tbK7dXJ7cG9rU1FQCQgKDxIXMjQ+YGNxkZWnjZOmbWpzTUpT + SEVOZGFqe3iBY2BpLis0bWpzZ2ZiUlNRAQEBCAkNEhQcaWt2oqOxvcDPhoSKTUtRPTtBYV9lenh+aGZs + AAAEOjg+ZWZkYmNhNzc3LSwwJiYsX15njYyWrKq2l5aaVVRYY2JmjYyQTUxQdnV5Li0xIyImUVJQS0tL + TExMGxocEg4TEw8UQT1DYl5kZWRmS0pMXVxelZSWKikrT05QTEtNFxYYaWt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ODgwMDAsLCwvLy80 + NDRlZWVgYGBUVFRAQEAREREGBgYAAABXV1elpaVVVVVnZ2dnZ2dqampZWVlqamp3d3daX15ma2pgZWRc + YWBxdnV+g4J6f353fHuCgoJycnJvb295eXlzc3NkZGRwcHCMjIyCgoJqamp/f39/f39OTk5ubm5ubm6W + lpYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAA== + + + \ No newline at end of file diff --git a/Aufwachen/frm_Main.vb b/Aufwachen/frm_Main.vb new file mode 100644 index 0000000..825f00a --- /dev/null +++ b/Aufwachen/frm_Main.vb @@ -0,0 +1,63 @@ +Imports System.Net.Sockets + +Public Class frm_Main + + Public Sub WakeOnLAN(ByVal MACAddress As String) + Dim Client As New UdpClient + Dim Count As Integer = 0 + Dim ByteArray(1024) As Byte + Dim Pos As Integer = 0 + + Client.Connect("255.255.255.255", 12287) + Client.Client.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.Broadcast, 0) + + For i As Integer = 0 To 5 + Count += 1 + ByteArray(Count) = &HFF + Next + + For i As Integer = 0 To 15 + Pos = 0 + For n As Integer = 0 To 5 + Count += 1 + ByteArray(Count) = Byte.Parse(MACAddress.Substring(Pos, 2), Globalization.NumberStyles.HexNumber) + Pos += 2 + Next + Next + + Client.Send(ByteArray, 1024) + End Sub + + Private Sub btn_end_Click(sender As Object, e As EventArgs) Handles btn_end.Click + End + End Sub + + Private Sub btn_defined_1_Click(sender As Object, e As EventArgs) Handles btn_defined_1.Click + txt_mac.Text = "8C:89:A5:60:F1:AE" + End Sub + + Private Sub btn_defined_2_Click(sender As Object, e As EventArgs) Handles btn_defined_2.Click + txt_mac.Text = "2C:41:38:B2:24:02" + End Sub + + Private Sub btn_defined_3_Click(sender As Object, e As EventArgs) Handles btn_defined_3.Click + txt_mac.Text = "00:15:58:C5:3A:9C" + End Sub + + Private Sub btn_help_Click(sender As Object, e As EventArgs) Handles btn_help.Click + MsgBox("Gib die MAC Adresse ins Textfeld ein oder drücke einen der linken Buttons um das Feld mit vordefinierten Werten zu füllen." & Chr(13) & Chr(10) & "Mit 'Aufwecken' wird das 'Magic Packet' gesendet.", MsgBoxStyle.OkOnly, "WOL Home - Hilfe") + End Sub + + Private Sub btn_wake_Click(sender As Object, e As EventArgs) Handles btn_wake.Click + 'On Error Resume Next + On Error GoTo Do_Error + Me.Enabled = False + frm_Status.lbl_status.Text = "Magic Packet wird an " & Me.txt_mac.Text & " gesendet." + frm_Status.ShowDialog() + WakeOnLAN(txt_mac.Text.Replace(":", "").ToString) + 'WakeOnLAN(txt_mac.Text.ToString) + Exit Sub +Do_Error: + MsgBox("Ein Fehler ist aufgetreten!" & Chr(13) & Chr(10) & Err.Number & " - " & Err.Description, MsgBoxStyle.Critical) + End Sub +End Class diff --git a/Aufwachen/frm_Status.Designer.vb b/Aufwachen/frm_Status.Designer.vb new file mode 100644 index 0000000..8faacbd --- /dev/null +++ b/Aufwachen/frm_Status.Designer.vb @@ -0,0 +1,61 @@ + _ +Partial Class frm_Status + Inherits System.Windows.Forms.Form + + 'Form overrides dispose to clean up the component list. + _ + Protected Overrides Sub Dispose(ByVal disposing As Boolean) + Try + If disposing AndAlso components IsNot Nothing Then + components.Dispose() + End If + Finally + MyBase.Dispose(disposing) + End Try + End Sub + + 'Required by the Windows Form Designer + Private components As System.ComponentModel.IContainer + + 'NOTE: The following procedure is required by the Windows Form Designer + 'It can be modified using the Windows Form Designer. + 'Do not modify it using the code editor. + _ + Private Sub InitializeComponent() + Me.components = New System.ComponentModel.Container() + Me.lbl_status = New System.Windows.Forms.Label() + Me.timer_status = New System.Windows.Forms.Timer(Me.components) + Me.SuspendLayout() + ' + 'lbl_status + ' + Me.lbl_status.AutoSize = True + Me.lbl_status.Location = New System.Drawing.Point(12, 21) + Me.lbl_status.Name = "lbl_status" + Me.lbl_status.Size = New System.Drawing.Size(72, 13) + Me.lbl_status.TabIndex = 0 + Me.lbl_status.Text = "Bitte warten..." + ' + 'timer_status + ' + Me.timer_status.Interval = 5000 + ' + 'frm_Status + ' + Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!) + Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font + Me.ClientSize = New System.Drawing.Size(291, 55) + Me.Controls.Add(Me.lbl_status) + Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None + Me.Name = "frm_Status" + Me.ShowIcon = False + Me.ShowInTaskbar = False + Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent + Me.Text = "frm_Status" + Me.ResumeLayout(False) + Me.PerformLayout() + + End Sub + Friend WithEvents lbl_status As System.Windows.Forms.Label + Friend WithEvents timer_status As System.Windows.Forms.Timer +End Class diff --git a/Aufwachen/frm_Status.resx b/Aufwachen/frm_Status.resx new file mode 100644 index 0000000..8fee315 --- /dev/null +++ b/Aufwachen/frm_Status.resx @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 17, 17 + + \ No newline at end of file diff --git a/Aufwachen/frm_Status.vb b/Aufwachen/frm_Status.vb new file mode 100644 index 0000000..99e1b27 --- /dev/null +++ b/Aufwachen/frm_Status.vb @@ -0,0 +1,11 @@ +Public Class frm_Status + + Private Sub frm_Status_Load(sender As Object, e As EventArgs) Handles MyBase.Load + timer_status.Enabled = True + End Sub + + Private Sub timer_status_Tick(sender As Object, e As EventArgs) Handles timer_status.Tick + frm_Main.Enabled = True + Me.Close() + End Sub +End Class \ No newline at end of file diff --git a/Aufwachen/obj/Debug/Aufwachen.vbproj.FileListAbsolute.txt b/Aufwachen/obj/Debug/Aufwachen.vbproj.FileListAbsolute.txt new file mode 100644 index 0000000..9ea3c44 --- /dev/null +++ b/Aufwachen/obj/Debug/Aufwachen.vbproj.FileListAbsolute.txt @@ -0,0 +1,10 @@ +C:\Users\Dominic\AppData\Local\Temporary Projects\Aufwachen\bin\Debug\Aufwachen.exe.config +C:\Users\Dominic\AppData\Local\Temporary Projects\Aufwachen\bin\Debug\Aufwachen.exe +C:\Users\Dominic\AppData\Local\Temporary Projects\Aufwachen\bin\Debug\Aufwachen.pdb +C:\Users\Dominic\AppData\Local\Temporary Projects\Aufwachen\bin\Debug\Aufwachen.xml +C:\Users\Dominic\AppData\Local\Temporary Projects\Aufwachen\obj\Debug\Aufwachen.frm_Main.resources +C:\Users\Dominic\AppData\Local\Temporary Projects\Aufwachen\obj\Debug\Aufwachen.Resources.resources +C:\Users\Dominic\AppData\Local\Temporary Projects\Aufwachen\obj\Debug\Aufwachen.vbproj.GenerateResource.Cache +C:\Users\Dominic\AppData\Local\Temporary Projects\Aufwachen\obj\Debug\Aufwachen.exe +C:\Users\Dominic\AppData\Local\Temporary Projects\Aufwachen\obj\Debug\Aufwachen.xml +C:\Users\Dominic\AppData\Local\Temporary Projects\Aufwachen\obj\Debug\Aufwachen.pdb diff --git a/Aufwachen/obj/Debug/DesignTimeResolveAssemblyReferences.cache b/Aufwachen/obj/Debug/DesignTimeResolveAssemblyReferences.cache new file mode 100644 index 0000000..9bde2ef Binary files /dev/null and b/Aufwachen/obj/Debug/DesignTimeResolveAssemblyReferences.cache differ diff --git a/Aufwachen/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/Aufwachen/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..3e19456 Binary files /dev/null and b/Aufwachen/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/Aufwachen/obj/Debug/TempPE/My Project.Resources.Designer.vb.dll b/Aufwachen/obj/Debug/TempPE/My Project.Resources.Designer.vb.dll new file mode 100644 index 0000000..f34adef Binary files /dev/null and b/Aufwachen/obj/Debug/TempPE/My Project.Resources.Designer.vb.dll differ diff --git a/Aufwachen/obj/Release/DesignTimeResolveAssemblyReferences.cache b/Aufwachen/obj/Release/DesignTimeResolveAssemblyReferences.cache new file mode 100644 index 0000000..65e2bca Binary files /dev/null and b/Aufwachen/obj/Release/DesignTimeResolveAssemblyReferences.cache differ diff --git a/Aufwachen/obj/Release/DesignTimeResolveAssemblyReferencesInput.cache b/Aufwachen/obj/Release/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..841cd97 Binary files /dev/null and b/Aufwachen/obj/Release/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/Aufwachen/obj/Release/TempPE/My Project.Resources.Designer.vb.dll b/Aufwachen/obj/Release/TempPE/My Project.Resources.Designer.vb.dll new file mode 100644 index 0000000..884fd7e Binary files /dev/null and b/Aufwachen/obj/Release/TempPE/My Project.Resources.Designer.vb.dll differ diff --git a/Aufwachen/tmsnat.ico b/Aufwachen/tmsnat.ico new file mode 100644 index 0000000..40716c8 Binary files /dev/null and b/Aufwachen/tmsnat.ico differ diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..d7e0e57 --- /dev/null +++ b/LICENSE @@ -0,0 +1,22 @@ +The MIT License (MIT) + +Copyright (c) 2014 + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + diff --git a/README.md b/README.md new file mode 100644 index 0000000..4a89895 --- /dev/null +++ b/README.md @@ -0,0 +1,4 @@ +Aufwachen +========= + +A .NET Wake-On-Lan application - Highly modified for my personal usage (hardcoded MAC addresses)