mIRC Home    About    Download    Register    News    Help

Print Thread
#117822 19/04/05 05:16 PM
Joined: Apr 2005
Posts: 53
A
aDevil Offline OP
Babel fish
OP Offline
Babel fish
A
Joined: Apr 2005
Posts: 53
alias @notice /dialog -m @notice @notice
dialog @notice {
title "Notice"
size -1 -1 130 410
list 1, 10 10 100 40
list 2, 10 45 100 65
button "Ok", 3, 20 385 40 20, ok
}


on *:dialog:@notice:init:0:{
/set %i 1
%veg = $query(0) + 1
while (%i != %veg) {
did -a $dname 1 $query(%i)
inc %i
}
/unset %i
/unset %veg
did -a $dname 2 @notice
did -a $dname 2 query
did -a $dname 2 newpvt
}


on *:dialog:@notice:sclick:1: {
/echo $did($dname,1).text
did -r $dname 2
did -a $dname 2 @notice
did -a $dname 2 query
did -a $dname 2 newpvt
}


Why doesn't want to echo text in dialog? frown

Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Code:
alias @notice /dialog -m @notice @notice
dialog @notice {
  title "Notice"
  size -1 -1 130 410
  list 1, 10 10 100 40
  list 2, 10 45 100 65
  button "Ok", 3, 20 385 40 20, ok
}


on *:dialog:@notice:init:0:{
  /set %i 1
  %veg = $query(0) + 1
  while (%i != %veg) { 
    did -a $dname 1 $query(%i)
    inc %i
  }
  /unset %i
  /unset %veg
  did -a $dname 2 @notice
  did -a $dname 2 query
  did -a $dname 2 newpvt
}


on *:dialog:@notice:sclick:1: {
  [color:red]echo $did($dname,$did,$did($dname,$did).sel)[/color]
  did -r $dname 2 
  did -a $dname 2 @notice
  did -a $dname 2 query
  did -a $dname 2 newpvt
}

Joined: Apr 2005
Posts: 53
A
aDevil Offline OP
Babel fish
OP Offline
Babel fish
A
Joined: Apr 2005
Posts: 53
Thanks a lot man:)

Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
You're welcome. smile

Joined: Apr 2005
Posts: 53
A
aDevil Offline OP
Babel fish
OP Offline
Babel fish
A
Joined: Apr 2005
Posts: 53
Maybe you know, how I can bold a text in the list? smile

Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
You wont be able to do that using mIRC. You'd have to use 3rd party DLL assuming a DLL has that sort of capabilities. I'm not too familiar with MDX.dll but it might be able to be done with that.

Joined: Apr 2005
Posts: 53
A
aDevil Offline OP
Babel fish
OP Offline
Babel fish
A
Joined: Apr 2005
Posts: 53
Ah thanks smile then I ignore bolding smile)


Link Copied to Clipboard