diff --git a/.vs/BatteryMonitor/v15/.suo b/.vs/BatteryMonitor/v15/.suo index 9bee022..0017735 100644 Binary files a/.vs/BatteryMonitor/v15/.suo and b/.vs/BatteryMonitor/v15/.suo differ diff --git a/BatteryMonitor/BatteryMonitor.vbproj b/BatteryMonitor/BatteryMonitor.vbproj index 10dc231..2ab3c24 100644 --- a/BatteryMonitor/BatteryMonitor.vbproj +++ b/BatteryMonitor/BatteryMonitor.vbproj @@ -123,7 +123,6 @@ - diff --git a/BatteryMonitor/Form1.Designer.vb b/BatteryMonitor/Form1.Designer.vb index 68f6096..58a479a 100644 --- a/BatteryMonitor/Form1.Designer.vb +++ b/BatteryMonitor/Form1.Designer.vb @@ -202,7 +202,7 @@ Partial Class Form1 Me.MaximizeBox = False Me.MinimizeBox = False Me.Name = "Form1" - Me.Text = "Battery Monitor" + Me.Text = "Battery Monitor | Built with ❤ Nischay Pro" Me.GroupBox1.ResumeLayout(False) Me.GroupBox1.PerformLayout() CType(Me.NumericUpDown2, System.ComponentModel.ISupportInitialize).EndInit() diff --git a/BatteryMonitor/Form1.vb b/BatteryMonitor/Form1.vb index 9d478a9..722a421 100644 --- a/BatteryMonitor/Form1.vb +++ b/BatteryMonitor/Form1.vb @@ -2,6 +2,13 @@ Imports BatteryMonitor.IniFile Public Class Form1 Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load + Dim argsma As String() = Environment.GetCommandLineArgs + For Each Item As String In argsma + If Item = "-tray" Then + Me.Hide() + Me.ShowInTaskbar = False + End If + Next LoadSettings() End Sub @@ -69,7 +76,7 @@ Public Class Form1 Dim writecommand As StreamWriter = processman.StandardInput Dim appname As String = Application.ProductName Dim apploc As String = Application.ExecutablePath - writecommand.WriteLine("reg add HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" & " /V """ & appname & """" & " /t REG_SZ /F /D """ & apploc & """") + writecommand.WriteLine("reg add HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" & " /V """ & appname & """" & " /t REG_SZ /F /D """ & apploc & "-tray""") writecommand.Close() Return True Catch ex As Exception diff --git a/BatteryMonitor/My Project/AssemblyInfo.vb b/BatteryMonitor/My Project/AssemblyInfo.vb index 6b88144..a96d522 100644 --- a/BatteryMonitor/My Project/AssemblyInfo.vb +++ b/BatteryMonitor/My Project/AssemblyInfo.vb @@ -8,9 +8,9 @@ Imports System.Runtime.InteropServices ' Review the values of the assembly attributes - - - + + + @@ -31,5 +31,5 @@ Imports System.Runtime.InteropServices ' by using the '*' as shown below: ' - - + + diff --git a/BatteryMonitor/bin/Debug/BatteryMonitor.exe b/BatteryMonitor/bin/Debug/BatteryMonitor.exe index 838ecbb..214ef00 100644 Binary files a/BatteryMonitor/bin/Debug/BatteryMonitor.exe and b/BatteryMonitor/bin/Debug/BatteryMonitor.exe differ diff --git a/BatteryMonitor/bin/Debug/BatteryMonitor.pdb b/BatteryMonitor/bin/Debug/BatteryMonitor.pdb index 9569fe3..964c9ae 100644 Binary files a/BatteryMonitor/bin/Debug/BatteryMonitor.pdb and b/BatteryMonitor/bin/Debug/BatteryMonitor.pdb differ diff --git a/BatteryMonitor/bin/Debug/settings.ini b/BatteryMonitor/bin/Debug/settings.ini index c7827b1..d6a0a90 100644 --- a/BatteryMonitor/bin/Debug/settings.ini +++ b/BatteryMonitor/bin/Debug/settings.ini @@ -1,6 +1,6 @@ [General] Max=80 -Startup=False +Startup=True Min=25 Overcharge=True Threshold=True diff --git a/BatteryMonitor/bin/Release/BatteryMonitor.exe b/BatteryMonitor/bin/Release/BatteryMonitor.exe index 621aa45..d5c51e7 100644 Binary files a/BatteryMonitor/bin/Release/BatteryMonitor.exe and b/BatteryMonitor/bin/Release/BatteryMonitor.exe differ diff --git a/BatteryMonitor/bin/Release/BatteryMonitor.pdb b/BatteryMonitor/bin/Release/BatteryMonitor.pdb index a008f12..c888657 100644 Binary files a/BatteryMonitor/bin/Release/BatteryMonitor.pdb and b/BatteryMonitor/bin/Release/BatteryMonitor.pdb differ diff --git a/BatteryMonitor/bin/Release/BatteryMonitor.zip b/BatteryMonitor/bin/Release/BatteryMonitor.zip new file mode 100644 index 0000000..d903a43 Binary files /dev/null and b/BatteryMonitor/bin/Release/BatteryMonitor.zip differ diff --git a/BatteryMonitor/obj/Debug/BatteryMonitor.exe b/BatteryMonitor/obj/Debug/BatteryMonitor.exe index 838ecbb..214ef00 100644 Binary files a/BatteryMonitor/obj/Debug/BatteryMonitor.exe and b/BatteryMonitor/obj/Debug/BatteryMonitor.exe differ diff --git a/BatteryMonitor/obj/Debug/BatteryMonitor.pdb b/BatteryMonitor/obj/Debug/BatteryMonitor.pdb index 9569fe3..964c9ae 100644 Binary files a/BatteryMonitor/obj/Debug/BatteryMonitor.pdb and b/BatteryMonitor/obj/Debug/BatteryMonitor.pdb differ diff --git a/BatteryMonitor/obj/Debug/BatteryMonitor.vbproj.GenerateResource.Cache b/BatteryMonitor/obj/Debug/BatteryMonitor.vbproj.GenerateResource.Cache index 7bfecca..bca1495 100644 Binary files a/BatteryMonitor/obj/Debug/BatteryMonitor.vbproj.GenerateResource.Cache and b/BatteryMonitor/obj/Debug/BatteryMonitor.vbproj.GenerateResource.Cache differ diff --git a/BatteryMonitor/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/BatteryMonitor/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache index 6e17da3..d462db6 100644 Binary files a/BatteryMonitor/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache and b/BatteryMonitor/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/BatteryMonitor/obj/Release/BatteryMonitor.Form1.resources b/BatteryMonitor/obj/Release/BatteryMonitor.Form1.resources index e43911a..d716cc4 100644 Binary files a/BatteryMonitor/obj/Release/BatteryMonitor.Form1.resources and b/BatteryMonitor/obj/Release/BatteryMonitor.Form1.resources differ diff --git a/BatteryMonitor/obj/Release/BatteryMonitor.exe b/BatteryMonitor/obj/Release/BatteryMonitor.exe index 621aa45..d5c51e7 100644 Binary files a/BatteryMonitor/obj/Release/BatteryMonitor.exe and b/BatteryMonitor/obj/Release/BatteryMonitor.exe differ diff --git a/BatteryMonitor/obj/Release/BatteryMonitor.pdb b/BatteryMonitor/obj/Release/BatteryMonitor.pdb index a008f12..c888657 100644 Binary files a/BatteryMonitor/obj/Release/BatteryMonitor.pdb and b/BatteryMonitor/obj/Release/BatteryMonitor.pdb differ diff --git a/BatteryMonitor/obj/Release/BatteryMonitor.vbproj.GenerateResource.Cache b/BatteryMonitor/obj/Release/BatteryMonitor.vbproj.GenerateResource.Cache index 36314da..5279bc5 100644 Binary files a/BatteryMonitor/obj/Release/BatteryMonitor.vbproj.GenerateResource.Cache and b/BatteryMonitor/obj/Release/BatteryMonitor.vbproj.GenerateResource.Cache differ diff --git a/BatteryMonitor/obj/Release/CoreCompileInputs.cache b/BatteryMonitor/obj/Release/CoreCompileInputs.cache index ecdefa5..65fd8c4 100644 --- a/BatteryMonitor/obj/Release/CoreCompileInputs.cache +++ b/BatteryMonitor/obj/Release/CoreCompileInputs.cache @@ -1 +1 @@ -7a1a3c6e06f88de5bbde1c489e65d680de247f33 +cf90b1a0eff9428a045f276c0ce419c915dab5d7 diff --git a/BatteryMonitor/obj/Release/DesignTimeResolveAssemblyReferencesInput.cache b/BatteryMonitor/obj/Release/DesignTimeResolveAssemblyReferencesInput.cache index a65a03b..0933cfd 100644 Binary files a/BatteryMonitor/obj/Release/DesignTimeResolveAssemblyReferencesInput.cache and b/BatteryMonitor/obj/Release/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/BatteryMonitor/power-settings (2).ico b/BatteryMonitor/power-settings (2).ico deleted file mode 100644 index e0951e3..0000000 Binary files a/BatteryMonitor/power-settings (2).ico and /dev/null differ