mIRC Home    About    Download    Register    News    Help

Print Thread
#92716 04/08/04 02:28 AM
Joined: Jun 2004
Posts: 87
B
Babel fish
OP Offline
Babel fish
B
Joined: Jun 2004
Posts: 87
ok so i got this
dialog FileServer {
title "File Server"
size -1 -1 160 120
option dbu
tab "File Server", 1, -2 -2 159 119
text "Trigger", 2, 21 20 18 7, tab 1
button "Accept", 3, 30 102 37 12, tab 1
button "Reset", 4, 79 102 37 12, tab 1
text "Fserve Directory", 5, 3 33 43 8, tab 1
text "Welcome File(Not Required)", 6, 0 49 67 8, tab 1
edit "!", 8, 69 19 70 10, tab 1
edit "", 9, 69 33 69 10, tab 1
edit "", 10, 69 48 70 10, tab 1
}
and got it running with this
/f4 /dialog -m FileServer FileServer
now i need to configure the dialog so that each text imput becomes a variable and and accept will save the variable and the reset will clear it
plz just finish this and ill be happy!

#92717 04/08/04 02:40 AM
Joined: Jul 2004
Posts: 169
S
Vogon poet
Offline
Vogon poet
S
Joined: Jul 2004
Posts: 169
dialog FileServer {
title "File Server"
size -1 -1 160 120
option dbu
tab "File Server", 1, -2 -2 159 119
text "Trigger", 2, 21 20 18 7, tab 1
button "Accept", 3, 30 102 37 12,ok, tab 1
button "Reset", 4, 79 102 37 12, tab 1
text "Fserve Directory", 5, 3 33 43 8, tab 1
text "Welcome File(Not Required)", 6, 0 49 67 8, tab 1
edit %input1, 8, 69 19 70 10, tab 1
edit %input2, 9, 69 33 69 10, tab 1
edit %input3, 10, 69 48 70 10, tab 1
}

if ($did == 3) {
%input1 = $did(8)
%input2 = $did(9)
%input3 = $did(10)
}

if ($did == 4) {
did -r fileserver 8
did -r fileserver 9
did -r fileserver 10
}

%input1 %input2 and %input3 are editboxes

ID 3 is ACCEPT button
ID 4 is RESET button

add: for some nice reason this dialog doesnt work at me lol and it should...

#92718 04/08/04 03:20 AM
Joined: Jun 2004
Posts: 87
B
Babel fish
OP Offline
Babel fish
B
Joined: Jun 2004
Posts: 87
wats the add for accept or reset??

#92719 04/08/04 03:30 AM
Joined: Jun 2004
Posts: 87
B
Babel fish
OP Offline
Babel fish
B
Joined: Jun 2004
Posts: 87
nevermind got it


Link Copied to Clipboard