Skip to content

Commit

Permalink
fixed some stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Noxyntious committed Mar 18, 2023
1 parent 16f58c0 commit 93925c8
Show file tree
Hide file tree
Showing 25 changed files with 80 additions and 127 deletions.
12 changes: 12 additions & 0 deletions SHitSHell/DbgMenu.Designer.vb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions SHitSHell/DbgMenu.vb
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,12 @@
'My.Computer.Registry.SetValue("HKEY_CURRENT_USER\SHitSHell", "Appearance", "dark")
MsgBox("successfully set dark mode", MsgBoxStyle.Information, "sukcess!")
End Sub

Private Sub Label1_Click(sender As Object, e As EventArgs) Handles Label1.Click

End Sub

Private Sub DbgMenu_Load(sender As Object, e As EventArgs) Handles MyBase.Load
Label1.Text = getDefaultBrowser()
End Sub
End Class
52 changes: 1 addition & 51 deletions SHitSHell/My Project/Resources.Designer.vb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 0 additions & 15 deletions SHitSHell/My Project/Resources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -121,15 +121,9 @@
<data name="internet" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\internet.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="imageres_1023" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\imageres_1023.ico;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="shutdown" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\shutdown.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="shell32_16744" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\shell32_16744.ico;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="terminal" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\terminal.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
Expand All @@ -142,16 +136,7 @@
<data name="pc" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\pc.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="imageres_165" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\imageres_165.ico;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="settings" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\settings.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="imageres_27" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\imageres_27.ico;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="imageres_101" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\imageres_101.ico;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
</root>
Binary file modified SHitSHell/Resources/explorer.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed SHitSHell/Resources/imageres_101.ico
Binary file not shown.
Binary file removed SHitSHell/Resources/imageres_1023.ico
Binary file not shown.
Binary file removed SHitSHell/Resources/imageres_165.ico
Binary file not shown.
Binary file removed SHitSHell/Resources/imageres_27.ico
Binary file not shown.
Binary file modified SHitSHell/Resources/internet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified SHitSHell/Resources/pc.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified SHitSHell/Resources/settings.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed SHitSHell/Resources/shell32_16744.ico
Binary file not shown.
Binary file modified SHitSHell/Resources/shutdown.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified SHitSHell/Resources/terminal.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 6 additions & 1 deletion SHitSHell/SHitDock.Designer.vb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions SHitSHell/SHitDock.resx
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,4 @@
<metadata name="ToolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="ToolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
</root>
16 changes: 2 additions & 14 deletions SHitSHell/SHitDock.vb
Original file line number Diff line number Diff line change
Expand Up @@ -55,20 +55,8 @@ SystemInformation.WorkingArea
End Sub

Private Sub PictureBox3_Click(sender As Object, e As EventArgs) Handles InternetIcon.Click
'Attempts to load Firefox, if you don't have Firefox, it will attempt to launch Chrome, if you don't have Chrome, it will attempt to launch Edge, if you don't have Edge it will attempt to launch Internet Explorer.
Try
Process.Start("Firefox.exe")
Catch
Try
Process.Start("Chrome.exe")
Catch
Try
Process.Start("ms-edge")
Catch
Process.Start("iexplore.exe")
End Try
End Try
End Try
'Launches the default browser.
Process.Start(getDefaultBrowser)
End Sub

Private Sub PictureBox5_Click(sender As Object, e As EventArgs) Handles PictureBox5.Click
Expand Down
18 changes: 3 additions & 15 deletions SHitSHell/SHitLauncher.Designer.vb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion SHitSHell/SHitLauncher.vb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ SystemInformation.WorkingArea
Exit Sub
End Sub

Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Private Sub Button1_Click(sender As Object, e As EventArgs)
DbgMenu.Show()
End Sub
End Class
13 changes: 12 additions & 1 deletion SHitSHell/SHitSHell.vb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Imports System.Runtime.InteropServices
Imports Microsoft.Win32

#Region "Various Settings"
Module ShareefDontLikeIt
Expand All @@ -9,7 +10,17 @@ Module ShareefDontLikeIt
<DllImport("user32.dll", SetLastError:=True)>
Private Function SetWindowPos(ByVal hWnd As IntPtr, ByVal hWndInsertAfter As IntPtr, ByVal X As Integer, ByVal Y As Integer, ByVal cx As Integer, ByVal cy As Integer, ByVal uFlags As SetWindowPosFlags) As Boolean
End Function

<DllImport("shell32.dll", EntryPoint:="FindExecutableW")>
Public Function FindExecutableW(<InAttribute(), MarshalAs(UnmanagedType.LPTStr)> ByVal lpFile As String, <InAttribute(), MarshalAs(UnmanagedType.LPTStr)> ByVal lpDirectory As String, <MarshalAs(UnmanagedType.LPWStr)> ByVal lpResult As System.Text.StringBuilder) As IntPtr
End Function
Public Function getDefaultBrowser() As String
Dim tmpFile As String = IO.Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "fake.html")
IO.File.WriteAllText(tmpFile, "")
Dim sb As New System.Text.StringBuilder(260)
FindExecutableW(tmpFile, Nothing, sb)
If IO.File.Exists(tmpFile) Then IO.File.Delete(tmpFile)
Return sb.ToString
End Function
<Flags>
Private Enum SetWindowPosFlags As UInteger
SynchronousWindowPosition = &H4000
Expand Down
25 changes: 5 additions & 20 deletions SHitSHell/SHitSHell.vbproj
Original file line number Diff line number Diff line change
Expand Up @@ -95,17 +95,17 @@
<Compile Include="DbgMenu.vb">
<SubType>Form</SubType>
</Compile>
<Compile Include="My Project\Resources.Designer.vb">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<Compile Include="Settings.Designer.vb">
<DependentUpon>Settings.vb</DependentUpon>
</Compile>
<Compile Include="Settings.vb">
<SubType>Form</SubType>
</Compile>
<Compile Include="My Project\Resources.Designer.vb">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<Compile Include="SHitDock.Designer.vb">
<DependentUpon>SHitDock.vb</DependentUpon>
</Compile>
Expand Down Expand Up @@ -233,20 +233,5 @@
<ItemGroup>
<None Include="Resources\shitshell.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\imageres_1023.ico" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\imageres_27.ico" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\shell32_16744.ico" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\imageres_165.ico" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\imageres_101.ico" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.targets" />
</Project>
Loading

0 comments on commit 93925c8

Please sign in to comment.