mIRC Home    About    Download    Register    News    Help

Print Thread
#80720 26/04/04 02:09 PM
Joined: Apr 2004
Posts: 3
B
BenjO Offline OP
Self-satisified door
OP Offline
Self-satisified door
B
Joined: Apr 2004
Posts: 3
I have set up a very easy box here, but i cant figure out all the triggers by just looking in the help file..

Here's the code:

Title mIRC Internet
option pixel
size 150 150 300 315
option pixel
text "Enter Webpage to open:",1,10 10 150 80
edit "",2,10 25 200 20,autohs
text "Or select a Webpage from the list below:",3,10 55 200 80
list 4,10 70 200 220
button "Open",5,215 23 80 25,disable
button "Add",6,215 85 80 25
button "Edit",7,215 115 80 25,disable
button "Delete",8,215 145 80 25,disable
button "Ok",9,215 255 80 25,ok
button "Open",11,215 225 80 25,disable
check "Pop up on Connect",12,10 290 110 20,
scroll "",13,110 80 100 185,bottom,hide

Could someone that see what i'm trying to do here please help me with setting all the triggers?


-BenjO
#80721 26/04/04 04:40 PM
Joined: Jan 2004
Posts: 24
W
Ameglian cow
Offline
Ameglian cow
W
Joined: Jan 2004
Posts: 24
You're trying to make a website runner on a dialog, right?
Well, first tell me what you actually want it to do (how do you want it to run, etc..)
and then I'll see how I can help you.

#80722 26/04/04 05:08 PM
Joined: Apr 2004
Posts: 3
B
BenjO Offline OP
Self-satisified door
OP Offline
Self-satisified door
B
Joined: Apr 2004
Posts: 3
ye, i'm trying to make a website runner on a dialog. The thing i'm troubling with is the list thing.. when you push the Add button, I want a dialog to pop up, and i can add a text there that will be added to the list (nr.4). I've got no problem with making the dialog appear when you push the button, but how do i add text to the list from there?
and, when you push the delete button(nr.8) , I want it to delete the line choosen from the list. and how can i get the dialog to pop-up on connect when you've marked the check Pop Up On Connect(nr.12), and get it to remember that?
and how does the scrollbar work?


-BenjO
#80723 26/04/04 10:45 PM
Joined: Mar 2003
Posts: 612
B
Fjord artisan
Offline
Fjord artisan
B
Joined: Mar 2003
Posts: 612
you need to
on *:dialog:newdialog:sclick:buttonid: /did -a olddialog listid linenumber
to add the text into the list.
then
on *:dialog:dialogname:sclick:8:did -d name id $did(listid).sel
to delete the selected line from the listbox
finally i would suggest
on *:dialog:dialogname:sclick:12:set %popconnect ON

followed by an on connect if %popconnect == ON /dialog etc.
sorry for the vague reply but its bedtime, ninite.
wink


billythekid
#80724 27/04/04 05:16 PM
Joined: Apr 2004
Posts: 3
B
BenjO Offline OP
Self-satisified door
OP Offline
Self-satisified door
B
Joined: Apr 2004
Posts: 3
tnx! all works.. grin
but how do i make the check box still have the green thing in it the next time i opens it? and how do i make text that i've added to the list be there the next time I opens the dialog?


-BenjO

Link Copied to Clipboard