-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
57 lines (44 loc) · 1.51 KB
/
Copy pathProgram.cs
File metadata and controls
57 lines (44 loc) · 1.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Windows.Threading;
using WindowsFormsApp1.project;
using Sound_Recorder_Project.program;
using Sound_Recorder_Project.program.tools;
using Sound_Recorder_Project.program.tools.keyboardhook;
using System.Diagnostics;
namespace Sound_Recorder_Project
{
static class Program
{
private static RecordingForm recordingForm;
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
String thisprocessname = Process.GetCurrentProcess().ProcessName;
if (Process.GetProcesses().Count(p => p.ProcessName == thisprocessname) > 1)
return;
//visualize stuff
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
KeyboardActionListener keyboardActionListener = new KeyboardActionListener();
Task t = Task.Run(() =>
{
keyboardActionListener.RunHook();
});
AppCoordinator appCoordinator = new AppCoordinator();
appCoordinator.PrepareCoordination();
///run action listener
/*ActionListener actionListener = new ActionListener();
actionListener.ListinToUserCommands();
KeyboardIntercepter.Hook();
*/
}
}
}