mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jun 2006
Posts: 4
J
Self-satisified door
OP Offline
Self-satisified door
J
Joined: Jun 2006
Posts: 4
Since I use the script editor a lot, I've come up with some ideas for new features in it.
  • Auto indent
  • Syntax highlighter
  • Editor hints


Just a few. It would make a scripter's life a lot easier.

Joined: Jun 2003
Posts: 994
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Jun 2003
Posts: 994
Auto indent ... isn't that what the {} button does (assuming you have closed all of them in the first place)?

Syntax highlighter .. I wouldn't mind this .. would make it easier to troubleshoot messy code.

Hints .. Don't think I'd use this if it was implemented and optional.


I refuse to engage in a battle of wits with an unarmed person. wink
Joined: Jun 2006
Posts: 4
J
Self-satisified door
OP Offline
Self-satisified door
J
Joined: Jun 2006
Posts: 4
It's much easier to read your code when it automatically adds the ident (like when you make a new line, it'll automatically put the proper ident).

Joined: Dec 2002
Posts: 1,544
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Dec 2002
Posts: 1,544
auto indent and syntax hilighting could be useful. Synbtax hilighting has been suggested numerous times in the last couple of years and has been debated as being a good and bad thing (IIRC). Personally, I see it like this - if it eats up too much resources, let us shut it off and have it off by default smile

As for editor hints, Im not quite sure what ya mean by this. Care to explain (to somebody who just woke up and whose brain isnt working on full speed yet)?


Those who fail history are doomed to repeat it
Joined: Jun 2006
Posts: 4
J
Self-satisified door
OP Offline
Self-satisified door
J
Joined: Jun 2006
Posts: 4
Example: I'm going to use $replace. When I press the ( after $replace, a hint will popup (like the hints that appear when you mouseover a button), showing the parameters that $replace has. Something like: "$replace(String,Substring,Newstring)". Lots of IDEs have them. All of the Visual Studio products I've used have it.

Joined: Dec 2002
Posts: 1,544
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Dec 2002
Posts: 1,544
oooooooooooooo gotcha, not a bad idea but again, if it can be disabled sure smile Some people might not want it.


Those who fail history are doomed to repeat it
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
i know im going to catch flake from someone on this, but i dont see how it can be developed to syntax highlighting

i mean highlight this

%timername $+ $1 0 1 %bobothemonkey

Joined: Dec 2002
Posts: 1,544
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Dec 2002
Posts: 1,544
good point - yeah, I dont get it unless mirc evaluates it and man, THAT would suck up resources!!! however, it cuold have a "neutral" color to it for that kind of thing *shrugs*


Those who fail history are doomed to repeat it
Joined: Jun 2003
Posts: 994
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Jun 2003
Posts: 994
Quote:
It's much easier to read your code when it automatically adds the ident (like when you make a new line, it'll automatically put the proper ident).


Someone correct me if I'm wrong, but wouldn't this be not only an extreme resource hog, but nearly impossible since the script editor has no way of knowing what you're about to put on the next line (another parameter, a } .. whatever)?


I refuse to engage in a battle of wits with an unarmed person. wink
Joined: Dec 2002
Posts: 580
N
Fjord artisan
Offline
Fjord artisan
N
Joined: Dec 2002
Posts: 580
I will be writting a DLL that does this (after I finish the DLL I'm on right now - sometime in July)... Do don't expect a release overnight. Maybe by the end of this year... Watch my web site for a release.

If anyone wants to help write, let me know... smile
(Hooks and Subclassing experience prefered)

Currently planned features include...

* Auto Indent
* Color changes for comments
* Tooltips that follow the typing of identifers in progress of being type
* Tabs that are placed in the richtext editbox, rather that tabing focus. (I think mIRC can handle tabs for indenting scripts??)
* Reassigning mIRC Hotkeys, so alt-a can be restored
* Group management (maybe a menu for groups?)
* Hash table editor
* A DLL method of locking-out the script editor (to prevent your scripts from being modified by it's users)
* A Dialog Designer
* Reorganizing the view menu to allow grouping of script in to sub-menus. Then additionally add more submenus to goto specific aliases


NaquadaBomb
www.mirc-dll.com
Joined: Jun 2006
Posts: 4
J
Self-satisified door
OP Offline
Self-satisified door
J
Joined: Jun 2006
Posts: 4
That is a great idea. Just a custom DLL that does it.
@Everyone that says it would be impossible - Unless my memory's failing, mIRC was written in C++. There's lots of IDEs written in C++ that have this feature. It is not impossible. Some of those IDEs don't even take up 5k memory.


Link Copied to Clipboard