Top

Loaded Scripts - Dialog Form

Please Register to submit score.
Average Score  6.3
Scores Submitted  4
Date Added  Feb 04, 2008
Last Updated  Feb 04, 2008
Tags  alias  channel  dialog  loaded  query  scripts  server 

Introduction

This is a script which gives basic managment of your currently loaded scripts in a dialog form.

Load it into your remotes
Code:
ALT + R


Then right click in any channel/query/server window and click "Script Managment"

Thanks for the idea, napa182. You deserve a lot of the credit for this idea, i've just expanded on it =)

Grab the Code

Comments

  (21)  RSS
Darkkeeper
Comments: 92
 
mIRC Snippet:  Loaded Scripts - Dialog Form
Posted on Feb 4, 2008 4:17 pm
Very Nice! I really love this lol, Great job on it, 10/10
jonesy44
Comments: 618
 
mIRC Snippet:  Loaded Scripts - Dialog Form
Posted on Feb 4, 2008 4:19 pm
Thanks a lot Darkkeeper =) and thanks for the feedback.
I think i'll be getting into dialogs a hell of a lot more now, so much more functionality (SP? :s) hehe
Darkkeeper
Comments: 92
 
mIRC Snippet:  Loaded Scripts - Dialog Form
Posted on Feb 4, 2008 4:23 pm
lol me and my friend luc were sitting back editing stuff on napa's using windows, i never though to use a dialog xD very nice, im definatly going to use this alot lol
napa182
Comments: 735
 
mIRC Snippet:  Loaded Scripts - Dialog Form
Posted on Feb 4, 2008 4:28 pm
nice work jonesy44..
LucSatise
Comments: 81
 
mIRC Snippet:  Loaded Scripts - Dialog Form
Posted on Feb 4, 2008 4:32 pm
wow very nice. as DarkKeeper said we were modding the other one but now im def using this. thanks
jonesy44
Comments: 618
 
mIRC Snippet:  Loaded Scripts - Dialog Form
Posted on Feb 4, 2008 4:58 pm
:o Thanks all, hehe, makes me wanna do more scripting now xD
I'm pleased you all like it, and thanks again for the idea, napa
napa182
Comments: 735
 
mIRC Snippet:  Loaded Scripts - Dialog Form
Posted on Feb 4, 2008 4:59 pm
i would just change a few things on it..
where you have
Code:
on *:DIALOG:scripts:init:*: {
  set %total.scripts $script(0)
  set %c 1
  while (%c <= %total.scripts) {
    did -a scripts 5 $script(%c)
    inc %c 1
  }
  did -b scripts 2,4,1
}

change to
Code:
on *:DIALOG:scripts:init:*: {
  var %total.scripts $script(0), %c = 1
  while (%c <= %total.scripts) {
    did -a scripts 5 $script(%c)
    inc %c
  }
  did -b scripts 2,4,1
}

and instead of reloding the script to refresh the list change this
Code:
if ($did == 1) {
    load -rs " $+ $did(5).seltext $+ "
  }

to
Code:
if ($did == 1) {
    did -r scripts 5
    var %total.scripts $script(0), %c = 1
    while (%c <= %total.scripts) {
      did -a scripts 5 $script(%c)
      inc %c
    }
  }
napa182
Comments: 735
 
mIRC Snippet:  Loaded Scripts - Dialog Form
Posted on Feb 4, 2008 5:07 pm
jonesy44 Said:
Quote:
:o Thanks all, hehe, makes me wanna do more scripting now xD
I'm pleased you all like it, and thanks again for the idea, napa


any time jonesy44.. Im just glad i can help =)
napa182
Comments: 735
 
mIRC Snippet:  Loaded Scripts - Dialog Form
Posted on Feb 4, 2008 5:07 pm
damn now why did that come out so damn big LMAO
jonesy44
Comments: 618
 
mIRC Snippet:  Loaded Scripts - Dialog Form
Posted on Feb 4, 2008 5:48 pm
haha, no idea >.> xD
jonesy44
Comments: 618
 
mIRC Snippet:  Loaded Scripts - Dialog Form
Posted on Feb 4, 2008 5:57 pm
@ Napa, im not too familiar with:
Code:
var %x = value

Do they work in the same way as /set ? but without adding to the "Variables" tab and are deleted after the script has finished.

I've never really bothered experimenting with them =P
mountaindew
Comments: 1,366
 
mIRC Snippet:  Loaded Scripts - Dialog Form
Posted on Feb 4, 2008 6:08 pm
exactly, /var makes a local variable, while /set makes a global.

syntax: /var %var = data

so basically, if you use %test in a script, when the script is done, %script won't exist until someone triggers it again
napa182
Comments: 735
 
mIRC Snippet:  Loaded Scripts - Dialog Form
Posted on Feb 4, 2008 6:10 pm
when you use set %var you are setting a global var when you use var %var you are setting a Local var type /help Variables in ur mirc
jonesy44
Comments: 618
 
mIRC Snippet:  Loaded Scripts - Dialog Form
Posted on Feb 4, 2008 6:11 pm
ahhh, sweet! thanks, that should clear up my vars tab big time =D

i take it you can set multiple vars, like:
Code:
var %i = 1, %b = 2


Something like that?
water_dragon
Comments: 43
 
mIRC Snippet:  Loaded Scripts - Dialog Form
Posted on Feb 5, 2008 4:15 am
very nice script easier to see wot script iv got uploaded u be suprize how many i load in all the time.

iwz
Comments: 11
 
mIRC Snippet:  Loaded Scripts - Dialog Form
Posted on Feb 5, 2008 9:06 am
Hehe Jonesy my scripting partner, very nice work mate. :P
Solo
Comments: 32
 
mIRC Snippet:  Loaded Scripts - Dialog Form
Posted on Feb 5, 2008 10:39 am
What does this do more then the script editor?
jonesy44
Comments: 618
 
mIRC Snippet:  Loaded Scripts - Dialog Form
Posted on Feb 5, 2008 12:02 pm
It's not a script editor, it's a dialog to show what scripts are loaded, an unload function, run function and load function
Solo
Comments: 32
 
mIRC Snippet:  Loaded Scripts - Dialog Form
Posted on Feb 6, 2008 4:22 am
in the script editor i can view all loaded scripts, edit, change, load, unload and a whole lot more. Why would i use this?
Lindrian
Comments: 693
 
mIRC Snippet:  Loaded Scripts - Dialog Form
Posted on Feb 6, 2008 9:25 am
By just looking at the code, I can give you a few suggestions:
1) Use /var, help /var
2) Use the -d switch when removing items, instead of reloading the entire list all the time. /help /did
3) "inc %c 1", the "1" isnt needed.
4) Dont use menu *, annoying stuff.
5) What about adding more info? Like when the file was created, when modified etc.

Good luck!
jonesy44
Comments: 618
 
mIRC Snippet:  Loaded Scripts - Dialog Form
Posted on Feb 7, 2008 11:15 am
Nice thought, Lindrian. thanks =)
I'm now using /var, never thought of using them before. I

@Solo, personally find this script very usefull. I've only just noticed the scripts function in the mIRC editor, which to put plainly i find a bit crap. so i'd perfer to use this. it's a matter of opinion though i spose

Please Register or Login to start posting comments.
Bottom