mIRC Home    About    Download    Register    News    Help

Print Thread
#94192 14/08/04 04:23 PM
Joined: Jun 2004
Posts: 87
B
Babel fish
OP Offline
Babel fish
B
Joined: Jun 2004
Posts: 87
ok well i made a dialog and im tryint to use a text filed where when u click on something in that text field, its sets that name to a variable, but, the list i have in the text field is from a txt, which prevents my 1st action, is ther someway around this txt so it will work? please help me!

#94193 14/08/04 05:16 PM
Joined: Dec 2002
Posts: 788
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 788
Are you talking about a "text box" (edit), or a "combo box".

Paste the dialog code if you can.

Eamonn.

#94194 14/08/04 05:35 PM
Joined: Jun 2004
Posts: 87
B
Babel fish
OP Offline
Babel fish
B
Joined: Jun 2004
Posts: 87
dialog newmp3 {
title "Mp3 Manager"
size -1 -1 242 101
option dbu
list 1, 148 13 94 76, size hsbar vsbar
text "Mp3 Name- ", 2, 1 2 29 8
text "", 5, 31 2 116 8
button "Delete", 9, 212 89 18 9
button "Add", 10, 173 89 18 9
button "Play", 8, 29 50 18 11
button "Stop", 11, 46 50 18 11
button "Skip", 12, 84 50 18 11
button "Pause", 13, 102 50 20 11
button "Resume", 14, 63 50 21 11
icon 18, 65 22 23 22, C:\mIRC\skins\mp3.bmp, 0
button "Save Profile", 15, 4 64 37 12
button "Load Profile", 16, 108 64 37 12
text "Remeber Please Put These Songs in the mIRC directory ...mIRC\addons\music and please put these song in you Fserve", 17, 9 78 133 20, center
text "Length-", 7, 3 10 22 8
text "Song Length", 19, 29 11 40 8
edit "", 6, 148 4 93 10, autovs
menu "File", 3
item "Quit", 4, 3
}
thats the dialog
in id 1 thats the text box and id 6 is the edit box above it to add stuff to the list, but yeah the problem comes cause im loading off a txt so i cant add to the txt, and and i click an edit box so it sets a variable!

#94195 14/08/04 05:47 PM
Joined: Dec 2002
Posts: 788
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 788
This example might help;

On *:Dialog:newmp3:init:*:{
did -a $dname 1 Example Item 1
did -a $dname 1 Example Item 2
did -a $dname 1 Example Item 3
did -a $dname 1 Example Item 4
did -a $dname 1 Example Item 5
}

The above adds data into the "LIST" box (id 1)

On *:Dialog:newmp3:sclick:1:{
echo -a You Selected: $did(1).seltext Which is on line; $did(1).sel
}

The above echos the selected text and its line number when selected.

You can change it to; /set %var $did(1).seltext or something alike.

Eamonn.


Link Copied to Clipboard