Page 1 of 1

Handling events

Posted: Wed Jul 18, 2007 8:12 am
by mr. dizzle
Is there any way to handle paste events in dialog text boxes, or depending on a condition in MSI to enable certain objects on the dialog?

As a test, I decided to try and write a simple serial key dialog. It has 4 fields for the user to enter in their serial in the format of XXXX-XXXX-XXXX-XXXX, obviously without the -.

The reason I want to know about the paste events is that I want to accept a paste in the first field and update the other fields to save them typing them all in.

Also, what is the correct procedure to append the strings entered in the fields using MSI?

Posted: Thu Jul 19, 2007 7:27 am
by mr. dizzle
Can't be done then, I guess?

Posted: Thu Jul 19, 2007 8:28 am
by MichaelNesmith
You can append strings like this:

Set Variable NEWVAR to $OLDVAR1$-$OLDVAR2$-$OLDVAR3$ etc...

Unfortunately, there are no paste events at this time to do what you wish. Sorry for the inconvenience!