diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 0000000..1ff0c42
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1,63 @@
+###############################################################################
+# Set default behavior to automatically normalize line endings.
+###############################################################################
+* text=auto
+
+###############################################################################
+# Set default behavior for command prompt diff.
+#
+# This is need for earlier builds of msysgit that does not have it on by
+# default for csharp files.
+# Note: This is only used by command line
+###############################################################################
+#*.cs diff=csharp
+
+###############################################################################
+# Set the merge driver for project and solution files
+#
+# Merging from the command prompt will add diff markers to the files if there
+# are conflicts (Merging from VS is not affected by the settings below, in VS
+# the diff markers are never inserted). Diff markers may cause the following
+# file extensions to fail to load in VS. An alternative would be to treat
+# these files as binary and thus will always conflict and require user
+# intervention with every merge. To do so, just uncomment the entries below
+###############################################################################
+#*.sln merge=binary
+#*.csproj merge=binary
+#*.vbproj merge=binary
+#*.vcxproj merge=binary
+#*.vcproj merge=binary
+#*.dbproj merge=binary
+#*.fsproj merge=binary
+#*.lsproj merge=binary
+#*.wixproj merge=binary
+#*.modelproj merge=binary
+#*.sqlproj merge=binary
+#*.wwaproj merge=binary
+
+###############################################################################
+# behavior for image files
+#
+# image files are treated as binary by default.
+###############################################################################
+#*.jpg binary
+#*.png binary
+#*.gif binary
+
+###############################################################################
+# diff behavior for common document formats
+#
+# Convert binary document formats to text before diffing them. This feature
+# is only available from the command line. Turn it on by uncommenting the
+# entries below.
+###############################################################################
+#*.doc diff=astextplain
+#*.DOC diff=astextplain
+#*.docx diff=astextplain
+#*.DOCX diff=astextplain
+#*.dot diff=astextplain
+#*.DOT diff=astextplain
+#*.pdf diff=astextplain
+#*.PDF diff=astextplain
+#*.rtf diff=astextplain
+#*.RTF diff=astextplain
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..3c4efe2
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,261 @@
+## Ignore Visual Studio temporary files, build results, and
+## files generated by popular Visual Studio add-ons.
+
+# User-specific files
+*.suo
+*.user
+*.userosscache
+*.sln.docstates
+
+# User-specific files (MonoDevelop/Xamarin Studio)
+*.userprefs
+
+# Build results
+[Dd]ebug/
+[Dd]ebugPublic/
+[Rr]elease/
+[Rr]eleases/
+x64/
+x86/
+bld/
+[Bb]in/
+[Oo]bj/
+[Ll]og/
+
+# Visual Studio 2015 cache/options directory
+.vs/
+# Uncomment if you have tasks that create the project's static files in wwwroot
+#wwwroot/
+
+# MSTest test Results
+[Tt]est[Rr]esult*/
+[Bb]uild[Ll]og.*
+
+# NUNIT
+*.VisualState.xml
+TestResult.xml
+
+# Build Results of an ATL Project
+[Dd]ebugPS/
+[Rr]eleasePS/
+dlldata.c
+
+# DNX
+project.lock.json
+project.fragment.lock.json
+artifacts/
+
+*_i.c
+*_p.c
+*_i.h
+*.ilk
+*.meta
+*.obj
+*.pch
+*.pdb
+*.pgc
+*.pgd
+*.rsp
+*.sbr
+*.tlb
+*.tli
+*.tlh
+*.tmp
+*.tmp_proj
+*.log
+*.vspscc
+*.vssscc
+.builds
+*.pidb
+*.svclog
+*.scc
+
+# Chutzpah Test files
+_Chutzpah*
+
+# Visual C++ cache files
+ipch/
+*.aps
+*.ncb
+*.opendb
+*.opensdf
+*.sdf
+*.cachefile
+*.VC.db
+*.VC.VC.opendb
+
+# Visual Studio profiler
+*.psess
+*.vsp
+*.vspx
+*.sap
+
+# TFS 2012 Local Workspace
+$tf/
+
+# Guidance Automation Toolkit
+*.gpState
+
+# ReSharper is a .NET coding add-in
+_ReSharper*/
+*.[Rr]e[Ss]harper
+*.DotSettings.user
+
+# JustCode is a .NET coding add-in
+.JustCode
+
+# TeamCity is a build add-in
+_TeamCity*
+
+# DotCover is a Code Coverage Tool
+*.dotCover
+
+# NCrunch
+_NCrunch_*
+.*crunch*.local.xml
+nCrunchTemp_*
+
+# MightyMoose
+*.mm.*
+AutoTest.Net/
+
+# Web workbench (sass)
+.sass-cache/
+
+# Installshield output folder
+[Ee]xpress/
+
+# DocProject is a documentation generator add-in
+DocProject/buildhelp/
+DocProject/Help/*.HxT
+DocProject/Help/*.HxC
+DocProject/Help/*.hhc
+DocProject/Help/*.hhk
+DocProject/Help/*.hhp
+DocProject/Help/Html2
+DocProject/Help/html
+
+# Click-Once directory
+publish/
+
+# Publish Web Output
+*.[Pp]ublish.xml
+*.azurePubxml
+# TODO: Comment the next line if you want to checkin your web deploy settings
+# but database connection strings (with potential passwords) will be unencrypted
+#*.pubxml
+*.publishproj
+
+# Microsoft Azure Web App publish settings. Comment the next line if you want to
+# checkin your Azure Web App publish settings, but sensitive information contained
+# in these scripts will be unencrypted
+PublishScripts/
+
+# NuGet Packages
+*.nupkg
+# The packages folder can be ignored because of Package Restore
+**/packages/*
+# except build/, which is used as an MSBuild target.
+!**/packages/build/
+# Uncomment if necessary however generally it will be regenerated when needed
+#!**/packages/repositories.config
+# NuGet v3's project.json files produces more ignoreable files
+*.nuget.props
+*.nuget.targets
+
+# Microsoft Azure Build Output
+csx/
+*.build.csdef
+
+# Microsoft Azure Emulator
+ecf/
+rcf/
+
+# Windows Store app package directories and files
+AppPackages/
+BundleArtifacts/
+Package.StoreAssociation.xml
+_pkginfo.txt
+
+# Visual Studio cache files
+# files ending in .cache can be ignored
+*.[Cc]ache
+# but keep track of directories ending in .cache
+!*.[Cc]ache/
+
+# Others
+ClientBin/
+~$*
+*~
+*.dbmdl
+*.dbproj.schemaview
+*.jfm
+*.pfx
+*.publishsettings
+node_modules/
+orleans.codegen.cs
+
+# Since there are multiple workflows, uncomment next line to ignore bower_components
+# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
+#bower_components/
+
+# RIA/Silverlight projects
+Generated_Code/
+
+# Backup & report files from converting an old project file
+# to a newer Visual Studio version. Backup files are not needed,
+# because we have git ;-)
+_UpgradeReport_Files/
+Backup*/
+UpgradeLog*.XML
+UpgradeLog*.htm
+
+# SQL Server files
+*.mdf
+*.ldf
+
+# Business Intelligence projects
+*.rdl.data
+*.bim.layout
+*.bim_*.settings
+
+# Microsoft Fakes
+FakesAssemblies/
+
+# GhostDoc plugin setting file
+*.GhostDoc.xml
+
+# Node.js Tools for Visual Studio
+.ntvs_analysis.dat
+
+# Visual Studio 6 build log
+*.plg
+
+# Visual Studio 6 workspace options file
+*.opt
+
+# Visual Studio LightSwitch build output
+**/*.HTMLClient/GeneratedArtifacts
+**/*.DesktopClient/GeneratedArtifacts
+**/*.DesktopClient/ModelManifest.xml
+**/*.Server/GeneratedArtifacts
+**/*.Server/ModelManifest.xml
+_Pvt_Extensions
+
+# Paket dependency manager
+.paket/paket.exe
+paket-files/
+
+# FAKE - F# Make
+.fake/
+
+# JetBrains Rider
+.idea/
+*.sln.iml
+
+# CodeRush
+.cr/
+
+# Python Tools for Visual Studio (PTVS)
+__pycache__/
+*.pyc
\ No newline at end of file
diff --git a/README.md b/README.md
index 2c16e5c..fc99888 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,22 @@
On Screen Keyboard
==================
+# Notes For The Reviewer
+
+- This is my first time using C# in a project ever.
+- I chose to use C# since it fits into the .NET framework very well.
+- To run my program:
+ - Open solution file in Visual Studio Code.
+ - Start the OnScreenKeyboard file.
+- My program assumes a user wants to select a text file to read with a GUI display and has a text file ready to select.
+- My program outputs to the console, but this output is a string that could be returned anywhere in the software.
+- My code is the following:
+ - OnScreenKeyboard.cs
+ - KeyboardConverter.cs
+ - KeyboardMapping.cs
+ - All other code is part of the VS Code generation that allows the program to run
+
+
The Problem
-----------
On screen keyboards are the bane of DVR users. To help alleviate the pain, one local company is asking you to implement part of a voice to text search for their DVR by developing an algorithm to script the on screen keyboard.
diff --git a/code/OnScreenKeyboardApplication/OnScreenKeyboardApplication.sln b/code/OnScreenKeyboardApplication/OnScreenKeyboardApplication.sln
new file mode 100644
index 0000000..c667c21
--- /dev/null
+++ b/code/OnScreenKeyboardApplication/OnScreenKeyboardApplication.sln
@@ -0,0 +1,25 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio 15
+VisualStudioVersion = 15.0.28010.2019
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OnScreenKeyboardApplication", "OnScreenKeyboardApplication\OnScreenKeyboardApplication.csproj", "{39368AF1-5727-40F9-8DFA-F94B2F83E0E5}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {39368AF1-5727-40F9-8DFA-F94B2F83E0E5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {39368AF1-5727-40F9-8DFA-F94B2F83E0E5}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {39368AF1-5727-40F9-8DFA-F94B2F83E0E5}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {39368AF1-5727-40F9-8DFA-F94B2F83E0E5}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ SolutionGuid = {6BFAA8D1-9EF3-40DB-BCE5-CB2A5A05A3DC}
+ EndGlobalSection
+EndGlobal
diff --git a/code/OnScreenKeyboardApplication/OnScreenKeyboardApplication/App.config b/code/OnScreenKeyboardApplication/OnScreenKeyboardApplication/App.config
new file mode 100644
index 0000000..731f6de
--- /dev/null
+++ b/code/OnScreenKeyboardApplication/OnScreenKeyboardApplication/App.config
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/code/OnScreenKeyboardApplication/OnScreenKeyboardApplication/Form1.Designer.cs b/code/OnScreenKeyboardApplication/OnScreenKeyboardApplication/Form1.Designer.cs
new file mode 100644
index 0000000..ee112c6
--- /dev/null
+++ b/code/OnScreenKeyboardApplication/OnScreenKeyboardApplication/Form1.Designer.cs
@@ -0,0 +1,40 @@
+namespace OnScreenKeyboardApplication
+{
+ partial class Form1
+ {
+ ///
+ /// Required designer variable.
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// Clean up any resources being used.
+ ///
+ /// true if managed resources should be disposed; otherwise, false.
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region Windows Form Designer generated code
+
+ ///
+ /// Required method for Designer support - do not modify
+ /// the contents of this method with the code editor.
+ ///
+ private void InitializeComponent()
+ {
+ this.components = new System.ComponentModel.Container();
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(800, 450);
+ this.Text = "Form1";
+ }
+
+ #endregion
+ }
+}
+
diff --git a/code/OnScreenKeyboardApplication/OnScreenKeyboardApplication/Form1.cs b/code/OnScreenKeyboardApplication/OnScreenKeyboardApplication/Form1.cs
new file mode 100644
index 0000000..0a1015a
--- /dev/null
+++ b/code/OnScreenKeyboardApplication/OnScreenKeyboardApplication/Form1.cs
@@ -0,0 +1,20 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+
+namespace OnScreenKeyboardApplication
+{
+ public partial class Form1 : Form
+ {
+ public Form1()
+ {
+ InitializeComponent();
+ }
+ }
+}
diff --git a/code/OnScreenKeyboardApplication/OnScreenKeyboardApplication/KeyboardConverter.cs b/code/OnScreenKeyboardApplication/OnScreenKeyboardApplication/KeyboardConverter.cs
new file mode 100644
index 0000000..088ce63
--- /dev/null
+++ b/code/OnScreenKeyboardApplication/OnScreenKeyboardApplication/KeyboardConverter.cs
@@ -0,0 +1,100 @@
+using System;
+
+namespace OnScreenKeyboardApplication
+{
+ class KeyboardConverter
+ {
+ private string keyboardMovementsLine;
+ private KeyboardMapping keyboardMap;
+
+ public string ConvertLines(string inputLines)
+ {
+ string[] splitInputLines = inputLines.Split(new[] { Environment.NewLine }, StringSplitOptions.None);
+
+ string convertedLines = "";
+
+ // Convert each separate line of the text file into keyboard movements
+ foreach (string inputLine in splitInputLines)
+ {
+ convertedLines += ConvertToKeyboardMovements(inputLine) + "\n";
+ }
+
+ return convertedLines;
+ }
+
+ private string ConvertToKeyboardMovements(string inputLine)
+ {
+ keyboardMovementsLine = "";
+
+ // Our keyboard mapping can convert characters into keyboard movements
+ keyboardMap = new KeyboardMapping();
+
+ foreach (char inputCharacter in inputLine)
+ {
+ if (keyboardMap.IsSpaceCharacter(inputCharacter))
+ {
+ keyboardMovementsLine += "S" + ",";
+ }
+ else
+ {
+ // Ensure all characters are uppercase to avoid confusion in handling them
+ AddKeyboardPositionMovements(char.ToUpper(inputCharacter));
+ AddSelectCharacter();
+ }
+ }
+
+ keyboardMovementsLine = RemoveFinalCommaFromMovements();
+
+ return keyboardMovementsLine;
+ }
+
+ private string RemoveFinalCommaFromMovements()
+ {
+ return keyboardMovementsLine.Remove(keyboardMovementsLine.Length - 1);
+ }
+
+ private void AddKeyboardPositionMovements(char inputCharacter)
+ {
+ int verticalMoves = keyboardMap.FindVerticalMovement(inputCharacter);
+ int horizontalMoves = keyboardMap.FindHorizontalMovement(inputCharacter);
+
+ AddVerticalMovement(verticalMoves);
+ AddHorizontalMovement(horizontalMoves);
+ }
+
+ private void AddVerticalMovement(int verticalMoves)
+ {
+ for (int i = 0; i < Math.Abs(verticalMoves); i++)
+ {
+ if (verticalMoves < 0)
+ {
+ keyboardMovementsLine += "U" + ",";
+ }
+ else
+ {
+ keyboardMovementsLine += "D" + ",";
+ }
+ }
+ }
+
+ private void AddHorizontalMovement(int horizontalMoves)
+ {
+ for (int i = 0; i < Math.Abs(horizontalMoves); i++)
+ {
+ if (horizontalMoves < 0)
+ {
+ keyboardMovementsLine += "L" + ",";
+ }
+ else
+ {
+ keyboardMovementsLine += "R" + ",";
+ }
+ }
+ }
+
+ private void AddSelectCharacter()
+ {
+ keyboardMovementsLine += "#" + ",";
+ }
+ }
+}
diff --git a/code/OnScreenKeyboardApplication/OnScreenKeyboardApplication/KeyboardMapping.cs b/code/OnScreenKeyboardApplication/OnScreenKeyboardApplication/KeyboardMapping.cs
new file mode 100644
index 0000000..85d391d
--- /dev/null
+++ b/code/OnScreenKeyboardApplication/OnScreenKeyboardApplication/KeyboardMapping.cs
@@ -0,0 +1,115 @@
+using System;
+
+namespace OnScreenKeyboardApplication
+{
+ class KeyboardMapping
+ {
+ private int currentXPosition;
+ private int currentYPosition;
+
+ public KeyboardMapping()
+ {
+ currentXPosition = 0;
+ currentYPosition = 0;
+ }
+
+ public bool IsSpaceCharacter(char inputCharacter)
+ {
+ return Char.IsWhiteSpace(inputCharacter);
+ }
+
+ public int FindVerticalMovement(char inputCharacter)
+ {
+ int characterValue = ConvertCharacterToInt(inputCharacter);
+
+ int newYPosition = FindNewYPosition(characterValue);
+
+ // Change in position of characters across keyboard
+ int verticalMovement = newYPosition - currentYPosition;
+
+ currentYPosition = newYPosition;
+
+ return verticalMovement;
+ }
+
+ public int FindHorizontalMovement(char inputCharacter)
+ {
+ int characterValue = ConvertCharacterToInt(inputCharacter);
+
+ int newXPosition = FindNewXPosition(characterValue);
+
+ int horizontalMovement = newXPosition - currentXPosition;
+
+ currentXPosition = newXPosition;
+
+ return horizontalMovement;
+ }
+
+ public int ConvertCharacterToInt(char inputCharacter)
+ {
+ // Standard system of converting characters to integer values
+ return Convert.ToInt32(inputCharacter);
+ }
+
+ public int FindNewYPosition(int characterValue)
+ {
+ int convertedYPosition = 0;
+
+ if (IsLetter(characterValue))
+ {
+ // Letters begin at a value of 65 with 'A', so now we start them at index 0 of essentially a keyboard array
+ convertedYPosition = (characterValue - 65) / 6;
+ }
+ else if(IsNumber(characterValue))
+ {
+ // Numbers begin at a value of 49 with '1', so we now start them at 26, right after our letters in the keyboard
+ convertedYPosition = (characterValue - 23) / 6;
+ }
+ else if (IsZero(characterValue))
+ {
+ // 0 is at the fifth position of our keyboard array
+ convertedYPosition = 5;
+ }
+
+ return convertedYPosition;
+ }
+
+ public int FindNewXPosition(int characterValue)
+ {
+ int convertedXPosition = 0;
+
+ if (IsLetter(characterValue))
+ {
+ convertedXPosition = (characterValue - 65) % 6;
+ }
+ else if (IsNumber(characterValue))
+ {
+ convertedXPosition = (characterValue - 23) % 6;
+ }
+ else if (IsZero(characterValue))
+ {
+ convertedXPosition = 5;
+ }
+
+ return convertedXPosition;
+ }
+
+ public bool IsLetter(int characterValue)
+ {
+ // Converted values for uppercase letters from characters
+ return characterValue > 64 && characterValue < 91;
+ }
+
+ public bool IsNumber(int characterValue)
+ {
+ // Converted values for numbers from characters
+ return characterValue > 48 && characterValue < 58;
+ }
+
+ public bool IsZero(int characterValue)
+ {
+ // Character converted value of 0
+ return characterValue == 48;
+ }
+ }
+}
diff --git a/code/OnScreenKeyboardApplication/OnScreenKeyboardApplication/OnScreenKeyboard.cs b/code/OnScreenKeyboardApplication/OnScreenKeyboardApplication/OnScreenKeyboard.cs
new file mode 100644
index 0000000..4041f0f
--- /dev/null
+++ b/code/OnScreenKeyboardApplication/OnScreenKeyboardApplication/OnScreenKeyboard.cs
@@ -0,0 +1,100 @@
+using System;
+using System.IO;
+using System.Windows.Forms;
+
+namespace OnScreenKeyboardApplication
+{
+ public class OnScreenKeyboard
+ {
+ private static OpenFileDialog openFileDialog;
+ private static StreamReader inputReader;
+ private static string inputLines;
+ private static KeyboardConverter converter;
+ private static string convertedLines;
+
+ [STAThread]
+ static void Main()
+ {
+ CreateOpenFileDialogObject();
+
+ SetDialogAttributes();
+
+ // Only convert text file if one is successfully selected
+ if (OpenFileSuccess())
+ {
+ SetupFileReader();
+
+ ReadInputLines();
+
+ CreateKeyboardConverterObject();
+
+ ConvertInputTextToKeyboard();
+
+ WriteConvertedLines();
+
+ CloseReaderStream();
+ }
+ }
+
+ private static void CreateOpenFileDialogObject()
+ {
+ openFileDialog = new OpenFileDialog();
+ }
+
+ private static void SetDialogAttributes()
+ {
+ openFileDialog.Title = "Select a text file to convert";
+
+ SetDialogSelectableFileTypes();
+
+ openFileDialog.CheckFileExists = true;
+ openFileDialog.CheckPathExists = true;
+ }
+
+ private static void SetDialogSelectableFileTypes()
+ {
+ // Ensure that only text files are selected
+ openFileDialog.DefaultExt = "txt";
+ openFileDialog.Filter = "txt files (*.txt)|*.txt";
+ }
+
+ private static bool OpenFileSuccess()
+ {
+ return openFileDialog.ShowDialog() == DialogResult.OK;
+ }
+
+ private static void SetupFileReader()
+ {
+ var inputFileStream = openFileDialog.OpenFile();
+
+ inputReader = new StreamReader(inputFileStream);
+ }
+
+ private static void ReadInputLines()
+ {
+ // Read all input at once to avoid slowness of multiple reads
+ inputLines = inputReader.ReadToEnd();
+ }
+
+ private static void CreateKeyboardConverterObject()
+ {
+ converter = new KeyboardConverter();
+ }
+
+ private static void ConvertInputTextToKeyboard()
+ {
+ convertedLines = converter.ConvertLines(inputLines);
+ }
+
+ private static void WriteConvertedLines()
+ {
+ // Write all lines at once to avoid slowness of multiple writes
+ Console.WriteLine(convertedLines);
+ }
+
+ private static void CloseReaderStream()
+ {
+ inputReader.Close();
+ }
+ }
+}
\ No newline at end of file
diff --git a/code/OnScreenKeyboardApplication/OnScreenKeyboardApplication/OnScreenKeyboardApplication.csproj b/code/OnScreenKeyboardApplication/OnScreenKeyboardApplication/OnScreenKeyboardApplication.csproj
new file mode 100644
index 0000000..369cfd4
--- /dev/null
+++ b/code/OnScreenKeyboardApplication/OnScreenKeyboardApplication/OnScreenKeyboardApplication.csproj
@@ -0,0 +1,82 @@
+
+
+
+
+ Debug
+ AnyCPU
+ {39368AF1-5727-40F9-8DFA-F94B2F83E0E5}
+ WinExe
+ OnScreenKeyboardApplication
+ OnScreenKeyboardApplication
+ v4.6.1
+ 512
+ true
+ true
+
+
+ AnyCPU
+ true
+ full
+ false
+ bin\Debug\
+ DEBUG;TRACE
+ prompt
+ 4
+
+
+ AnyCPU
+ pdbonly
+ true
+ bin\Release\
+ TRACE
+ prompt
+ 4
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Form
+
+
+ Form1.cs
+
+
+
+
+
+
+ ResXFileCodeGenerator
+ Resources.Designer.cs
+ Designer
+
+
+ True
+ Resources.resx
+
+
+ SettingsSingleFileGenerator
+ Settings.Designer.cs
+
+
+ True
+ Settings.settings
+ True
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/code/OnScreenKeyboardApplication/OnScreenKeyboardApplication/Properties/AssemblyInfo.cs b/code/OnScreenKeyboardApplication/OnScreenKeyboardApplication/Properties/AssemblyInfo.cs
new file mode 100644
index 0000000..00e6865
--- /dev/null
+++ b/code/OnScreenKeyboardApplication/OnScreenKeyboardApplication/Properties/AssemblyInfo.cs
@@ -0,0 +1,36 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// General Information about an assembly is controlled through the following
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+[assembly: AssemblyTitle("OnScreenKeyboardApplication")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("OnScreenKeyboardApplication")]
+[assembly: AssemblyCopyright("Copyright © 2019")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible
+// to COM components. If you need to access a type in this assembly from
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+[assembly: Guid("39368af1-5727-40f9-8dfa-f94b2f83e0e5")]
+
+// Version information for an assembly consists of the following four values:
+//
+// Major Version
+// Minor Version
+// Build Number
+// Revision
+//
+// You can specify all the values or you can default the Build and Revision Numbers
+// by using the '*' as shown below:
+// [assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/code/OnScreenKeyboardApplication/OnScreenKeyboardApplication/Properties/Resources.Designer.cs b/code/OnScreenKeyboardApplication/OnScreenKeyboardApplication/Properties/Resources.Designer.cs
new file mode 100644
index 0000000..4bef075
--- /dev/null
+++ b/code/OnScreenKeyboardApplication/OnScreenKeyboardApplication/Properties/Resources.Designer.cs
@@ -0,0 +1,71 @@
+//------------------------------------------------------------------------------
+//
+// This code was generated by a tool.
+// Runtime Version:4.0.30319.42000
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
+//------------------------------------------------------------------------------
+
+namespace OnScreenKeyboardApplication.Properties
+{
+
+
+ ///
+ /// A strongly-typed resource class, for looking up localized strings, etc.
+ ///
+ // This class was auto-generated by the StronglyTypedResourceBuilder
+ // class via a tool like ResGen or Visual Studio.
+ // To add or remove a member, edit your .ResX file then rerun ResGen
+ // with the /str option, or rebuild your VS project.
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
+ internal class Resources
+ {
+
+ private static global::System.Resources.ResourceManager resourceMan;
+
+ private static global::System.Globalization.CultureInfo resourceCulture;
+
+ [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
+ internal Resources()
+ {
+ }
+
+ ///
+ /// Returns the cached ResourceManager instance used by this class.
+ ///
+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+ internal static global::System.Resources.ResourceManager ResourceManager
+ {
+ get
+ {
+ if ((resourceMan == null))
+ {
+ global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("OnScreenKeyboardApplication.Properties.Resources", typeof(Resources).Assembly);
+ resourceMan = temp;
+ }
+ return resourceMan;
+ }
+ }
+
+ ///
+ /// Overrides the current thread's CurrentUICulture property for all
+ /// resource lookups using this strongly typed resource class.
+ ///
+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+ internal static global::System.Globalization.CultureInfo Culture
+ {
+ get
+ {
+ return resourceCulture;
+ }
+ set
+ {
+ resourceCulture = value;
+ }
+ }
+ }
+}
diff --git a/code/OnScreenKeyboardApplication/OnScreenKeyboardApplication/Properties/Resources.resx b/code/OnScreenKeyboardApplication/OnScreenKeyboardApplication/Properties/Resources.resx
new file mode 100644
index 0000000..af7dbeb
--- /dev/null
+++ b/code/OnScreenKeyboardApplication/OnScreenKeyboardApplication/Properties/Resources.resx
@@ -0,0 +1,117 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/code/OnScreenKeyboardApplication/OnScreenKeyboardApplication/Properties/Settings.Designer.cs b/code/OnScreenKeyboardApplication/OnScreenKeyboardApplication/Properties/Settings.Designer.cs
new file mode 100644
index 0000000..33ce115
--- /dev/null
+++ b/code/OnScreenKeyboardApplication/OnScreenKeyboardApplication/Properties/Settings.Designer.cs
@@ -0,0 +1,30 @@
+//------------------------------------------------------------------------------
+//
+// This code was generated by a tool.
+// Runtime Version:4.0.30319.42000
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
+//------------------------------------------------------------------------------
+
+namespace OnScreenKeyboardApplication.Properties
+{
+
+
+ [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")]
+ internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
+ {
+
+ private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
+
+ public static Settings Default
+ {
+ get
+ {
+ return defaultInstance;
+ }
+ }
+ }
+}
diff --git a/code/OnScreenKeyboardApplication/OnScreenKeyboardApplication/Properties/Settings.settings b/code/OnScreenKeyboardApplication/OnScreenKeyboardApplication/Properties/Settings.settings
new file mode 100644
index 0000000..3964565
--- /dev/null
+++ b/code/OnScreenKeyboardApplication/OnScreenKeyboardApplication/Properties/Settings.settings
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
diff --git a/sample data/match_sample_test.txt b/sample data/match_sample_test.txt
new file mode 100644
index 0000000..f760f7d
--- /dev/null
+++ b/sample data/match_sample_test.txt
@@ -0,0 +1 @@
+IT Crowd
\ No newline at end of file
diff --git a/sample data/multiple_line_test.txt b/sample data/multiple_line_test.txt
new file mode 100644
index 0000000..1c4120d
--- /dev/null
+++ b/sample data/multiple_line_test.txt
@@ -0,0 +1,2 @@
+ab d
+d49D
\ No newline at end of file
diff --git a/sample data/random_text_test.txt b/sample data/random_text_test.txt
new file mode 100644
index 0000000..a1588be
--- /dev/null
+++ b/sample data/random_text_test.txt
@@ -0,0 +1 @@
+0OoC3
\ No newline at end of file