Skip to content
MSN

Dialog acting VERY weird..

A TG007 community discussion started by Josh`.

Discussion 4 posts
Page 1 of 1
Open
Topic #2030 · 4 published posts · 577 views

Okay.. So I have this code:

 

on *:DIALOG:awaysettings:*:0:{
 if ($group(#Away.ChangeNick) == on) { did -c awaysettings 7 }
 if ($group(#Away.ShowAwayMsg) == on) { did -c awaysettings 8 }
 if ($group(#Away.Pager) == on) { did -c awaysettings 9 }

 did -a $dname 6 %AwayMsgOutput
 did -a $dname 11 %PagerSound
 did -a $dname 4 %AwayNick
 did -a $dname 15 %AwayMsg
}

 

We're looking at the did -a's..

 

With this code, it's setting my editboxes to whatever my variables say. let me explain more in detail:

 

I'm making a dialog where you can change your msgs for away stuff. When I change them, I'm keeping them stored in a %Variable.. So when the %Variable gets set and I don't like what's in the variable I open up my dialog to change them. So when I click the editbox and start typing, everything is working out great like it should. Now I'm done typing and I move my mouse to the button which will set this %Variable to what I typed in the editbox and when the mouse moves over the dialog, it goes back to what the original %Variable was.

 

I just recently (30 seconds ago) changed the did -ra's to did -a and now when I have the did-a it keeps putting the original %Variable in the editbox over and over and over..

 

Anyone know why it's doing this? I'm about to go insane.. 2 hours working on it trying to see what's wrong with it and I've gotten no where.

 

Thanks in advance!

~Josh

err0r: 666 + 1337 = 2003 backwards is 3002 which is how many people ozzy has banned from tg
err0r: spooky

on *:DIALOG:awaysettings:*:0:{

 

this line should be

 

on *:DIALOG:awaysettings:init:0:{

 

if you have *, it means all events in that dialog, providing it had relations to ID 0. Only thing with relations to ID 0 is close, mouse xy and init. so you need specify which one you want.

 

 

Thank you very much Gate Keeper! smile.gif Been a while since I've actually coded a dialog (a good year almost) Just had to have a slight memory refresher tongue.gif

 

Thanks again! smile.gif

err0r: 666 + 1337 = 2003 backwards is 3002 which is how many people ozzy has banned from tg
err0r: spooky

no worries, always glade to help.