Browse Source

Updated usage part of readme

tags/0.2
Ludwig Frühschütz 3 years ago
parent
commit
b3ba1a0f84
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      README.md

+ 2
- 1
README.md View File

@ -71,7 +71,7 @@ This adds a new listener for a OSC address pattern, only OSC messages with a exi
#define OSC_TYPE_COLOR 1024
#define OSC_TYPE_ALL UINT_MAX //=0xffffffff
```
Add listener from AHK script:
Add a listener from the AHK script:
```
; just for convenience, you also could use the "magic numbers" directly
global oscTypeInt := 2
@ -101,6 +101,7 @@ msghandlerTest1(oscType, data, msgID, hwnd)
}
}
```
Note that you may add many listeners, for any combination of the same/different OSC addresses, datatypes and system message IDs. Also, in AutoHotkey you may add multiple callback functions for the same system message ID or multiple system message IDs to the same callback function. This creates a big flexibility but to keep it less clutterd, such multiple routing paths should be avoided where possible.
#### Remove listener
Of course, listeners also can be removed in a similar way:


Loading…
Cancel
Save