Skip to content

Commit

Permalink
1.3
Browse files Browse the repository at this point in the history
- Exit button added to GUI
- Save file dialog fixed
- Listener Feature Added
- Builder now allows client for remote access (beta)
  • Loading branch information
AHXR committed Nov 1, 2017
1 parent e365a83 commit 8c7e0c6
Show file tree
Hide file tree
Showing 34 changed files with 2,310 additions and 22 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
1.3

- Exit button added to GUI
- Save file dialog fixed
- Listener Feature Added
- Builder now allows client for remote access (beta)

1.2.1 (10/30/2017)

- Protocol code added
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<p align="center">
<img src="https://i.imgur.com/UzyOWNK.png" />
<a href="https://i.imgur.com/HQhESds.jpg">Web Builder</a> | <a href="https://i.imgur.com/u8iKWTN.png">.net Builder</a>
<a href="https://i.imgur.com/HQhESds.jpg">Web Builder</a> | <a href="https://i.imgur.com/ieYpNPN.png">.net Builder</a> | <a href="https://i.imgur.com/fWVGHxN.png">.net Listener</a>
</p>

---
Expand All @@ -21,6 +21,8 @@ if the client enters their password, the extracted file will be deleted. This wi

In the releases, I've included the builder, the empty screenlock exe (don't run) and a test file. The password to the test executable is "test". Use this at your own risk.

---

# AHXR ScreenLock - Shutdown 2017

<p align="center">
Expand Down
2 changes: 2 additions & 0 deletions builder/frmAbout.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#include "frmAbout.h"

109 changes: 109 additions & 0 deletions builder/frmAbout.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
#pragma once

namespace AHXRScreenLock {

using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace System::Windows::Forms;
using namespace System::Data;
using namespace System::Drawing;

/// <summary>
/// Summary for frmAbout
/// </summary>
public ref class frmAbout : public System::Windows::Forms::Form
{
public:
frmAbout(void)
{
InitializeComponent();
//
//TODO: Add the constructor code here
//
}

protected:
/// <summary>
/// Clean up any resources being used.
/// </summary>
~frmAbout()
{
if (components)
{
delete components;
}
}
private: System::Windows::Forms::Label^ label1;
protected:
private: System::Windows::Forms::LinkLabel^ linkLabel1;

private:
/// <summary>
/// Required designer variable.
/// </summary>
System::ComponentModel::Container ^components;

#pragma region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
void InitializeComponent(void)
{
this->label1 = (gcnew System::Windows::Forms::Label());
this->linkLabel1 = (gcnew System::Windows::Forms::LinkLabel());
this->SuspendLayout();
//
// label1
//
this->label1->AutoSize = true;
this->label1->Font = (gcnew System::Drawing::Font(L"Trebuchet MS", 12, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point,
static_cast<System::Byte>(0)));
this->label1->ForeColor = System::Drawing::Color::DarkCyan;
this->label1->Location = System::Drawing::Point(12, 9);
this->label1->Name = L"label1";
this->label1->Size = System::Drawing::Size(159, 22);
this->label1->TabIndex = 0;
this->label1->Text = L"AHXRBuilder (c) 2017";
//
// linkLabel1
//
this->linkLabel1->AutoSize = true;
this->linkLabel1->Font = (gcnew System::Drawing::Font(L"Trebuchet MS", 12, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point,
static_cast<System::Byte>(0)));
this->linkLabel1->Location = System::Drawing::Point(12, 31);
this->linkLabel1->Name = L"linkLabel1";
this->linkLabel1->Size = System::Drawing::Size(326, 22);
this->linkLabel1->TabIndex = 1;
this->linkLabel1->TabStop = true;
this->linkLabel1->Text = L"https://github.com/AHXR/AHXR-ScreenLock";
this->linkLabel1->LinkClicked += gcnew System::Windows::Forms::LinkLabelLinkClickedEventHandler(this, &frmAbout::linkLabel1_LinkClicked);
//
// frmAbout
//
this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
this->BackColor = System::Drawing::Color::FromArgb(static_cast<System::Int32>(static_cast<System::Byte>(35)), static_cast<System::Int32>(static_cast<System::Byte>(35)),
static_cast<System::Int32>(static_cast<System::Byte>(35)));
this->ClientSize = System::Drawing::Size(352, 72);
this->Controls->Add(this->linkLabel1);
this->Controls->Add(this->label1);
this->FormBorderStyle = System::Windows::Forms::FormBorderStyle::FixedDialog;
this->MaximizeBox = false;
this->MaximumSize = System::Drawing::Size(358, 98);
this->MinimizeBox = false;
this->MinimumSize = System::Drawing::Size(358, 98);
this->Name = L"frmAbout";
this->ShowIcon = false;
this->Text = L"About";
this->ResumeLayout(false);
this->PerformLayout();

}
#pragma endregion
private: System::Void linkLabel1_LinkClicked(System::Object^ sender, System::Windows::Forms::LinkLabelLinkClickedEventArgs^ e) {
System::Diagnostics::Process::Start("https://github.com/AHXR/AHXR-ScreenLock");
}
};
}
16 changes: 13 additions & 3 deletions builder/frmMain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ using namespace System;
using namespace System::Windows::Forms;

std::string s_attached_p;
bool b_tracking_toggle;

#include "locker.h"
#include "pack.h"
Expand All @@ -49,21 +50,30 @@ void main(array<String^>^ args) {
System::String ^ s_arg_two;
System::String ^ s_arg_three;
System::String ^ s_arg_four;
System::String ^ s_arg_five;

s_arg_one = args[0];
s_arg_two = args[1];
s_arg_three = args[2];
s_arg_four = args[3];
s_arg_five = args[4];

std::string s_file_name = marshal_as< std::string >(s_arg_one);
//std::cout << s_file_name << " | " << marshal_as< std::string >(s_arg_two) << " | " << marshal_as< std::string >(s_arg_three) << " | " << marshal_as< std::string >(s_arg_four) << std::endl;

buildNewLocker(s_file_name);
packLocker(s_file_name, marshal_as< std::string >(s_arg_two), marshal_as< std::string >(s_arg_three));
if (args->Length == 5)
packLocker(s_file_name, marshal_as< std::string >(s_arg_two), marshal_as< std::string >(s_arg_three), marshal_as< std::string >(s_arg_five));
else
packLocker(s_file_name, marshal_as< std::string >(s_arg_two), marshal_as< std::string >(s_arg_three));

if (args->Length == 4) {
if (args->Length >= 4) {
s_arg_four = args[3];
attachExecutable(s_file_name, marshal_as< std::string >(s_arg_four));

std::string s_exe = marshal_as< std::string >(s_arg_four);

if (s_exe.length() > 0 || !s_exe.empty() )
attachExecutable(s_file_name, marshal_as< std::string >(s_arg_four));
}
exit(0); // Don't run GUI if we're building it like this.
}
Expand Down
Loading

0 comments on commit 8c7e0c6

Please sign in to comment.