Can't send messages #9

Closed
opened 2022-06-01 14:48:05 +00:00 by FoxDanger · 1 comment

If I create a listener like this on my software:

DllCall("OSC2AHK.dll\addListener", AStr, "/testFunction", UInt, 0x3000, UInt, oscTypeString)
OnMessage(0x3000, "_testFunction")

And then I send the dllcall to send this message, it works. My software listen the osc command and execute the testFunction

DllCall("OSC2AHK.dll\sendOscMessageString", AStr, "127.0.0.1", UInt, 7002, AStr, "/testFunction", AStr, "THIS IS A TEST")

BUT, my software can listen the osc shout, but the data arrives as 0 instead the string that I'm sending.

If I create a listener like this on my software: ``` DllCall("OSC2AHK.dll\addListener", AStr, "/testFunction", UInt, 0x3000, UInt, oscTypeString) OnMessage(0x3000, "_testFunction") ``` And then I send the dllcall to send this message, it works. My software listen the osc command and execute the testFunction ``` DllCall("OSC2AHK.dll\sendOscMessageString", AStr, "127.0.0.1", UInt, 7002, AStr, "/testFunction", AStr, "THIS IS A TEST") ``` BUT, my software can listen the osc shout, but the data arrives as 0 instead the string that I'm sending.
Owner
Answered on the forum: [https://www.autohotkey.com/boards/viewtopic.php?p=465989#p465989](https://www.autohotkey.com/boards/viewtopic.php?p=465989#p465989) Basically read this: https://files.eleton-audio.de/gitea/Ludwig/OSC2AHK#user-content-get-string-data
Sign in to join this conversation.
No description provided.