private IOperation BuildKeyboardInterceptorOperation() { var keyboardInterceptor = new KeyboardInterceptor(ModuleLogger(nameof(KeyboardInterceptor)), nativeMethods, context.Settings.Keyboard); var operation = new KeyboardInterceptorOperation(context, keyboardInterceptor, logger); return(operation); }
private IOperation BuildKeyboardInterceptorOperation() { var keyboardInterceptor = new KeyboardInterceptor(configuration.Settings.Keyboard, new ModuleLogger(logger, nameof(KeyboardInterceptor))); var operation = new KeyboardInterceptorOperation(keyboardInterceptor, logger, nativeMethods); return(operation); }
static void Main() { KeyboardInterceptor.Start(); MouseInterceptor.Start(); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new Form1()); KeyboardInterceptor.Stop(); MouseInterceptor.Stop(); }
protected override void Initialize() { keyboardInterceptor = new KeyboardInterceptor(); keyboardInterceptor.OnKeyAction += OnKeyboardIntercept; #if RELEASE graphics.PreferredBackBufferWidth = GraphicsAdapter.DefaultAdapter.CurrentDisplayMode.Width; graphics.PreferredBackBufferHeight = GraphicsAdapter.DefaultAdapter.CurrentDisplayMode.Height; graphics.ToggleFullScreen(); #endif base.Initialize(); }
public void Start() { key = new KeyboardInterceptor(); key.KeyDown += key_KeyDown; key.KeyUp += key_KeyUp; key.KeyPress += key_KeyPress; key.StartCapturing(); Console.WriteLine("[Hooky] Started Hooky."); Application.Run(); }
public void Start() { _key = new KeyboardInterceptor(); _key.KeyDown += Key_KeyDown; _key.KeyUp += Key_KeyUp; _key.KeyPress += Key_KeyPress; _key.StartCapturing(); _logger.LogInformation("Started."); Application.Run(); }
public WindowsEnhancementApplicationContext() { // Hotkeys initialisieren this.keyboadHook = new KeyboardInterceptor(); this.keyboadHook.KeyDown += keyboadHookOnKeyDown; this.keyboadHook.StartCapturing(); // Services initialisieren this.fileAndImageSaveService = new FileAndImageSaveService(); this.fileCreateService = new FileCreateService(); this.fileAndImageViewService = new FileAndImageViewService(); this.explorerBrowserService = new ExplorerBrowserService(); // TrayIcon etc. initalisieren this.initializeComponents(); // Events hinzufügen Application.ApplicationExit += this.applicationOnApplicationExit; }
public static void SetupKeyboardHook() { _interceptor = new KeyboardInterceptor(); _interceptor.KeyDown += VirtualKeyboardOnKeyDown; _interceptor.StartCapturing(); }
public KeyboardHookClass(ILoger Loger) { this.Loger = Loger; Capturer = new KeyboardInterceptor(); Capturer.KeyDown += Capturer_KeyDown; }
static void SetupKeyboardInterceptor() { KeyboardInterceptor keyboardInterceptor = new KeyboardInterceptor(); keyboardInterceptor.Start(); }