I was wondering if there was a way to use more keys than available with #pb_shortcut_x constants with AddKeyboardShortcut cross-platform?
I noticed that ShortcutGadget returns vk constants on Windows, so could I use the same constants cross-platform, or would I have to use separate values for every OS?
I was specifically looking for keys like period, slash, comma, apostrophe, semicolon, backslash, etc.
I'm also wondering what's the proper way to handle sending/receiving strings that are bigger than the maximum length over tcp?
The code I have right now uses a simple send network string for sending, and the following for receiving:
Code: Select all
#bufsize=65536
Protected *in=AllocateMemory(#bufsize), in$, c=ClientEvent()
Protected r=ReceiveNetworkData(c, *in, #bufsize)
Select r
Case -1
Break
Case 0
Delay(1000)
Default in$+PeekS(*in, r, #PB_UTF8|#PB_ByteLength)
EndSelect
ForEver
The receiving code is threaded, but I get the same result even when it's not.
I'd appreciate any suggestions for fixing this.
Thanks.