コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RemoteWindow"/> class.
 /// </summary>
 /// <param name="memorySharp">The reference of the <see cref="Library.MemorySharp.MemorySharp"/> object.</param>
 /// <param name="handle">The handle of a window.</param>
 internal RemoteWindow(MemorySharp memorySharp, IntPtr handle)
 {
     // Save the parameters
     MemorySharp = memorySharp;
     Handle      = handle;
     // Create the tools
     Keyboard = new MessageKeyboard(this);
     Mouse    = new SendInputMouse(this);
 }
コード例 #2
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="RemoteWindow" /> class.
 /// </summary>
 /// <param name="processPlus">The reference of the <see cref="IProcess" /> object.</param>
 /// <param name="handle">The handle of a window.</param>
 public RemoteWindow(IProcess processPlus, IntPtr handle)
 {
     // Save the parameters
     ProcessPlus = processPlus;
     Handle      = handle;
     // Create the tools
     Keyboard = new MessageKeyboard(this);
     Mouse    = new SendInputMouse(this);
 }