commit fc2be8a2ad5d949f7a5ebe22bcdb98d798d3bc8d Author: johnillo Date: Mon Jan 15 23:17:02 2024 -0800 Clean start to gitea repo. diff --git a/.github/screenshot.gif b/.github/screenshot.gif new file mode 100644 index 0000000..61f9108 Binary files /dev/null and b/.github/screenshot.gif differ diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b616f36 --- /dev/null +++ b/.gitignore @@ -0,0 +1,91 @@ +*.suo +*.user + +[Dd]ebug/ +[Dd]debugPublic/ +[Rr]elease/ +[Rr]eleases/ +x64 +x86 +bld +[Bb]in/ +[Oo]bj/ +[Ll]og/ + +[Tt]est[Rr]esult*/ +[Bb]uild[Ll]og.* + +[Dd]ebugPS/ +[Rr]eleasePS/ +dlldata.c + +*_i.c +*_p.c +*_i.h +*.ilk +*.meta +*.obj +*.iobj +*.pch +*.pdb +*.ipdb +*.pgc +*.pgd +*.rsp +*.sbr +*.tlb +*.tli +*.tlh +*.tmp +*.tmp_proj +*.log +*.vspscc +*.vssscc +.builds +*.pidb +*.svclog +*.scc + + +*.psess +*.vsp +*.vspx +*.sap + +*.e2e + +publish/ + +*.nupkg +**/[Pp]ackages/* +!**/[Pp]ackages/build/ +*.nuget.props +*.nuget.targets + +*.[Cc]ache +!*.[Cc]ache/ + +ClientBin/ +~$* +*~ + +*.mdf +*.ldf +*.ndf + +*.opt +*.vbw + +.DS_Store +.AppleDouble +.LSOverride + +._* + +.DocumentRevisions-V100 +.fseventsd +.Spotlight-V100 +.TemporaryItems +.Trashes +.VolumeIcon.icns +.com.apple.timemachine.donotpresent \ No newline at end of file diff --git a/AppLauncher.sln b/AppLauncher.sln new file mode 100644 index 0000000..08f94d3 --- /dev/null +++ b/AppLauncher.sln @@ -0,0 +1,20 @@ + +Microsoft Visual Studio Solution File, Format Version 9.00 +# Visual Studio 2005 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AppLauncher", "AppLauncher\AppLauncher.csproj", "{FF6ADA8B-C158-4846-8E53-5EE82668B020}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {FF6ADA8B-C158-4846-8E53-5EE82668B020}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {FF6ADA8B-C158-4846-8E53-5EE82668B020}.Debug|Any CPU.Build.0 = Debug|Any CPU + {FF6ADA8B-C158-4846-8E53-5EE82668B020}.Release|Any CPU.ActiveCfg = Release|Any CPU + {FF6ADA8B-C158-4846-8E53-5EE82668B020}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/AppLauncher/AppLauncher.csproj b/AppLauncher/AppLauncher.csproj new file mode 100644 index 0000000..60dc650 --- /dev/null +++ b/AppLauncher/AppLauncher.csproj @@ -0,0 +1,85 @@ + + + Debug + AnyCPU + 8.0.50727 + 2.0 + {FF6ADA8B-C158-4846-8E53-5EE82668B020} + WinExe + Properties + AppLauncher + AppLauncher + start_menu_xp.ico + + + true + full + false + bin\Debug\ + TRACE;DEBUG + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + Form + + + MainForm.cs + + + + + Designer + MainForm.cs + + + ResXFileCodeGenerator + Resources.Designer.cs + Designer + + + True + Resources.resx + True + + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + True + Settings.settings + True + + + + + + + + \ No newline at end of file diff --git a/AppLauncher/MainForm.Designer.cs b/AppLauncher/MainForm.Designer.cs new file mode 100644 index 0000000..c9f60e2 --- /dev/null +++ b/AppLauncher/MainForm.Designer.cs @@ -0,0 +1,139 @@ +namespace AppLauncher +{ + partial class MainForm + { + /// + /// 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() + { + System.Windows.Forms.Label label1; + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm)); + this.searchbox = new System.Windows.Forms.TextBox(); + this.launchAction = new System.Windows.Forms.Button(); + this.appsList = new System.Windows.Forms.ListBox(); + this.ExcludeUninstallersCheckbox = new System.Windows.Forms.CheckBox(); + label1 = new System.Windows.Forms.Label(); + this.SuspendLayout(); + // + // label1 + // + label1.AutoSize = true; + label1.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + label1.Location = new System.Drawing.Point(9, 9); + label1.Name = "label1"; + label1.Size = new System.Drawing.Size(74, 13); + label1.TabIndex = 3; + label1.Text = "Find Program:"; + // + // searchbox + // + this.searchbox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.searchbox.Location = new System.Drawing.Point(12, 28); + this.searchbox.Name = "searchbox"; + this.searchbox.Size = new System.Drawing.Size(300, 21); + this.searchbox.TabIndex = 0; + this.searchbox.TextChanged += new System.EventHandler(this.OnSearchBoxTextChanged); + this.searchbox.KeyDown += new System.Windows.Forms.KeyEventHandler(this.OnSearchBoxKeyDown); + // + // launchAction + // + this.launchAction.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); + this.launchAction.Location = new System.Drawing.Point(229, 303); + this.launchAction.Name = "launchAction"; + this.launchAction.Size = new System.Drawing.Size(83, 24); + this.launchAction.TabIndex = 1; + this.launchAction.Text = "&Launch"; + this.launchAction.UseVisualStyleBackColor = true; + this.launchAction.Click += new System.EventHandler(this.OnLaunchActionClick); + // + // appsList + // + this.appsList.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.appsList.FormattingEnabled = true; + this.appsList.HorizontalScrollbar = true; + this.appsList.IntegralHeight = false; + this.appsList.Location = new System.Drawing.Point(12, 55); + this.appsList.Name = "appsList"; + this.appsList.Size = new System.Drawing.Size(300, 242); + this.appsList.TabIndex = 2; + this.appsList.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.OnAppListMouseDblClick); + this.appsList.KeyDown += new System.Windows.Forms.KeyEventHandler(this.OnAppListKeyDown); + // + // ExcludeUninstallersCheckbox + // + this.ExcludeUninstallersCheckbox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); + this.ExcludeUninstallersCheckbox.AutoSize = true; + this.ExcludeUninstallersCheckbox.Checked = true; + this.ExcludeUninstallersCheckbox.CheckState = System.Windows.Forms.CheckState.Checked; + this.ExcludeUninstallersCheckbox.Location = new System.Drawing.Point(12, 308); + this.ExcludeUninstallersCheckbox.Name = "ExcludeUninstallersCheckbox"; + this.ExcludeUninstallersCheckbox.Size = new System.Drawing.Size(121, 17); + this.ExcludeUninstallersCheckbox.TabIndex = 4; + this.ExcludeUninstallersCheckbox.Text = "E&xclude Uninstallers"; + this.ExcludeUninstallersCheckbox.UseVisualStyleBackColor = true; + this.ExcludeUninstallersCheckbox.CheckedChanged += new System.EventHandler(this.OnExcludeUninstallersCheckboxCheckChanged); + // + // MainForm + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(324, 337); + this.Controls.Add(this.ExcludeUninstallersCheckbox); + this.Controls.Add(label1); + this.Controls.Add(this.appsList); + this.Controls.Add(this.launchAction); + this.Controls.Add(this.searchbox); + this.DoubleBuffered = true; + this.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); + this.KeyPreview = true; + this.MaximizeBox = false; + this.MaximumSize = new System.Drawing.Size(800, 700); + this.MinimizeBox = false; + this.MinimumSize = new System.Drawing.Size(264, 235); + this.Name = "MainForm"; + this.ShowInTaskbar = false; + this.StartPosition = System.Windows.Forms.FormStartPosition.Manual; + this.Text = "App Launcher"; + this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.OnMainFormFormClosing); + this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.OnMainFormKeyDown); + this.Load += new System.EventHandler(this.OnMainFormLoad); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.TextBox searchbox; + private System.Windows.Forms.Button launchAction; + private System.Windows.Forms.ListBox appsList; + private System.Windows.Forms.CheckBox ExcludeUninstallersCheckbox; + } +} + diff --git a/AppLauncher/MainForm.cs b/AppLauncher/MainForm.cs new file mode 100644 index 0000000..fe758c4 --- /dev/null +++ b/AppLauncher/MainForm.cs @@ -0,0 +1,207 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Text; +using System.Windows.Forms; +using System.IO; +using System.Diagnostics; +using System.Xml; +using System.Xml.Serialization; + +namespace AppLauncher +{ + [Serializable] + public partial class MainForm : Form + { + SortedDictionary linksList; + + public MainForm() + { + InitializeComponent(); + linksList = LoadStartMenuLinks(); + } + + private SortedDictionary LoadStartMenuLinks() + { + SortedDictionary dictionary = new SortedDictionary(); + + String[] links = Utils.MergeArrays( + ExtractLinks(Program.GetAllUsersStartMenuDirectory()), + ExtractLinks(Environment.GetFolderPath(Environment.SpecialFolder.StartMenu))); + + foreach (String p in links) { + String filename = Path.GetFileNameWithoutExtension(p); + if (dictionary.ContainsKey(filename)) { + continue; + } + dictionary.Add(filename, p); + } + + return dictionary; + } + + private String[] ExtractLinks(String path) + { + return ExtractLinksRecursive(path, new String[0]); + } + + private String[] ExtractLinksRecursive(String path, String[] files) + { + String[] pathFiles = Directory.GetFiles(path, "*.lnk"); + + pathFiles = Utils.MergeArrays(pathFiles, files); + + String[] pathDirs = Directory.GetDirectories(path); + + foreach (String dir in pathDirs) { + String[] dirFilePaths = ExtractLinksRecursive(dir, files); + if (dirFilePaths.Length > 0) { + pathFiles = Utils.MergeArrays(pathFiles, dirFilePaths); + } + } + + return pathFiles; + } + + private void FilterLinks(String keyword) + { + SortedDictionary filteredData = new SortedDictionary(); + + foreach (KeyValuePair val in linksList) { + Boolean containsUninstallWord = val.Key.ToLowerInvariant().Contains("uninstall"); + if (containsUninstallWord && ExcludeUninstallersCheckbox.Checked) { + continue; + } + if (val.Key.ToLowerInvariant().Contains(keyword.ToLowerInvariant())) { + filteredData.Add(val.Key, val.Value); + } + } + + if (filteredData.Count == 0) { + appsList.DataSource = null; + return; + } + + appsList.DataSource = new BindingSource(filteredData, null); + appsList.DisplayMember = "Key"; + appsList.ValueMember = "Value"; + } + + private void ExecuteSelectedLink() + { + String path = appsList.SelectedValue.ToString(); + try { + Process.Start(path); + Application.Exit(); + } catch { + MessageBox.Show("Failed to run application.", "Failed", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + private void LoadSettings() + { + Size = Properties.Settings.Default.WindowSize; + Location = Properties.Settings.Default.WindowLocation; + searchbox.Text = Properties.Settings.Default.LastSearchString; + + // make sure window is within all screen bounds + foreach (Screen screen in Screen.AllScreens) { + if (screen.WorkingArea.Contains(Location)) { + return; + } + } + CenterToScreen(); + } + + private void SaveSettings() + { + Properties.Settings.Default.WindowSize = Size; + Properties.Settings.Default.WindowLocation = Location; + Properties.Settings.Default.LastSearchString = searchbox.Text; + + Properties.Settings.Default.Save(); + } + + private void OnMainFormLoad(object sender, EventArgs e) + { + FilterLinks(searchbox.Text); + LoadSettings(); + } + + private void OnSearchBoxTextChanged(object sender, EventArgs e) + { + FilterLinks(((TextBox)sender).Text); + } + + private void OnMainFormKeyDown(object sender, KeyEventArgs e) + { + if (e.KeyCode == Keys.Escape) { + e.SuppressKeyPress = true; + Application.Exit(); + } + } + + private void OnSearchBoxKeyDown(object sender, KeyEventArgs e) + { + switch (e.KeyCode) { + case Keys.A: + Console.WriteLine(e.Modifiers); + if (e.Modifiers == Keys.Control) { + ((TextBox)sender).SelectAll(); + e.SuppressKeyPress = true; + } + break; + case Keys.Enter: + if (appsList.SelectedItems.Count == 0) { + return; + } + ExecuteSelectedLink(); + e.SuppressKeyPress = true; + break; + case Keys.Down: + if (appsList.SelectedItems.Count == 0) { + return; + } + appsList.SelectedIndex = Math.Min(appsList.SelectedIndex + 1, appsList.Items.Count - 1); + e.Handled = true; + break; + case Keys.Up: + if (appsList.SelectedItems.Count == 0) { + return; + } + appsList.SelectedIndex = Math.Max(appsList.SelectedIndex - 1, 0); + e.SuppressKeyPress = true; + break; + } + } + + private void OnLaunchActionClick(object sender, EventArgs e) + { + ExecuteSelectedLink(); + } + + private void OnExcludeUninstallersCheckboxCheckChanged(object sender, EventArgs e) + { + FilterLinks(searchbox.Text); + } + + private void OnMainFormFormClosing(object sender, FormClosingEventArgs e) + { + SaveSettings(); + } + + private void OnAppListKeyDown(object sender, KeyEventArgs e) + { + if (e.KeyCode == Keys.Enter) { + ExecuteSelectedLink(); + } + } + + private void OnAppListMouseDblClick(object sender, MouseEventArgs e) + { + ExecuteSelectedLink(); + } + } +} \ No newline at end of file diff --git a/AppLauncher/MainForm.resx b/AppLauncher/MainForm.resx new file mode 100644 index 0000000..442dff1 --- /dev/null +++ b/AppLauncher/MainForm.resx @@ -0,0 +1,146 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + + False + + + + + AAABAAIAICAQAAEABADoAgAAJgAAABAQEAABAAQAKAEAAA4DAAAoAAAAIAAAAEAAAAABAAQAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAAAAAAICAAIAAAACAAIAAgIAAAMDAwACAgIAAAAD/AAD/ + AAAA//8A/wAAAP8A/wD//wAA////AAAAAAAAAAAAAAAAAAAAAACIiIiIiIiIiIiIiIiIiIiAh3d3d3d3 + d3d3d3d3d3d3gIf4iIiIiIiId3d3d3d3d4CH93BwAAB3eHd3d3d3d3eAh/cHAGCgd3h3d3d3d3d3gIf3 + cHAAAHd4d3d3d3d3d4CH9wcAkLB3eHd3d3d3d3eAh/d3cAAAd3h3d3d3d3d3gIf/////////d3d3d3d3 + d4CHd3d3d3d3d3d3d3d3d3eAiIiIiIiIiIiIiIiIiIiIgCKPREd3d3d3d3d3gCIiIiIij0RHd3d3d3d3 + d4AiIiIiIo9ER85Hd3d3d3eAIiIiIiKPREfMd4iIiIh3gCIiIiIij0RHd3d3d3d3d4AiIiIiIo9ER5sX + d3d3d3eAIiIiIiKPREeZd4iIiIh3gCIiIiIij0RHd3d3d3d3d4AiIiIiIo9ER25Hd3d3d3eAIiIiIiKP + REdmd4iIiIh3gCIiIiIij0RHd3d3d3d3d4AiIiIiIo9ERzsHd3d3d3eAIiIiIiKPREczd4iIiIh3gCIi + IiIij0RHd3d3d3d3d4AiIiIiIo9ER85Hd3d3d3eAIiIiIiKPREfMd4iIiIh3gCIiIiIij0RHd3d3d3d3 + d4AiIiIiIo9ER3d3d3d3d3eAIiIiIiKP////////////gCIiIiIiiIiIiIiIiIiIiIAiIiIiAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwAAA/8AAAP/AAAD/wAAA/8AA + AP/AAAD/wAAA/8AAAP/AAAD/wAAA/8AAAP/AAAD/wAAA/8AAAP/AAAD/wAAA/8AAAP/AAAD/wAAA/8AA + AP8oAAAAEAAAACAAAAABAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAAICAAIAA + AACAAIAAgIAAAMDAwACAgIAAAAD/AAD/AAAA//8A/wAAAP8A/wD//wAA////AAAAAAAAAAAAh4iIiHd3 + d3CH/Kd4d3d3cIf5v/h3d3dwiIiIiIiIiIAY9Ed3d3cBERj0R8eIhwERGPRHd3d3AREY9EfHiIcBERj0 + R3d3dwERGPRHx4iHAREY9Ed3d3cBERj0R8eIhwERGPRHd3d3AREY//////8BERiIiIiIiAERAAB3cAAA + d3gAAHd3AAB3gAAA//+AB///gAd3d4AHd4CAB3d3gAd3d4AHd3eAB3eAgAeIiIAHiIiAB4iIgAeIgA== + + + \ No newline at end of file diff --git a/AppLauncher/Program.cs b/AppLauncher/Program.cs new file mode 100644 index 0000000..31a52ba --- /dev/null +++ b/AppLauncher/Program.cs @@ -0,0 +1,38 @@ +using System; +using System.Collections.Generic; +using System.Windows.Forms; +using System.Runtime.InteropServices; +using System.Text; +using System.Threading; + +namespace AppLauncher +{ + static class Program + { + const int CSIDL_COMMON_STARTMENU = 0x16; // All Users\Start Menu + + [DllImport("shell32.dll")] + public static extern bool SHGetSpecialFolderPath(IntPtr hwnd, [Out] StringBuilder lpszPath, int nFolder, bool fCreate); + + public static string GetAllUsersStartMenuDirectory() + { + StringBuilder path = new StringBuilder(512); + SHGetSpecialFolderPath(IntPtr.Zero, path, CSIDL_COMMON_STARTMENU, false); + return path.ToString(); + } + + [STAThread] + static void Main() + { + bool isNewInstance; + Mutex mutex = new Mutex(true, "AppLauncher", out isNewInstance); + if (!isNewInstance) { + return; + } + Application.EnableVisualStyles(); + Application.SetCompatibleTextRenderingDefault(false); + Application.Run(new MainForm()); + mutex.ReleaseMutex(); + } + } +} \ No newline at end of file diff --git a/AppLauncher/Properties/AssemblyInfo.cs b/AppLauncher/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..61bd7ed --- /dev/null +++ b/AppLauncher/Properties/AssemblyInfo.cs @@ -0,0 +1,33 @@ +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("App Launcher")] +[assembly: AssemblyDescription("Search and launch apps in the Start Menu.")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("John Espiritu")] +[assembly: AssemblyProduct("App Launcher")] +[assembly: AssemblyCopyright("Copyright © 2023")] +[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("ed116524-6444-401c-8e20-38c9fdded84b")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/AppLauncher/Properties/Resources.Designer.cs b/AppLauncher/Properties/Resources.Designer.cs new file mode 100644 index 0000000..6119bfc --- /dev/null +++ b/AppLauncher/Properties/Resources.Designer.cs @@ -0,0 +1,63 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:2.0.50727.42 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace AppLauncher.Properties { + using System; + + + /// + /// 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", "2.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 (object.ReferenceEquals(resourceMan, null)) { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("AppLauncher.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/AppLauncher/Properties/Resources.resx b/AppLauncher/Properties/Resources.resx new file mode 100644 index 0000000..af7dbeb --- /dev/null +++ b/AppLauncher/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/AppLauncher/Properties/Settings.Designer.cs b/AppLauncher/Properties/Settings.Designer.cs new file mode 100644 index 0000000..468018b --- /dev/null +++ b/AppLauncher/Properties/Settings.Designer.cs @@ -0,0 +1,62 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:2.0.50727.42 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace AppLauncher.Properties { + + + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "8.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; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("120, 100")] + public global::System.Drawing.Size WindowSize { + get { + return ((global::System.Drawing.Size)(this["WindowSize"])); + } + set { + this["WindowSize"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("-1, -1")] + public global::System.Drawing.Point WindowLocation { + get { + return ((global::System.Drawing.Point)(this["WindowLocation"])); + } + set { + this["WindowLocation"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("")] + public string LastSearchString { + get { + return ((string)(this["LastSearchString"])); + } + set { + this["LastSearchString"] = value; + } + } + } +} diff --git a/AppLauncher/Properties/Settings.settings b/AppLauncher/Properties/Settings.settings new file mode 100644 index 0000000..924b4ca --- /dev/null +++ b/AppLauncher/Properties/Settings.settings @@ -0,0 +1,15 @@ + + + + + + 120, 100 + + + -1, -1 + + + + + + \ No newline at end of file diff --git a/AppLauncher/Utils.cs b/AppLauncher/Utils.cs new file mode 100644 index 0000000..d150f81 --- /dev/null +++ b/AppLauncher/Utils.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Text; + +namespace AppLauncher +{ + class Utils + { + public static String[] MergeArrays(String[] a, String[] b) + { + String[] mergedArray = new String[a.Length + b.Length]; + a.CopyTo(mergedArray, 0); + b.CopyTo(mergedArray, a.Length); + return mergedArray; + } + } +} diff --git a/AppLauncher/app.config b/AppLauncher/app.config new file mode 100644 index 0000000..08df450 --- /dev/null +++ b/AppLauncher/app.config @@ -0,0 +1,33 @@ + + + + +
+
+ + + + + + 120, 100 + + + -1, -1 + + + + + + + + 120, 100 + + + -1, -1 + + + + + + + \ No newline at end of file diff --git a/AppLauncher/start_menu_xp.ico b/AppLauncher/start_menu_xp.ico new file mode 100644 index 0000000..1ae5d75 Binary files /dev/null and b/AppLauncher/start_menu_xp.ico differ diff --git a/README.md b/README.md new file mode 100644 index 0000000..238914d --- /dev/null +++ b/README.md @@ -0,0 +1,12 @@ +# App Launcher for Windows XP + +Start apps in Windows XP the modern way. + +![screenshot](.github/screenshot.gif) + +## Development + +* C# +* .NET Framework 2.0 +* Windows Forms Application +* Visual Studio 2005