73 posts in this topic

CyberSlug 3

Currently available: One-button (un)comment that lets you comment out a block of code by using the right character based on document class.... I have no idea why TextPad lacks this feature.

I also have some older tools such as Emacs-like paren matching and SYN file reloading.

I also have a decement adaptation of Larry's intellisense thingy for TextPad/Crimson/Other. (Since HotKeySet functionality has been limited in recent releases of AutoIt, I might have to use a custom AutoIt build, but I'll try to avoid this.)

Share this post

Link to post

Share on other sites

Valik 468

Pretty neat. Here's what I would _prefer_ to see, though, and that's tooltips appearing somewhere near the cursor (If possible to detect...). I know the ability to create tooltips isn't available (yet) but since you've already modified a version of AutoIt to use for this, I see no reason why you couldn't have tooltips added to your build. If you're interested in that idea, I'll try to hack something together for you.

Share this post

Link to post

Share on other sites

CyberSlug 3

I'll fix the trapping. As far as the other things, the easiest solution is to use use a full-blown key-logger-capabable AutoIt build, which I'd rather not do....

Thanks! And yes, tooltips would be my preference too. If you can implement tooltips, I'd be quite happy.

As for cursor detection.... TextPad lets you pass the row and column as parameters to user-defined tools... and with analysis of font size, scrollbar location, it *might* be possible to estimate the positon.... I'm not sure about Crimson or other editors. Well, ControlCommand could work in Notepad. :hmm:

Share this post

Link to post

Share on other sites

Valik 468

I've been thinking about this idea myself recently. I like Visual Studio's intellisense stuff, it helps me out a lot. I think with the ability to detect the cursor position (The Windows API probably has something for this I can use) and tooltips, emulation of VS's intellisense is possible.

Share this post

Link to post

Share on other sites

Valik 468

Minor update It has Valik's code for obtaining the caret position (keyboard cursor).

I'm planning version 0.2 as I write this.

If Larry's AU3GUI (Or AutoIt) had the ability to set a dialog's background color, you could create your own pseudo-tooltip with the proper color and look and stuff. You're already kind of doing that with the splash window in that version. That seems to be the way other Intellisense stuff is done.

I'm thinking of using keyboard buffering, meaning that alphanumeric keypresses would be trapped... Enter would clear the buffer (unless the last buffer character is the underscore character), quotation marks would be kept track of, backspace would work right, and the closing paren would terminate the tooltip thingy. Unfortunately, this would require a custom AutoIt build..... zzzzz

Share this post

Link to post

Share on other sites

Valik 468

Looks really good. I'll be using this next time I work on an AutoIt script.

I did notice one thing you didn't mention, when you minimize the editor when a tooltip is displaying, then resume the editor, the only way to get anymore tooltips to display is by typing ')'. It doesn't necessarily have to show a tooltip when you re-open the editor, but it probably should be in a ready state for the next time you type '('. (Pressing ESC will also cancel out and let a new tooltip display the next time you type '(' also).