DuWM enhancements

This commit is contained in:
EverythingWindows 2022-11-23 08:36:50 +07:00
parent 60b812a15b
commit 30ceaeb60f
20 changed files with 291 additions and 49 deletions

View file

@ -252,6 +252,9 @@ Module TerminalAPI
NormalCommand()
End If
Case "reboot"
If IsStartG = True Then
StopG()
End If
Console.TextBox1.Text = Nothing
AdvancedCommand = False
NormalCommand()
@ -366,6 +369,11 @@ Module TerminalAPI
Infobar()
End If
End If
If command Like "taskkill *" Then
Taskkill()
AdvancedCommand = False
NormalCommand()
End If
If command Like "man *" Then
If Strings.AvailableFeature(0) = "1" Then
Manual(command)

View file

@ -128,6 +128,7 @@
'
'Chpater 2:
'>Dual Window Manager (200 CP)
'>>Console Scrollbra (200 CP)
'>>DuWM RGB Support (225 CP)
'>>>DuWM 16 Colors Support (275 CP)
'>>Shifter (250 CP)

View file

@ -0,0 +1,22 @@
Public Class DuWM_Shifter_Desktop
Private Sub DuWM_Shifter_Desktop_Load(sender As Object, e As EventArgs) Handles MyBase.Load
CheckAvailability()
End Sub
Private Sub CheckAvailability()
End Sub
Private Sub cmb_DesktopColor_SelectedIndexChanged(sender As Object, e As EventArgs) Handles cmb_DesktopColor.SelectedIndexChanged
Select Case cmb_DesktopColor.SelectedItem
Case "Black"
DuWM_Shifter_Configs.DesktopBackColor = Color.Black
Case "White"
DuWM_Shifter_Configs.DesktopBackColor = Color.White
Case "Light Gray"
DuWM_Shifter_Configs.DesktopBackColor = Color.Silver
Case "Dark Gray"
DuWM_Shifter_Configs.DesktopBackColor = Color.Gray
End Select
End Sub
End Class

View file

@ -8,7 +8,7 @@
End Sub
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles btn_Close.Click
Private Sub btn_Close_Click(sender As Object, e As EventArgs) Handles btn_Close.Click
Close()
End Sub
@ -40,4 +40,11 @@
End Select
End If
End Sub
Private Sub btn_Apply_Click(sender As Object, e As EventArgs) Handles Button1.Click
Select Case lst_Features.SelectedItem
Case "Desktop"
Desktop.BackColor = DuWM_Shifter_Configs.DesktopBackColor
End Select
End Sub
End Class

View file

@ -0,0 +1,3 @@
Public Class DuWM_Shifter_Configs
Public Shared DesktopBackColor As Color
End Class

View file

@ -1,9 +0,0 @@
Public Class DuWM_Shifter_Desktop
Private Sub DuWM_Shifter_Desktop_Load(sender As Object, e As EventArgs) Handles MyBase.Load
CheckAvailability()
End Sub
Private Sub CheckAvailability()
End Sub
End Class

View file

@ -0,0 +1,60 @@
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Partial Class Uni_KnowledgeInput
Inherits System.Windows.Forms.Form
'Form overrides dispose to clean up the component list.
<System.Diagnostics.DebuggerNonUserCode()> _
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.
<System.Diagnostics.DebuggerStepThrough()> _
Private Sub InitializeComponent()
Me.lbl_Title = New System.Windows.Forms.Label()
Me.SuspendLayout()
'
'lbl_Title
'
Me.lbl_Title.AutoSize = True
Me.lbl_Title.Font = New System.Drawing.Font("Comic Sans MS", 24.0!, System.Drawing.FontStyle.Bold)
Me.lbl_Title.Location = New System.Drawing.Point(12, 9)
Me.lbl_Title.Name = "lbl_Title"
Me.lbl_Title.Size = New System.Drawing.Size(274, 45)
Me.lbl_Title.TabIndex = 0
Me.lbl_Title.Text = "Knowledge Input"
'
'Uni_KnowledgeInput
'
Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
Me.BackColor = System.Drawing.Color.White
Me.ClientSize = New System.Drawing.Size(784, 561)
Me.ControlBox = False
Me.Controls.Add(Me.lbl_Title)
Me.ForeColor = System.Drawing.Color.Black
Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None
Me.Name = "Uni_KnowledgeInput"
Me.ShowIcon = False
Me.ShowInTaskbar = False
Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
Me.Text = "Uni_KnowledgeInput"
Me.TopMost = True
Me.ResumeLayout(False)
Me.PerformLayout()
End Sub
Friend WithEvents lbl_Title As Label
End Class

View file

@ -0,0 +1,120 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

View file

@ -0,0 +1,3 @@
Public Class Uni_KnowledgeInput
End Class

View file

@ -41,6 +41,9 @@
Public Sub DuWM_NewProcess(ProcessName As Form)
Dim NewWindow As New DuWM_WindowContainer
If DuWM_CurrentProcess = 2 Then
NewLine("You've reached the limit of usable programs")
Else
DuWM_CurrentProcess = DuWM_CurrentProcess + 1
NewWindow.ChildForm = ProcessName
NewWindow.ChildForm.TopLevel = False
@ -73,6 +76,7 @@
NewWindow.Location = New Point((Desktop.Width / 2) + 10, 10)
End Select
DuWM_ChangeLayout = True
End If
End Sub
'Public Sub DuWM_GenerateWindowSet(WindowName As Form, PID As Integer)

View file

@ -98,22 +98,29 @@
<Compile Include="Functions\InGame\Hardwares\KeyboardHandler.vb" />
<Compile Include="Functions\InGame\SystemManager\CodepointSystem.vb" />
<Compile Include="Functions\InGame\SystemManager\Terminate.vb" />
<Compile Include="MainForms\Applications\Shifter\DuWM\Categories\DuWM_Shifter_About.Designer.vb">
<Compile Include="MainForms\Applications\DuWM\Shifter\Categories\DuWM_Shifter_About.Designer.vb">
<DependentUpon>DuWM_Shifter_About.vb</DependentUpon>
</Compile>
<Compile Include="MainForms\Applications\Shifter\DuWM\Categories\DuWM_Shifter_About.vb">
<Compile Include="MainForms\Applications\DuWM\Shifter\Categories\DuWM_Shifter_About.vb">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="MainForms\Applications\Shifter\DuWM\Categories\DuWM_Shifter_Desktop.Designer.vb">
<Compile Include="MainForms\Applications\DuWM\Shifter\Categories\DuWM_Shifter_Desktop.Designer.vb">
<DependentUpon>DuWM_Shifter_Desktop.vb</DependentUpon>
</Compile>
<Compile Include="MainForms\Applications\Shifter\DuWM\Categories\DuWM_Shifter_Desktop.vb">
<Compile Include="MainForms\Applications\DuWM\Shifter\Categories\DuWM_Shifter_Desktop.vb">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="MainForms\Applications\Shifter\DuWM\DuWM_Shifter.Designer.vb">
<Compile Include="MainForms\Applications\DuWM\Shifter\DuWM_Shifter_Configs.vb" />
<Compile Include="MainForms\Applications\DuWM\Shifter\DuWM_Shifter.Designer.vb">
<DependentUpon>DuWM_Shifter.vb</DependentUpon>
</Compile>
<Compile Include="MainForms\Applications\Shifter\DuWM\DuWM_Shifter.vb">
<Compile Include="MainForms\Applications\DuWM\Shifter\DuWM_Shifter.vb">
<SubType>Form</SubType>
</Compile>
<Compile Include="MainForms\Applications\Universal\Knowledge Input\Uni_KnowledgeInput.Designer.vb">
<DependentUpon>Uni_KnowledgeInput.vb</DependentUpon>
</Compile>
<Compile Include="MainForms\Applications\Universal\Knowledge Input\Uni_KnowledgeInput.vb">
<SubType>Form</SubType>
</Compile>
<Compile Include="MainForms\BugSlap.Designer.vb">
@ -227,6 +234,7 @@
<Compile Include="TerminalApplications\Internal\Com_Shiftfetch.vb" />
<Compile Include="TerminalApplications\Internal\Com_Shiftorium.vb" />
<Compile Include="TerminalApplications\Internal\Com_Su.vb" />
<Compile Include="TerminalApplications\Internal\Com_Taskkill.vb" />
<Compile Include="TerminalApplications\Internal\Com_Unzip.vb" />
<Compile Include="TerminalApplications\Internal\Com_Username.vb" />
<Compile Include="TerminalApplications\Internal\Com_Ver.vb" />
@ -252,15 +260,18 @@
<Compile Include="TerminalApplications\Internal\Com_Zip.vb" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MainForms\Applications\Shifter\DuWM\Categories\DuWM_Shifter_About.resx">
<EmbeddedResource Include="MainForms\Applications\DuWM\Shifter\Categories\DuWM_Shifter_About.resx">
<DependentUpon>DuWM_Shifter_About.vb</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="MainForms\Applications\Shifter\DuWM\Categories\DuWM_Shifter_Desktop.resx">
<EmbeddedResource Include="MainForms\Applications\DuWM\Shifter\Categories\DuWM_Shifter_Desktop.resx">
<DependentUpon>DuWM_Shifter_Desktop.vb</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="MainForms\Applications\Shifter\DuWM\DuWM_Shifter.resx">
<EmbeddedResource Include="MainForms\Applications\DuWM\Shifter\DuWM_Shifter.resx">
<DependentUpon>DuWM_Shifter.vb</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="MainForms\Applications\Universal\Knowledge Input\Uni_KnowledgeInput.resx">
<DependentUpon>Uni_KnowledgeInput.vb</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="MainForms\BugSlap.resx">
<DependentUpon>BugSlap.vb</DependentUpon>
</EmbeddedResource>

View file

@ -6,6 +6,8 @@
Select Case Strings.ComputerInfo(7)
Case 1
Select Case AppName
Case "knowledge_input"
DuWM_NewProcess(Uni_KnowledgeInput)
Case "shifter"
DuWM_NewProcess(DuWM_Shifter)
End Select

View file

@ -0,0 +1,10 @@
Module Com_Taskkill
Public Sub Taskkill()
Dim PID As Integer = command.Substring(9)
If PID = 0 Then
NewLine("You cannot kill Terminal in this Window Manager")
Else
Strings.ProcessID(PID) = 0
End If
End Sub
End Module