ButterManner Posted October 2, 2016 Posted October 2, 2016 Hi,Is it possible to simulate a user event(using an script) such as1. Touching an prim2. Selecting an option from the menu that appears.The script in the prim is non vieweable though. Thanks in advance
Ruthven Ravenhurst Posted October 2, 2016 Posted October 2, 2016 I don't really understand what you're asking for. Perhaps with more info we can point you in the right direction
Rolig Loon Posted October 2, 2016 Posted October 2, 2016 If I understand the question correctly, the answer is No. If you have a scripted object that expects you to touch it to get a response, you have to touch it. If it's going to generate a dialog menu for you to pick options from, you have to actually get the dialog menu on your screen and pick the option. If you scripted the object yourself, then you could of course build in alternative paths. For example, add a listen event that you lets you give commands in chat that have the same effect as touching the object or making a menu selection. If you're trying to break into someone else's script and hijack its functions, though, no. The only option is to remove or deactivate the script and replace it with one of your own.
Wulfie Reanimator Posted October 6, 2016 Posted October 6, 2016 Aren't dialogs just predetermined messages shown via UI, and sent to a "hidden" channel by the viewer? I say "hidden" because the channel is actually communicated to the viewer and it can be snooped. (Not via scripts though.) If you receive a script dialog and you know the channel, you don't have to click the buttons. You can manually type the message. Although, in the end, this does not help you script something that would call a dialog from another script and detect what messages can be sent.
Rolig Loon Posted October 6, 2016 Posted October 6, 2016 Unless the scripter is a bit of an amateur, "snooping" the channel that the dialog is using will be a big challenge. Not impossible, but hardly worth the effort. I generally assign a new random channel every time I open a dialog, or at least for every new user. Even using only the range of negative channel numbers available, that still means you'd have to figure out which one of 2,147,483,648 channels I'm using at the moment. So yes, theoretically, if you could figure out which channel was being used, you could spoof it. You are right that "in the end, this does not help you script something that would call a dialog from another script and detect what messages can be sent."
ButterManner Posted October 8, 2016 Author Posted October 8, 2016 Thanks all for the replies. I wouldn't go ahead with this as it seems a lot of work with very little scope for success
Rolig Loon Posted October 8, 2016 Posted October 8, 2016 I suppose that depends on how you measure success. As I suggested, your option now is to write your own script to replace the one that's in the object. If it's important enough to you, this might be a worthy challenge. Think what a success you'd feel if you did it.
Recommended Posts
Please take a moment to consider if this thread is worth bumping.
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now