mIRC Home    About    Download    Register    News    Help

Print Thread
A Simpel Dialog? #2996 22/12/02 10:53 AM
Joined: Dec 2002
Posts: 477
Deep3D Offline OP
Fjord artisan
OP Offline
Fjord artisan
Joined: Dec 2002
Posts: 477
Hi, am using dstudio to make a simpel dialog. But i have one problem. Is i type my nick in the "nick name area" how to get it
to do a /nick "the nick i typed"? and so on..

Here is the code:

dialog config {
title "The Reactor Script - Configure"
size -1 -1 160 75
option dbu
edit "", 1, 35 2 35 10, limit 9
text "Nick Name:", 2, 4 3 28 8
text "Alternative:", 3, 4 14 30 8
edit "", 4, 35 13 35 10, limit 9
text "Away Nick:", 5, 4 25 28 8
edit "", 6, 35 24 35 10, limit 9
text "Real Name:", 7, 4 36 28 8
edit "", 8, 35 35 35 10, limit 9
text "User ID:", 9, 4 47 22 8
edit "", 10, 35 46 35 10, limit 9
box "Undernet CService", 11, 75 4 78 31
text "Username:", 12, 79 12 28 8
text "Password:", 13, 79 23 25 8
edit "", 14, 108 11 41 10
edit "", 15, 108 22 41 10, pass
check "Use CService Login?", 16, 76 36 61 10
button "OK, done!", 17, 31 61 42 10, flat ok
check "CService Host?", 19, 76 45 50 10
button "Sorry..", 20, 89 61 42 10, flat cancel
}

Re: A Simpel Dialog? #2997 22/12/02 01:09 PM
Joined: Dec 2002
Posts: 2,985
Watchdog Offline
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 2,985
Well ya need a button somewhere so I'll use your "okay" button in this example:

Code:
on *:dialog:config:*:*: {
  if ($devent == sclick) {
    if ($did == 17) {
      nick $did(1).text
    }
  }
}

That would change your nick after filling out the Nick edit box and pressing Okay button.

Re: A Simpel Dialog? #2998 22/12/02 01:41 PM
Joined: Dec 2002
Posts: 477
Deep3D Offline OP
Fjord artisan
OP Offline
Fjord artisan
Joined: Dec 2002
Posts: 477
humm, ok.. i dident get it to work.. :tongue: