Search found 83 matches

by jgodfrey
06 Oct 2011 22:54
Forum: Scripts
Topic: Find QB function or sub based on cursor location
Replies: 4
Views: 11691

Find QB function or sub based on cursor location

In an attempt to assist with this topic: http://www.rjsoftware.se/Forum/viewtopic.php?f=11&t=1981 Here's a script that will find a QB function or subroutine named like the word that's currently selected or near the cursor. Since I'm not a QB programmer it may require some additional seasoning, b...
by jgodfrey
06 Oct 2011 20:23
Forum: Scripts
Topic: Help with/for Scripting
Replies: 9
Views: 20883

Re: Help with/for Scripting

I meant "brute force" (not hardcoding-type), rather than a more elegant solution. I guess it depends on how badly you want the custom functionality. You can certainly create it now (with no scripting enhancements), though it may take a little more effort on your part than you might have h...
by jgodfrey
06 Oct 2011 18:04
Forum: Scripts
Topic: Help with/for Scripting
Replies: 9
Views: 20883

Re: Help with/for Scripting

I figured out the Document.SelText and a couple of other things, but didn't want to do a hardcoding-type implementation. I'm not sure I follow. You don't really need to "hardcode" anything outside of the actual search logic. The script can certainly operate on the selected item, or select...
by jgodfrey
06 Oct 2011 17:20
Forum: Scripts
Topic: Help with/for Scripting
Replies: 9
Views: 20883

Re: Help with/for Scripting

ISo it's a relatively simple script, if you know how the scripting stuff works. I'm not sure you can do a regex search in a script (though that would be nice). While a regex would make it easier, it's certainly not necessary in this case. Here are a few pointers: - Get the current selection using D...
by jgodfrey
28 Sep 2011 15:33
Forum: Syntax files
Topic: Bug or corruption or something
Replies: 3
Views: 12780

Re: Bug or corruption or something

I know this isn't directed to me, but I'm confused by the description of what you're seeing in the Highlighters pane of the Options dialog. Could you maybe provide a screenshot of the dialog showing the issues? Are you sure you assigned appropriate file extensions to your highlighter when you activa...
by jgodfrey
27 Sep 2011 18:34
Forum: Scripts
Topic: Dead Simple Persistence Library (DSPL)
Replies: 2
Views: 8751

Re: Dead Simple Persistence Library (DSPL)

Sladdir wrote:It works greatly! Once again, many thanks to you! :)
That's great Sladdir. Thanks for the feedback.

Jeff
by jgodfrey
27 Sep 2011 17:37
Forum: Scripts
Topic: Setting bookmarks via scripts
Replies: 2
Views: 9697

Re: Setting bookmarks via scripts

Would these bookmarks only be for use by the script itself (to remember specific locations in the file while the script is running) or would they be for interactive use by the User? If they're just for script use, then I guess you don't really need a "bookmark" per se, but only a way to re...
by jgodfrey
27 Sep 2011 16:31
Forum: Scripts
Topic: Dead Simple Persistence Library (DSPL)
Replies: 2
Views: 8751

Dead Simple Persistence Library (DSPL)

There was a question elsewhere in the forum (http://www.rjsoftware.se/Forum/viewtopic.php?f=6&t=1948&start=15) about retaining some values through various invocations of a script. While TE's scripting engine doesn't directly offer a "persistence library", the necessary machinery to...
by jgodfrey
26 Sep 2011 17:34
Forum: Syntax files
Topic: Dash character as it relates to numbers in highlighter
Replies: 1
Views: 9831

Dash character as it relates to numbers in highlighter

Consider the following image: number_highlight.png Notice that my numbers are "yellow" in color. However, notice that the "-" characters are yellow also. I assume that's because the dash is being interpreted as a numeric negative sign. IMO, that would be fine if the dash preceded...
by jgodfrey
09 Sep 2011 15:53
Forum: Scripts
Topic: Insert current file name at cursor position
Replies: 0
Views: 6185

Insert current file name at cursor position

As another possible solution to this post: http://www.rjsoftware.se/Forum/viewtopic.php?f=2&t=1922 Here's a simple script to insert a fully-qualified copy of the current file's name at the cursor position. #language C++Script // Insert the fully qualified current file name at the cursor position...
by jgodfrey
05 Sep 2011 17:30
Forum: Scripts
Topic: Numeric base translator
Replies: 5
Views: 18717

Numeric base translator

I've always liked the built-in numeric base translator in PSPad. It has a number of advantages over TextEd's "Convert" utility when all you need is a quick base conversion (and want to cut/paste the result). So, I set out to (somewhat) replicate it in a TextEd script. While the below scrip...
by jgodfrey
05 Sep 2011 16:47
Forum: Scripts
Topic: TEdit - Ctrl+V paste?
Replies: 4
Views: 10763

Re: TEdit - Ctrl+V paste?

Right. I can't help you then, I'm afraid :? (what are we talking about, after all? do you mean Script Editor?) No, I mean a script I *created* using the script editor. My script has a form that contains (among other things) several TEdit controls. I can't paste into those controls (when the script ...
by jgodfrey
05 Sep 2011 15:50
Forum: Scripts
Topic: TEdit - Ctrl+V paste?
Replies: 4
Views: 10763

Re: TEdit - Ctrl+V paste?

Thanks, but Ctrl+V seems to be already properly wired within TextEd (just as you described) and it works fine within the editor. I just can't get it to work within a scripted TEdit control.

Jeff
by jgodfrey
05 Sep 2011 15:31
Forum: Scripts
Topic: TEdit - Ctrl+V paste?
Replies: 4
Views: 10763

TEdit - Ctrl+V paste?

I can't seem to paste text into a TEdit control via Ctrl+V, though the Paste context menu works correctly. Is this expected?

Jeff
by jgodfrey
05 Sep 2011 06:37
Forum: Scripts
Topic: TEdit OnChange event not available?
Replies: 0
Views: 6005

TEdit OnChange event not available?

Do the GUI controls available to TextEd's scripting engine support all of standard control events or only some of them? For instance, I can wire to a TEdit's OnKeyPress and OnKeyUp events, but not to its OnChange event. Using that event triggers an "Undeclared Identifier: 'OnChange'" error...