Top

To Do List - Dialog


mIRC Code
+ 0 likes
Please Register to submit score.
Bookmark and Share
Average Score  4.0 (of 3 scores)
Date Added  May 31, 2008
Last Updated  Jun 05, 2008
Tags  dialog  do  list  to 

Introduction

This is just a simple To do list, i felt like scripting something because i was getting bored, and i like to wrote dialogs, so here it is!
Instructions:
Add Item - Type in one item that you need to do and click "OK"
Del Item - Select finished or unwanted item and click "Del Item"
Enjoy!

Grab the Code

dialog tdl {
  title "To Do List"
  size -1 -1 200 195
  option pixel
  list 1, 1 1 200 150
  button "Add Item", 2, 1 151 100 25
  button "Del Item", 3, 100 151 100 25
  text "Get Working! Version 1.0 By: RagBot", 5, 10 179 200 20
}
on *:Dialog:tdl:sclick:2: { 
  write tdl.txt $?="To do list item" 
  did -r tdl 1
  loadbuf -o tdl 1 tdl.txt 
}
on *:Dialog:tdl:sclick:3: { 
  write -dl $+ $did(1).sel tdl.txt 
  did -r tdl 1
  loadbuf -o tdl 1 tdl.txt 
}
menu * {
  To Do List:dialog -m tdl tdl
}

Comments

  (6)  RSS
Scakk
Comments: 297
 
mIRC Snippet:  To Do List - Dialog
Posted on May 31, 2008 4:24 pm
1) If you click delete it will delete the first item in the list. Perhaps make it so teh button is only active if an item is selected.

2) If there is nothing in the .txt file have it delete the file until something is added back to it.

3) No point in the close button as you can close with the red x. Perhaps have and edit option.
Eugenio
Comments: 1,193
 
mIRC Snippet:  To Do List - Dialog
Posted on Jun 2, 2008 4:22 pm
I thought you would be able to type in exactly what you have to do not just the name of the task.
/me rates 7
RagBot
Comments: 41
 
mIRC Snippet:  To Do List - Dialog
Posted on Jun 5, 2008 4:03 pm
i used the close button to use up a bit of extra space, i'll change around add and del item buttons but for Scakk's idea:
Quote:
If you click delete it will delete the first item in the list. Perhaps make it so teh button is only active if an item is selected.

i'm not sure how to do it, so if anyone knows how to do so just comment below with instructions how to add the code :) Thanks.
Also Eugenio, you can add exactly what you have to do, i'm just not sure how long it can be until it doesn't work.
napa182
Comments: 1,454
 
mIRC Snippet:  To Do List - Dialog
Posted on Jun 5, 2008 4:58 pm
/help /did
look at switches -b and -e
did -switch name id [n] [text | filename]
Bahamut
Comments: 5
 
mIRC Snippet:  To Do List - Dialog
Posted on Jun 6, 2008 1:15 am
The dialog itself functions properly, however there are a few scripting things you could change. /loadbuf -ro <stuff> eliminates your /did -r; take a look at the helpfile and the /loadbuf switches a bit more. Your lack of error checking is not a good thing. You need to check things like:

    If the user has selected an item before deleting it.
    If the user has entered text into the textbox before adding it.
    If the dialog is in use.


Not to mention, the concept and script is rather simple... I think you should have worked this out a little more before release.
RagBot
Comments: 41
 
mIRC Snippet:  To Do List - Dialog
Posted on Jun 14, 2008 5:01 pm
I'm still a bit of a new scripter, i do have a few more things to learn, so bear with me as this is really a practise/pass time dialog. :)

Commenting Options

Register or Login to Hawkee.com or use your Facebook or Twitter account by clicking the corresponding button below.

  
Bottom