I've been trying to see if there is a way to send a string through w/lParam to another script using Post/SendMessage and OnMessage. The manual page for PostMessage states that "a string may be sent via wParam or lParam by specifying the address of a variable" but doesn't go into much detail about retrieving the string. If I send a string either by directly typing it in the command or sending a variable by reference, the receiving script just sees a number 8 or 9 digits long. Is this supposed to be a memory address? If so, how do I retrieve the string at that location?
I know the manual page for OnMessage has an example of sending a string utilizing WM_COPYDATA or some such but it feels kind of messy to me. Is this the only way to send a string from one script to another? Why can't I just send a string simply through wParam of PostMessage like the manual page outlines?