feat: switching slides
This commit is contained in:
parent
0ebb7f6459
commit
0705fe3adc
3 changed files with 42 additions and 0 deletions
14
Win32Api.cs
Normal file
14
Win32Api.cs
Normal file
|
@ -0,0 +1,14 @@
|
|||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace SwitchSlidePresenter;
|
||||
|
||||
public static class Win32Api {
|
||||
public const UInt32 WM_KEYDOWN = 0x0100;
|
||||
public const int VK_NEXT = 0x22;
|
||||
public const int VK_PRIOR = 0x21;
|
||||
|
||||
[DllImport("user32.dll")]
|
||||
public static extern bool PostMessage(IntPtr hWnd, UInt32 Msg, int wParam, int lParam);
|
||||
[DllImport("user32.dll")]
|
||||
public static extern IntPtr GetForegroundWindow();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue