does exactley what it says on the tin
just copy into remotes
REVISED AND EDITED
Thank you for your comments and as such have edited the script as suggested
P.S sorry for my stupid arse comments
eek
alias Memo {
dialog -m -Memo -memo
}
menu status,channel,menubar {
Memo System:/Memo
}
dialog -Memo {
title "Memo System Scripted by Danny"
size -1 -1 420 390
button "Check", 1, 010 005 100 22,left push flat
button "Read", 2, 110 005 100 22,left push flat
button "Send", 3, 210 005 100 22,left push flat
button "Delete", 4, 310 005 100 22,left push flat
box "Place in this box the nick name you are sending a memo to", 9, 005 042 410 46
edit "", 5, 010 057 400 22,
box "Place in the box the memo number you want to read or delete", 10, 005 90 410 46
edit "", 6, 010 107 400 22,
box "Place in this box the text you are memoing", 11, 005 137 410 90
edit "", 7, 010 160 400 60, autohs
box "WHEN CHECKIN OR READIN A MEMO PLEASE DOUBLE CLICK SLOWLY", 12, 005 230 410 155
edit "", 8, 010 252 400 124, sort multi
halt
}
on *:dialog:-memo:sclick:*:{
if ($did = 1) { services memo $me check | did -ra $dname 8 %memo }
if ($did = 2) { services memo $me read $did(6,seltext) | did -ra $dname 7 Memo number %memo1 Seny by %memo3 | did -ra $dname 8 ~MEMO~ %memo2 }
if ($did = 4) { services memo $me delete $did(6,seltext) | did -ra $dname 8 Message deleted | did -ra $dname 7 }
if ($did = 3) {
If (!$did(5).text) {
noop $input(You need to enter a nickname)
halt
}
Else { set %mmsg $did($dname, 7).text | /services memo $did(5,seltext) add %mmsg | /did -ra $dname 8, Memo sent }
}
}
raw 275:*:{
set -u1 %memo $1- | halt
}
raw 270:*:{
set -u1 %memo1 $2 | set -u1 %memo3 $3- | halt
}
raw 276:*:{
set -u1 %memo2 $2- | halt
}
raw 269:*:{
/notice $me 12 $1- | halt
}
Not at all, I think most people would tell you thats an error since I got no less than that when I posted codes with errors similar.
It might be obvious but some people might forget, just test the code or w/e
Plus you could have used this time arguing with me to fixed it, all you have to do is check if there is no text then noop with an error message saying "You must enter a nick to send a MEMO"
It was definetly worth replying to, its not that I dont want to enter a nick but if I dont then I get an error, also what has that got to do with me using the internet ?!?
its not user friendly at all and its bug infested so yes I WOULD like you to state that you MUST enter text, also that would prevent any errors.
np for the .timer suggestion
/me rates 2
the varaibles are used the second they are set and thats why they unset after 3 seconds please look at the codes more thoroughly before posting commment
I know, that's why I said:Edit: my bad. It seems that you don't use %memo3 and also %memo5
Which unset after 1 second. But nowhere else in the code do you use %memo3 or %memo5.
the rest of your comment wasnt worth replying for example "you should check that they have actually entered a nick and maybe use noop to let them know you need text in the edit boxes." if u dont know you have to enter a nick then maybe you shoudnt be useing the internet in anyway would you also like me to state u have to enter "text" in order to send a memo as u may think it can read your mind????
How ever the timer suggestion is greatly appreciated and will put that into use ty
raw 270:*:{
set %memo1 $1- | timer 1 3 unset %memo1
}
raw 276:*:{
set %memo2 $1- | timer 1 3 unset %memo2
}
raw 264:*:{
set %memo3 $1- | timer 1 1 unset %memo3
}
I'm confused about this part. You set a variable and then unset it (btw you can just do set -u1 %memo3 $1-, but that's not the point...), and then you never use the variables that you set.
Edit: my bad. It seems that you don't use %memo3 and also %memo5
First off halt your timers using "." (.timer)
also you dont need "/" before commands
The dialog is ugly tbh, and your buttons are too small.
add not a registered nickname you should check that they have actually entered a nick and maybe use noop to let them know you need text in the edit boxes.