Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Close a dialog from script?

Waffle Projects
Registered User
Join date: 9 Aug 2006
Posts: 38
12-19-2007 11:20
I have a multimodal interface where I need to get a reply from the user either via a dialog (created with llDialog()) or another selection mechanism. If they use the "other" mechanism, I'd like to make the dialog go away without the user having to click "Ignore". Can this be done?
Meade Paravane
Hedgehog
Join date: 21 Nov 2006
Posts: 4,845
12-19-2007 11:27
From: Waffle Projects
Can this be done?

Nope. Sorry. :(
_____________________
Tired of shouting clubs and lucky chairs? Vote for llParcelSay!!!
- Go here: http://jira.secondlife.com/browse/SVC-1224
- If you see "if you were logged in.." on the left, click it and log in
- Click the "Vote for it" link on the left
Mrc Homewood
Mentor of Randomness
Join date: 24 Feb 2007
Posts: 779
12-19-2007 14:12
i have seen some diolog boxes from other peaple as in one you send to peaple within range that will allow you to exit it without clicking ignore not sure how to do it tho
Meade Paravane
Hedgehog
Join date: 21 Nov 2006
Posts: 4,845
12-19-2007 14:19
From http://wiki.secondlife.com/wiki/LlDialog

From: someone
...- There is no way by script to kill a dialog box.
- There is no way for the script to detect if the user clicked the small "ignore" button (no chat is generated as a result of pressing this button).
- There is no way to distinguish the input from a dialog box and regular chat made by the same user. ...
_____________________
Tired of shouting clubs and lucky chairs? Vote for llParcelSay!!!
- Go here: http://jira.secondlife.com/browse/SVC-1224
- If you see "if you were logged in.." on the left, click it and log in
- Click the "Vote for it" link on the left
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
12-19-2007 21:30
As Meade pointed out, no way to force it closed, but you can add your own cancel/diregard button which will be bigger than the ignore button and thus more likely to be used (also good for remenu systems where each choice pops a new dialog)
_____________________
|
| . "Cat-Like Typing Detected"
| . This post may contain errors in logic, spelling, and
| . grammar known to the SL populace to cause confusion
|
| - Please Use PHP tags when posting scripts/code, Thanks.
| - Can't See PHP or URL Tags Correctly? Check Out This Link...
| -
Stephen Zenith
Registered User
Join date: 15 May 2006
Posts: 1,029
12-20-2007 03:05
From: Void Singer
As Meade pointed out, no way to force it closed, but you can add your own cancel/diregard button which will be bigger than the ignore button and thus more likely to be used (also good for remenu systems where each choice pops a new dialog)


Also, if you only open a listener when somebody opens a dialog, having a Cancel button will let you stop listening or decrease the active listeners count without having to wait for a timeout.
_____________________
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
12-20-2007 06:20
From: Stephen Zenith
Also, if you only open a listener when somebody opens a dialog, having a Cancel button will let you stop listening or decrease the active listeners count without having to wait for a timeout.

of course then you need to track listen integers and that's a pain too... I tend towards the 45sec timeout from the last touch.... but this only works for items that aren't getting heavy constant traffic
_____________________
|
| . "Cat-Like Typing Detected"
| . This post may contain errors in logic, spelling, and
| . grammar known to the SL populace to cause confusion
|
| - Please Use PHP tags when posting scripts/code, Thanks.
| - Can't See PHP or URL Tags Correctly? Check Out This Link...
| -