Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/evilc/microtimer

A DLL Wrapper for Ken Loveday's MicroLibrary, with AutoHotkey interop demo
https://github.com/evilc/microtimer

Last synced: 13 days ago
JSON representation

A DLL Wrapper for Ken Loveday's MicroLibrary, with AutoHotkey interop demo

Awesome Lists containing this project

README

        

# MicroTimer
A DLL Wrapper for [Ken Loveday's MicroLibrary](https://www.codeproject.com/Articles/98346/Microsecond-and-Millisecond-NET-Timer), with AutoHotkey interop demo

## Usage in AHK
Instantiate the MicroTimer class from the DLL
```
asm := CLR_LoadLibrary("MicroTimer\MicroTimer.dll")
; Use CLR to instantiate a class from within the DLL
mt := asm.CreateInstance("MicroTimer")
```

Instantiate a timer class instance using `Create(,

```
MyTimer := mt.Create(Func("MyFunc"), 1)
```

Start / Stop the timer with `Start`, `Stop` or `SetState` (Pass SetState 0 or 1)
```
MyTimer.Start()
MyTimer.Stop()
MyTimer.SetState()
```

That's it!
See the demo script for an example.