Compare commits

...
This repository has been archived on 2023-05-28. You can view files and clone it, but cannot push or open issues/pull-requests.

8 Commits

Author SHA1 Message Date
paring 85e1a67bce
chore: update skyhook 2023-05-28 19:09:40 +09:00
paring df595443a5
chore: update skyhook linux 2023-05-28 18:58:06 +09:00
paring fdbcf0d031
chore: update skyhook win 2023-05-28 18:36:46 +09:00
paring c44be95ca0
feat: integrate hook_is_running 2023-05-28 17:33:52 +09:00
paring 8f96fc8bf0
chore: update skyhook linux 2023-05-26 23:59:50 +09:00
paring 99817cd203
chore: update skyhook 2023-04-03 17:59:56 +09:00
paring c11f32ae68
chore: update macos binary 2023-04-03 17:52:56 +09:00
paring e88599102c
fix: replace skyhook bundle 2023-04-03 15:33:15 +09:00
6 changed files with 10 additions and 5 deletions

View File

@ -31,7 +31,7 @@ namespace SkyHook
/// <summary>
/// Whether the hook is active now.
/// </summary>
public bool isHookActive;
public bool isHookActive => SkyHookNative.HookIsRunning();
/// <summary>
/// Your callback for each key updated events.
@ -96,7 +96,6 @@ namespace SkyHook
exception = new SkyHookException(result);
}
isHookActive = true;
started = true;
_mre.WaitOne();
@ -113,6 +112,7 @@ namespace SkyHook
while (!started && exception == null)
{
Thread.Yield();
}
if (exception != null)
@ -134,8 +134,6 @@ namespace SkyHook
{
_mre.Set();
}
isHookActive = false;
}
/// <summary>

View File

@ -29,5 +29,12 @@ namespace SkyHook
/// <returns><c>null</c> if no error, or an error message.</returns>
[DllImport(Lib, EntryPoint = "stop_hook", CallingConvention = CallingConvention.Cdecl)]
public static extern string StopHook();
/// <summary>
/// The native version of <see cref="SkyHookManager.StopHook"/> method handled by <see cref="SkyHookManager"/>.
/// </summary>
/// <returns><c>null</c> if no error, or an error message.</returns>
[DllImport(Lib, EntryPoint = "hook_is_running", CallingConvention = CallingConvention.Cdecl)]
public static extern bool HookIsRunning();
}
}

Binary file not shown.

BIN
plugins/skyhook.bundle Normal file → Executable file

Binary file not shown.

Binary file not shown.

Binary file not shown.