Browse Source

Readme update

tags/1.0 1.0
Ludwig Frühschütz 2 years ago
parent
commit
018c9d90b3
1 changed files with 4 additions and 5 deletions
  1. +4
    -5
      README.md

+ 4
- 5
README.md View File

@ -2,10 +2,6 @@
This is a DLL extension for [AutoHotkey](https://www.autohotkey.com/) that enables support for OSC (Open Sound Control).
## Work in progress
While most functions should already work as intended, there may still be some bugs. If you encounter some possibly wrong behaviour, please let us know!
* OSC address wildcards are supported now but probably need some testing
## Table of contents
- [OSC2AHK](#osc2ahk)
@ -167,11 +163,12 @@ msghandlerString(oscType, data, msgID, hwnd)
```
### Send functions
The DLL also can be used to transmit OSC messages from AutoHotkey by using the following functions:
The DLL also can be used to transmit OSC messages from AutoHotkey by using the following functions. Usually there is only one argument (payload) per message, but the functions ending in "...2" allow the sending of two arguments in one message. Only two arguments of the same type are supported at the moment.
#### Send integer message
```cpp
void sendOscMessageInt(char* ip, unsigned int port, char* address, int payload);
void sendOscMessageInt2(char* ip, unsigned int port, char* address, int payload1, int payload2);
```
Example call from AHK:
```
@ -185,6 +182,7 @@ DllCall("OSC2AHK.dll\sendOscMessageInt", AStr, ip, UInt, port, AStr, addr, Int,
#### Send float message
```cpp
void sendOscMessageFloat(char* ip, unsigned int port, char* address, float payload);
void sendOscMessageFloat2(char* ip, unsigned int port, char* address, float payload1, float payload2);
```
Example call from AHK:
```
@ -198,6 +196,7 @@ DllCall("OSC2AHK.dll\sendOscMessageFloat", AStr, ip, UInt, port, AStr, addr, Flo
#### Send string message
```cpp
void sendOscMessageString(char* ip, unsigned int port, char* address, char* payload);
void sendOscMessageString2(char* ip, unsigned int port, char* address, char* payload1, char* payload2);
```
Example call from AHK:
```


Loading…
Cancel
Save