mIRC Home    About    Download    Register    News    Help

Print Thread
#158500 05/09/06 11:13 AM
Joined: Oct 2005
Posts: 827
P
pouncer Offline OP
Hoopy frood
OP Offline
Hoopy frood
P
Joined: Oct 2005
Posts: 827
Code:
on *:DIALOG:lister:sclick:*: {
  var %D = $Did

  if (%D == 5) {
    var %Confirm = $Input(Are you sure you would like to remove it, y, Removal)

    if (%Confirm) {
      echo -a yes

    }
    else echo -a no confirm
  }
}


when i click yes on the input it keeps echoing 'no confirm'

#158501 05/09/06 11:25 AM
Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
You sure? :\

#158502 05/09/06 11:36 AM
Joined: Oct 2005
Posts: 827
P
pouncer Offline OP
Hoopy frood
OP Offline
Hoopy frood
P
Joined: Oct 2005
Posts: 827
yep keeps saying no confirm

i think its screwed on dialogs

Last edited by pouncer; 05/09/06 11:37 AM.
#158503 05/09/06 05:13 PM
Joined: Dec 2002
Posts: 1,245
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
on *:DIALOG:lister:sclick:*: {

you have if the id == 5 do this else do that
so if you click anywhere but id 5, it will do what you told it to do

#158504 05/09/06 05:28 PM
Joined: Dec 2002
Posts: 1,245
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
test this
Code:
dialog lister {
  title "Test"
  size -1 -1 100 100
  option dbu
  list 100, 5 5 90 70, multsel
  button "Click", 5, 25 80 50 10
}
on *:dialog:lister:init:0:{
  noop $findfile($mircdir,*.ini,0,did -a lister 100 $nopath($1-))
}
on *:DIALOG:lister:sclick:5: {
  var %Confirm = $Input(Are you sure you would like to remove it, y, Removal)
  if (%Confirm) {
    echo -a yes
  }
  else echo -a no confirm
}

#158505 05/09/06 06:12 PM
Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
He doesn't. He has if (%Confirm) do this else do that.

#158506 05/09/06 06:24 PM
Joined: Dec 2002
Posts: 1,245
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
you're right
but if you look at how its done with the wild card, I think he is doing that for other IDs in the same script

but not all in one :
on *:dialog:lister:sclick:*:{
if $did == 5 {stuff }
if $did == 6 { stuff }
}

looks more like he is doing it

on *:dialog:lister:sclick:*:{
if $did == 5 {stuff }
}
on *:dialog:lister:sclick:*:{
if $did == 6 { stuff }
}


Link Copied to Clipboard