Skip to content
This repository has been archived by the owner on Jun 26, 2021. It is now read-only.

Commit

Permalink
Update to 1.0.2.4
Browse files Browse the repository at this point in the history
Update to 1.0.2.4.
This update adds a command buffer accessible via alt+up or alt+down.
  • Loading branch information
Captain-ALM committed Feb 18, 2018
1 parent 209d165 commit 773d00e
Show file tree
Hide file tree
Showing 57 changed files with 91 additions and 9 deletions.
Binary file modified calmcon.v12.suo
Binary file not shown.
4 changes: 2 additions & 2 deletions calmcon/My Project/AssemblyInfo.vb
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ Imports System.Runtime.InteropServices
' by using the '*' as shown below:
' <Assembly: AssemblyVersion("1.0.*")>

<Assembly: AssemblyVersion("1.0.2.3")>
<Assembly: AssemblyFileVersion("1.0.2.3")>
<Assembly: AssemblyVersion("1.0.2.4")>
<Assembly: AssemblyFileVersion("1.0.2.4")>
Binary file modified calmcon/bin/Debug/calmcmd.exe
Binary file not shown.
Binary file modified calmcon/bin/Debug/calmcmd.pdb
Binary file not shown.
Binary file modified calmcon/bin/Debug/cnsrapi.dll
Binary file not shown.
Binary file modified calmcon/bin/Debug/cnsrapi.pdb
Binary file not shown.
Binary file modified calmcon/bin/Release/calmcmd.exe
Binary file not shown.
Binary file modified calmcon/bin/Release/calmcmd.pdb
Binary file not shown.
Binary file modified calmcon/bin/Release/cnsrapi.dll
Binary file not shown.
Binary file modified calmcon/bin/Release/cnsrapi.pdb
Binary file not shown.
5 changes: 5 additions & 0 deletions calmcon/cmdpr.vb
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,11 @@ Public Module cmdpr
commands.Add("echo", New executable_command("echo", New Cmd(AddressOf echo)))
commands.Add("echo_mode", New executable_command("echo_mode", New Cmd(AddressOf echo)))
commandhelplst.Add("echo/echo_mode%true/false[if echo is enabled]% : enables and disables command echoing.")
'buffer / cmd_buffer / command_buffer
commands.Add("buffer", New executable_command("buffer", New Cmd(AddressOf cmdbuffer)))
commands.Add("cmd_buffer", New executable_command("cmd_buffer", New Cmd(AddressOf cmdbuffer)))
commands.Add("command_buffer", New executable_command("command_buffer", New Cmd(AddressOf cmdbuffer)))
commandhelplst.Add("buffer/cmd_buffer/command_buffer%limit/number/mode/clear%%*(integer/boolean/none)[limit and number : limit of the buffer, mode : the shortcut mode in the textbox, clear : clears the buffer] : manages the command buffer, alt+up/alt+down to cycle through the buffer.")
End Sub
End Module

Expand Down
21 changes: 20 additions & 1 deletion calmcon/commands.vb
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,31 @@ Module commands_data
Public commandhelplst As New List(Of String)
Public commandhelplstext As New List(Of String)

Public Function cmdbuffer(args As String()) As OutputText
If Not args Is Nothing Then
If args.Length >= 1 Then
If args(0).ToLower = "clear" Then
command_buffer_index = 1
command_buffer.Clear()
ElseIf args.Length >= 2 Then
If args(0).ToLower = "limit" Or args(0).ToLower = "number" Then
Dim int As Integer = convertstringtoint(args(1))
command_buffer_limit = int
ElseIf args(0).ToLower = "mode" Then
Dim bool As Boolean = convertstringtobool(args(1))
command_buffer_shortcuts_enabled = bool
End If
End If
End If
End If
Return "Buffer Limit: " & command_buffer_limit & " Buffer Shortcuts Enabled: " & command_buffer_shortcuts_enabled & "."
End Function

Public Function echo(args As String()) As OutputText
If Not args Is Nothing Then
If args.Length >= 1 Then
Dim b As Boolean = convertstringtobool(args(0))
echo_command = b
Return "Echo Mode Set To: " & echo_command & "."
End If
End If
Return "Echo Mode: " & echo_command & "."
Expand Down
5 changes: 5 additions & 0 deletions calmcon/form_flags.vb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ Public Module form_flags
Public aboutbx_showing As Boolean = False
Public cancel_action As Boolean = False
Public disablechkbx As Boolean = False
Public command_buffer As New List(Of String)
'1 based
Public command_buffer_index As Integer = 1
Public command_buffer_limit As Integer = 40
Public command_buffer_shortcuts_enabled As Boolean = True
'form flags
Public tocleartxt As Boolean = False
Public movetobottom As Boolean = False
Expand Down
61 changes: 57 additions & 4 deletions calmcon/main.vb
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,42 @@ Public Class main
contrcmdvis(False)
cmd_inter(txtbxcmd.Text)
contrcmdvis(True)
ElseIf e.KeyCode = Keys.Up And e.Alt And command_buffer_shortcuts_enabled Then
e.SuppressKeyPress = True
e.Handled = True
command_buffer_index -= 1
If command_buffer_index > command_buffer_limit Then
command_buffer_index = command_buffer_limit
End If
If command_buffer_index > command_buffer.Count Then
command_buffer_index = command_buffer.Count
End If
If command_buffer_index <= 0 Then
command_buffer_index = 1
End If
If command_buffer_limit > 0 Then
If Not command_buffer.Count = 0 Then
txtbxcmd.Text = command_buffer(command_buffer_index - 1)
End If
End If
ElseIf e.KeyCode = Keys.Down And e.Alt And command_buffer_shortcuts_enabled Then
e.SuppressKeyPress = True
e.Handled = True
command_buffer_index += 1
If command_buffer_index > command_buffer_limit Then
command_buffer_index = command_buffer_limit
End If
If command_buffer_index > command_buffer.Count Then
command_buffer_index = command_buffer.Count
End If
If command_buffer_index <= 0 Then
command_buffer_index = 1
End If
If command_buffer_limit > 0 Then
If Not command_buffer.Count = 0 Then
txtbxcmd.Text = command_buffer(command_buffer_index - 1)
End If
End If
End If
End Sub

Expand Down Expand Up @@ -649,8 +685,28 @@ threadstart5:

Private Sub cmd_inter(icmd As String)
Dim ccmd As String = icmd.Replace(ControlChars.Lf, ControlChars.CrLf)

If command_buffer.Count <> 0 Then
command_buffer.Insert(command_buffer_index, icmd)
command_buffer_index += 1
Else
command_buffer.Add(icmd)
command_buffer_index = 1
End If
If command_buffer.Count > command_buffer_limit And command_buffer_limit > 0 Then
command_buffer.RemoveAt(0)
End If
If command_buffer_index > command_buffer_limit Then
command_buffer_index = command_buffer_limit
End If
If command_buffer_index > command_buffer.Count Then
command_buffer_index = command_buffer.Count
End If
If command_buffer_index <= 0 Then
command_buffer_index = 1
End If

If ccmd <> "" Then
If allowenter Then
Dim ccom As String = ""
Dim cuchar As String = ""
Dim lchar As String = ""
Expand Down Expand Up @@ -683,10 +739,7 @@ threadstart5:
Dim comcmd As String = l_stack.Pop()
command_stack.Push(comcmd)
Next
Else
command_stack.Push(ccmd.Replace(ControlChars.Lf, ControlChars.CrLf).Replace(ControlChars.CrLf, ""))
End If
End If
txtbxcmd.Text = ""
End Sub

Expand Down
Binary file modified calmcon/obj/Debug/calmcmd.exe
Binary file not shown.
Binary file modified calmcon/obj/Debug/calmcmd.pdb
Binary file not shown.
Binary file modified calmcon/obj/Debug/calmcon.vbprojResolveAssemblyReference.cache
Binary file not shown.
Binary file modified calmcon/obj/Release/calmcmd.exe
Binary file not shown.
Binary file modified calmcon/obj/Release/calmcmd.pdb
Binary file not shown.
Binary file modified calmcon/obj/Release/calmcon.vbprojResolveAssemblyReference.cache
Binary file not shown.
Binary file modified calmextensionlib/bin/Debug/calmextensionlib.dll
Binary file not shown.
Binary file modified calmextensionlib/bin/Debug/calmextensionlib.pdb
Binary file not shown.
Binary file modified calmextensionlib/bin/Debug/cnsrapi.dll
Binary file not shown.
Binary file modified calmextensionlib/bin/Debug/cnsrapi.pdb
Binary file not shown.
Binary file modified calmextensionlib/bin/Release/calmextensionlib.dll
Binary file not shown.
Binary file modified calmextensionlib/bin/Release/calmextensionlib.pdb
Binary file not shown.
Binary file modified calmextensionlib/bin/Release/cnsrapi.dll
Binary file not shown.
Binary file modified calmextensionlib/bin/Release/cnsrapi.pdb
Binary file not shown.
Binary file modified calmextensionlib/obj/Debug/calmextensionlib.dll
Binary file not shown.
Binary file modified calmextensionlib/obj/Debug/calmextensionlib.pdb
Binary file not shown.
Binary file not shown.
Binary file modified calmextensionlib/obj/Release/calmextensionlib.dll
Binary file not shown.
Binary file modified calmextensionlib/obj/Release/calmextensionlib.pdb
Binary file not shown.
Binary file not shown.
4 changes: 2 additions & 2 deletions cnshare/My Project/AssemblyInfo.vb
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ Imports System.Runtime.InteropServices
' by using the '*' as shown below:
' <Assembly: AssemblyVersion("1.0.*")>

<Assembly: AssemblyVersion("1.0.2.3")>
<Assembly: AssemblyFileVersion("1.0.2.3")>
<Assembly: AssemblyVersion("1.0.2.4")>
<Assembly: AssemblyFileVersion("1.0.2.4")>
Binary file modified cnshare/bin/Debug/cnsrapi.dll
Binary file not shown.
Binary file modified cnshare/bin/Debug/cnsrapi.pdb
Binary file not shown.
Binary file modified cnshare/bin/Release/cnsrapi.dll
Binary file not shown.
Binary file modified cnshare/bin/Release/cnsrapi.pdb
Binary file not shown.
Binary file modified cnshare/obj/Debug/cnsrapi.dll
Binary file not shown.
Binary file modified cnshare/obj/Debug/cnsrapi.pdb
Binary file not shown.
Binary file modified cnshare/obj/Release/cnsrapi.dll
Binary file not shown.
Binary file modified cnshare/obj/Release/cnsrapi.pdb
Binary file not shown.
Binary file modified specialmsg/bin/Debug/cnsrapi.dll
Binary file not shown.
Binary file modified specialmsg/bin/Debug/cnsrapi.pdb
Binary file not shown.
Binary file modified specialmsg/bin/Debug/specialmsg.dll
Binary file not shown.
Binary file modified specialmsg/bin/Debug/specialmsg.pdb
Binary file not shown.
Binary file modified specialmsg/bin/Release/cnsrapi.dll
Binary file not shown.
Binary file modified specialmsg/bin/Release/cnsrapi.pdb
Binary file not shown.
Binary file modified specialmsg/bin/Release/specialmsg.dll
Binary file not shown.
Binary file modified specialmsg/bin/Release/specialmsg.pdb
Binary file not shown.
Binary file modified specialmsg/obj/Debug/specialmsg.dll
Binary file not shown.
Binary file modified specialmsg/obj/Debug/specialmsg.pdb
Binary file not shown.
Binary file not shown.
Binary file modified specialmsg/obj/Release/specialmsg.dll
Binary file not shown.
Binary file modified specialmsg/obj/Release/specialmsg.pdb
Binary file not shown.
Binary file not shown.

0 comments on commit 773d00e

Please sign in to comment.