All 4 unsupported Leap DLL’s. .Net 4.5 x86/4.5 x64 – 4.5.1×86/4.5.1×64 – Version -1.0.9.8391 – C#

Until leap is supporting dll’s past 4.0  I’ll be putting out rebuilds of the SDK.

All DLL’s should be located here now.

Share on Facebook

Updated Console Leap Mouse with Leap 4.5.1 DLL C#

This is an updated version of the codeproject project by Meshack Musundi found here : (ConsoleLeapMouse) http://www.codeproject.com/Articles/550336/Leap-Motion-Move-Cursor

Updated version of code with my .net 4.5.1dll’s

Share on Facebook

New DLL Leap 4.5.1 for 1.0.9.8391

https://onedrive.live.com/redir?resid=1C0A3085568F1B39%21142

Point to this instead of 3.5  or  4.0

Enjoy!

Share on Facebook

How to delay an action or keep on a timed loop C#

Key phrases: Repeating code on delay, pause without thread sleep, delaying code

c#

Usage: var dir = Directory.GetCurrentDirectory();

var file = SoundByName(sound);

var actual = Path.Combine(dir, file);

SoundPlayer player = new SoundPlayer(actual);

player.Play();

if (milliseconds > 0) { DelayFactory.DelayAction(milliseconds, () => player.Stop()); }

DelayFactory.DelayActionRepeat(milliseconds, () => player.Stop());

Code:
namespace ALineOfCode.Community.AugmentedLibraries.Common.Factory
{
public static class DelayFactory
{
public static void DelayAction(int millisecond, Action action)
{
var timer = new DispatcherTimer();
timer.Tick += delegate
{
DispatcherHelper.CheckBeginInvokeOnUI(async () =>
{
action.Invoke();
timer.Stop();
});
};
timer.Interval = TimeSpan.FromMilliseconds(millisecond);
timer.Start();
}

public static void DelayActionRepeat(int millisecond, Action action)
{
var timer = new DispatcherTimer();
timer.Tick += delegate
{
DispatcherHelper.CheckBeginInvokeOnUI(async () =>
{
action.Invoke();
});
};
timer.Interval = TimeSpan.FromMilliseconds(millisecond);
timer.Start();
}
}
}

Share on Facebook