Search found 542 matches

by pjj
13 Oct 2014 09:47
Forum: Scripts
Topic: REGEX "Problem"
Replies: 5
Views: 20439

Re: REGEX "Problem"

Could you paste a script sample that doesn't work for you?
by pjj
26 Jul 2014 17:05
Forum: Scripts
Topic: WideString array problem
Replies: 2
Views: 15808

Re: WideString array problem

This is my second take at your problem; before I focused on Pascal grammar (which I recall very, very vaguely), found nothing and hoped Rickard would come to help (after all, RJ TE is coded in Borland.) This time I took different approach. Sooo... 1) no "type" definition in any of sample s...
by pjj
10 Jul 2014 08:48
Forum: News
Topic: 64 bit version and Delphi XE6...
Replies: 2
Views: 17834

Re: 64 bit version and Delphi XE6...

These are superb news and what I really like about your wording is that it is "we" who get those compilers :) Yet another sign of your grandeur. Just to try it out I did manage to compile the converter tool in both 32 and 64 bit versions http://www.rj-texted.se/downloads/Converter.zip . I ...
by pjj
03 Jun 2014 09:36
Forum: Scripts
Topic: [script] Switch case (like in MS Word)
Replies: 0
Views: 13398

[script] Switch case (like in MS Word)

This is not my aforementioned backup script, but a little one that may come in handy, though. It switches case from lower case to UPPER CASE to Name Case, like in MS Word, so you need only one keyboard shortcut. If nothing is selected, word under cursor is selected automatically (again like in MS Wo...
by pjj
16 Apr 2014 15:01
Forum: Scripts
Topic: Help with script
Replies: 6
Views: 21687

Re: Help with script

You are very welcome! I'm glad I could help :)
by pjj
16 Apr 2014 11:53
Forum: Scripts
Topic: Small bug in doc (function return)
Replies: 0
Views: 13038

Small bug in doc (function return)

For ScriptUtils.RegExPos (and for other similar functions) the doc states: If nothing is found, the function returns 0 (zero). In fact it is -1, not 0, as I just learnt: for (var i = 0; i < Document.LineCount; i++) { x = ScriptUtils.RegExPos("^\\s+", Document.Lines[i], exp); ShowMessage(x)...
by pjj
16 Apr 2014 11:47
Forum: Scripts
Topic: Help with script
Replies: 6
Views: 21687

Re: Help with script

OK, since you need a script, here's one for you; enjoy! // JScript // turn off screen updating Document.BeginUpdate(); // turn word-wrap off if (Document.Wordwrap) { Document.Wordwrap = false; } // remove leading spaces for (var i = 0; i < Document.LineCount; i++) { Document.Lines[i] = ScriptUtils.R...
by pjj
16 Apr 2014 09:12
Forum: Scripts
Topic: Help with script
Replies: 6
Views: 21687

Re: Help with script

Do you need a script for this (to be able to run it e.g. on each file open or save), or do you need it just one time? Because if the latter, you can simply select all text (Ctrl-A) and hit Shift-Tab a couple of times.
by pjj
04 Feb 2014 16:39
Forum: Scripts
Topic: How to terminate a script with a keyboard?
Replies: 3
Views: 17620

Re: How to terminate a script with a keyboard?

Image

Any chance you look into it someday soon? I could really, really use it, you know. Perhaps other people could, too ;)
by pjj
01 Jan 2014 17:03
Forum: News
Topic: Merry Christmas
Replies: 1
Views: 16696

Re: Merry Christmas

Merry Christmas -- they still last! -- and all the best in the New Year, guys!
Image
by pjj
11 Dec 2013 06:44
Forum: Scripts
Topic: Need a few examples, please
Replies: 8
Views: 24165

Re: Need a few examples, please

var temp = "12/10/2013 21:39 HOURS (ET) USA"; var find = ""; x = ScriptUtils.RegExPos(":\\d{2}", temp, find); ShowMessage(x); ShowMessage(find); It finds this pattern: colon, followed by two digits; then you have to strip off colon, of course. -- I hope this is what yo...
by pjj
10 Dec 2013 17:02
Forum: Scripts
Topic: Need a few examples, please
Replies: 8
Views: 24165

Re: Need a few examples, please

I'm glad I could help! :)
by pjj
23 Nov 2013 21:08
Forum: News
Topic: Next version ...
Replies: 1
Views: 15937

Re: Next version ...

Image
by pjj
16 Nov 2013 08:11
Forum: Scripts
Topic: textbox control?
Replies: 1
Views: 13910

Re: textbox control?

You can use TEdit() (one line input box) or TMemo() (mulitline).
by pjj
07 Nov 2013 12:08
Forum: Scripts
Topic: Need a few examples, please
Replies: 8
Views: 24165

Re: Need a few examples, please

Here you are, re-using code from the first example (ad 2): var needle = "erase this"; var d[1000]; // variable to store document text w/o lines containing needle var j = 0; // counter for d var upto = Document.LineCount; // no. of lines in original document text var x; // turn off screen u...