Cool VL Viewer forum
http://sldev.free.fr/forum/

Exit an LSL-script through LUA automation?
http://sldev.free.fr/forum/viewtopic.php?f=6&t=2466
Page 1 of 1

Author:  RossoAms [ 2024-02-25 22:21:14 ]
Post subject:  Exit an LSL-script through LUA automation?

Is there a way to just dismiss a dialogue with buttons with LUA from the automation script?
A (nomod) script gives me 4 possible buttons to take action upon, but there is also a smaller [Ignore] button.
I looked up the channel of the script in the Singularity viewer, then listened to the answers the buttons gave.
All buttons simply sent the word displayed on that button, but the [Ignore] did not send anything, as if it was system-generated and no part of the script.

(I tested if the automation script pressed the other buttons and that worked.)

Author:  Henri Beauchamp [ 2024-02-26 09:31:09 ]
Post subject:  Re: Exit an LSL-script through LUA automation?

The "Ignore" button simply cancels the notification dialog viewer-side: it does not send anything in return to the script which popped up the dialog.

To cancel a notification viewer-side with Lua, you can use the... surprise, surprise... CancelNotification() Lua function, passing it the UUID (notification_id) for the corresponding dialog.

Author:  RossoAms [ 2024-02-26 12:04:53 ]
Post subject:  Re: Exit an LSL-script through LUA automation?

Thank you! I'm just too stupid for this but I enjoy tweaking so much. :D
Henri Beauchamp wrote:
The "Ignore" button simply cancels the notification dialog viewer-side: it does not send anything in return to the script which popped up the dialog.

To cancel a notification viewer-side with Lua, you can use the... surprise, surprise... CancelNotification() Lua function, passing it the UUID (notification_id) for the corresponding dialog.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/