Cool VL Viewer forum

View unanswered posts | View active topics It is currently 2024-04-27 14:44:11



Reply to topic  [ 3 posts ] 
Exit an LSL-script through LUA automation? 
Author Message

Joined: 2023-10-03 14:07:30
Posts: 43
Reply with quote
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.)


2024-02-25 22:21:14
Profile

Joined: 2009-03-17 18:42:51
Posts: 5554
Reply with quote
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.


2024-02-26 09:31:09
Profile WWW

Joined: 2023-10-03 14:07:30
Posts: 43
Reply with quote
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.


2024-02-26 12:04:53
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users and 14 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software.