I’ve never used Xojo script before but now I have an idea where I’d like to implement it if it can do what I’d like it to do.
What objects inside your application are accessible to XojoScript? I’m writing some code that will allow the user to connect to an external device. When certain data comes back from that device, I want specific actions taken. So here’s my specific example, but I want it to be generalized so that I can handle similar cases:
The customer in question has a VoIP phone system. We will connect to that system and register with that system to send us data on any incoming calls. When a call comes in, I want to display that CallerID and Number but I also want to open a window that will allow them to answer the call.
Now that is just for this specific example. I’ve got it figured out how to flexibly extract the caller ID info from the incoming data sent by the system using a RegEx. It’s the window opening that I’m wanting to be flexible. In this case I want a specific window. I could hard code that but it would remove flexibility. In another case for another customer that is not VoIP or phone call related, I may want to open a different window. That’s why I’d like to be able to have some script that can be added at the specific user site that handles what they need based on the data received. Is this possible?
In my reading of the LR regarding XojoScript, I don’t think it is. There appears to be a single context object that you can pass that is supposed to be available to the script, but I don’t always know what that object is going to be.
Thoughts?