Or, do like I mentioned laugh

In dialog setup:

button "I'm hidden",100,5 5 5 5,default

In init:

did -h $dname 100

In sclick:

if ($did == 100) {
commands
}


What happens is that any time you hit ENTER, button 100 will be "clicked". Since it is hidden, no one will know it's there except you and anyone looking at the script. By not using "ok" when setting up the button, it will not close the dialog.

Just as a note, if you need to have multiple places to use "enter" and do different things, you can set up more buttons like this and then have your script change the default button based on where you are typing (for example, when using multiple edit boxes).

If anyone needs an example of how to do that, just holler. laugh


Invision Support
#Invision on irc.irchighway.net