Enhancement suggestions for UEdit active scripting

Help with writing and running scripts

Enhancement suggestions for UEdit active scripting

Postby jorrasdk » Tue Mar 20, 2007 10:16 am

Hi all. Just wanted to let you know, that I have sent the suggestions for enhancements that you see below to IDM.
Cheers! /Jorrasdk.

To: support@idmcomp.com
Subject: Enhancement suggestions for UEdit active scripting

Hello IDM

After working with active scripting in UltraEdit for a couple of weeks I have
the following enhancements to suggest:

* A setting/option that suppresses the output window if there is no errors
when running a script (see also my suggestion for outputWindowVisible).

UltraEdit.outputWindowVisible = true/false
true = show output window
false = don't show output window

UltraEdit.outputWindow.write()
Just like UltraEdit.activeDocument.write but to the output window.

UltraEdit.outputWindow.clear()
Clears the output window.

UltraEdit.outputWindow.copy()
Copies the output window to the clipboard.

UltraEdit.activeDocument.cursorLineNum
UltraEdit.activeDocument.cursorColNum
Properties with the actual position of the cursor. Allthough you can do a lot
with ToogleBookmark "and family" and isColNum, it is more intuitive (for me) to work with line numbers and column numbers together with
gotoLine/gotoLineSelect.

UltraEdit.activeDocument.lines
Property with the actual number of lines in the document.

UltraEdit.activeDocument.size
Property with the actual number of bytes in the document (same as file size in the info-line).

UltraEdit.activeDocument.path
This property needs to be documented. It works ok though.

Regards
Jørgen Rasmussen
Denmark
User avatar
jorrasdk
Master
Master
 
Posts: 275
Joined: Mon Mar 19, 2007 11:00 pm
Location: Denmark

Re: Enhancement suggestions for UEdit active scripting

Postby PaoloFCantoni » Wed Mar 21, 2007 12:40 am

Good ideas Jorgen,

You might want to add:

UltraEdit.activeDocument.characters
Property with the actual number of characters in the document (for those formats with multi-byte characters).

Paolo
User avatar
PaoloFCantoni
Power User
Power User
 
Posts: 113
Joined: Sun May 01, 2005 11:00 pm
Location: Perth, Western Australia

Re: Enhancement suggestions for UEdit active scripting

Postby tulpe » Tue Mar 27, 2007 1:17 pm

thanks for the js scripting stuff!
but what i really miss is the ability to include other js files (libraries etc.).

tulpe

germany

[edit] whoops.. i thought this was an official suggestion thread.. sorry for hijacking[/edit]
User avatar
tulpe
Newbie
 
Posts: 4
Joined: Thu Oct 14, 2004 11:00 pm


Return to Scripts