IRC NOTEPAD

By Gemster on Feb 11, 2008

Do you find it annoying when you need to remember a word,nick,password,line,ect and you are sick of opening windows notepad well if so this snippet may help :P

Its a little IRC notepad ive made that uses a txt file to store the info.
You can add and delete any part of the txt file from the dialog :D

to use just copy and paste to remotes (alt+r)

Special thanks to mountaindew and JacK SpaRRoW for helping with parts of this code, Thanks guys :D

Have fun :P

Menu channel { 
  IRC NOTEPAD: dialog $iif($dialog(Npad),-v,-m) Npad Npad 
} 

on *:dialog:Npad:init:*:{ 
  var %x = 1 
  while %x <= $lines(Npd.txt) { 
    did -a $dname 3 $read(Npd.txt,%x) 
    inc %x 
  }  
} 
dialog Npad {
  title "IRC NOTEPAD"
  size -1 -1 190 241
  option dbu
  button "ADD", 1, 52 7 37 12, ok
  button "Delete", 2, 97 7 37 12, ok
  combo 3, 8 22 173 131, size hsbar vsbar
  button "OK/Cancel", 4, 75 153 37 12, ok cancel
  text "Help:", 5, 11 177 25 8
  text "To ADD a word/line type the word/line in the top box and press [ADD] To Delete a word/line click the word/line from the list and hit delete :P.", 6, 11 187 169 35
  link "IRC NOTEPAD By Gemster", 7, 63 231 66 8
  box "", 8, 9 173 173 48
  box "", 9, 5 1 179 167
}

on *:DIALOG:Npad:sclick:1:{ write Npd.txt $did(3) }
on *:DIALOG:Npad:sclick:2:{ write -ds " $+ $did(3) $+ " Npd.txt }

Comments

Sign in to comment.
bps19882006   -  Nov 18, 2008

lol

 Respond  
bps19882006   -  Nov 18, 2008

lol im sorry...i had to point this out..ivanalicius....u could just do..


menu Menubar {
.Notepad: run notepad
}
 Respond  
Gex   -  Feb 12, 2008

@Ivanalicius the point of this script is to save time even if it saves 5 seconds....according to your words...we can use /run wmplayer.exe to run the mp3 player instead of using an irc mp3player..

 Respond  
Gemster   -  Feb 12, 2008

yes Ivanalicius that is easyer but still it uses windows and space as u have to choose sum where to save it and keep finding it and opening it,editing it.

this one irc uses.

Basically it makes ppl lazy lmao :P

 Respond  
Gemster   -  Feb 12, 2008

yup i c mountaindew

this post was a work in progress (just the basics)

till R1cochet took it over :/

 Respond  
Ivanalicius   -  Feb 12, 2008
menu Menubar {
.Notepad:/run C:\\WINDOWS\\system32\\notepad.exe
}

Too simple.

 Respond  
guest598594   -  Feb 12, 2008

i have some suggestions:

1) Dialog is too big, too much space
2) Disable the delete button until you click a thing in the combo
3) I would turn the init event into an alias, and call that on the init, and then call it again when u delte something (to update the list), and same for when you add something
4) Disable the add button until you have text in the edit box

 Respond  
Gemster   -  Feb 12, 2008

ohh i thought this one was the first :(
Sorry Gex :/
Well both are very similar but this 1 is much easyer to use and understand, not too complex either

 Respond  
Gemster   -  Feb 12, 2008

thanks Scakk that works fine thanks.

Ok ppl you can now delete full lines thanks to Scakk :P

 Respond  
Gex   -  Feb 12, 2008

ive made that before, but with a textarea

http://www.hawkee.com/snippet/1688/

 Respond  
Scakk   -  Feb 12, 2008

Try

on *:DIALOG:Npad:sclick:2:{ write -ds \" $+ $did(3) $+ \" Npd.txt }
 Respond  
napa182   -  Feb 12, 2008

um you can try this.

var %dNpd $read(Npd.txt,w,$did(3).text) 
      if (%dNpd == $did(3).text) { 
        write -dl [ $+ [ $readn ] ] Npd.txt
 Respond  
Gemster   -  Feb 12, 2008
on *:DIALOG:Npad:sclick:2:{ write -ds $did(3) Npd.txt }

if any1 knows the command to delete whole lines instead of a word please let me know thanks

 Respond  
Gemster   -  Feb 12, 2008

R1cochet if you add a word that will delete fine but if yo add a line like say \"need to remeber this line\" the snippet wont read spaces for delete so type the first word ir \"need\" and hit delete and that will work. :P

 Respond  
napa182   -  Feb 12, 2008

nice idea but how about instead of useing a combo box you use a edit box and a list box, and you can get it to read spaces.

 Respond  
bourneident   -  Feb 12, 2008

maybe make it update while open if i add someting or delete something i have to close it then open again i have to to see that it is there

other then that not bad great idea there are smaller ones out there but this one has great potential keep it up

 Respond  
R1cochet   -  Feb 12, 2008

What a Great idea. Cant get delete to work though?

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.