AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

ISense 1.5.4
Goto page Previous  1, 2, 3, 4, 5 ... 16, 17, 18  Next
 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
shane



Joined: 30 Jan 2007
Posts: 8

PostPosted: Tue Jan 30, 2007 7:43 pm    Post subject: Reply with quote

I have been floating round these boards and using ahk for a while now and have finally signed up to the forums as I felt that I had to say thanks to majkinetor for this truly brilliant app. I only downloaded this yesterday and it has already saved me so much time flicking between scripting and help windows to make sure my syntax is correct.

Again thanks to majkinetor! Very Happy
Back to top
View user's profile Send private message
majkinetor



Joined: 24 May 2006
Posts: 3624
Location: Belgrade

PostPosted: Thu Feb 01, 2007 1:50 pm    Post subject: Reply with quote

I updated web control to new one witch gives some new nice options. However there is some error box issued randomly (see bugs section) that except for beeing anoying doesn't influece ISense work. I need from you to tell me how often this error appears (if it appears at all)

Download: version 1.3 beta1

- Setup dialog redesigned and new options added:
    - option for title to be monitored (was hardcoded to .ahk)
    - option for number of number of letters to type for Info window (was hardcoded to 3)
    - options for Help windows dimensions (was hardcoded to 600x400)
    - options for fontSize (new)
    - better color handling for Tooltip
    - all options are instant (no restart required for any of them)
    - context sensitive help


- New hotkey CTLL ENTER - zoom help window full screen (works while help window is visible)

BUGS
- Randomly it will show error message on startup (Cannot complete this operation.). This is fault of new webcontrol and can not be fixed except dll itself is patched. INterestingly enough, this doesn't influence ISense in any way except being anoying


_________________


Last edited by majkinetor on Thu Feb 01, 2007 5:41 pm; edited 1 time in total
Back to top
View user's profile Send private message MSN Messenger
hoppfrosch



Joined: 25 Jan 2006
Posts: 16
Location: Somewhere in Germany

PostPosted: Wed Feb 21, 2007 4:38 pm    Post subject: Reply with quote

majkinetor wrote:
Well, original plan was to support other languages. I still stick to that, as I created it so I am able to use it with some rare language I use.

Don't know how when I will find thime for this.



Are there still any plans to implement this? Would be interested as well ....

I'm using at least two different editors for my development - and I want to have this code-completion feature available in the same manner in both editors (both editors offer code-completion - but each of them has to be configured separately ... Sad )
Back to top
View user's profile Send private message
majkinetor



Joined: 24 May 2006
Posts: 3624
Location: Belgrade

PostPosted: Wed Feb 21, 2007 5:03 pm    Post subject: Reply with quote

It is still planed. I did some work on language-invariant version already, but the AHK itself present bigest problem since its syntax is full of special cases. Other, more matematical languages are easier to parse.

One thing is sure - not going to happen soon.

The other thing is that my head hurts a lot when programming ISense due to the "Infinity" number of character variation I must take into account when parsing.... Sad
_________________
Back to top
View user's profile Send private message MSN Messenger
Lexikos



Joined: 17 Oct 2006
Posts: 2540
Location: Australia, Qld

PostPosted: Sat Apr 21, 2007 4:30 pm    Post subject: Reply with quote

I have an idea of why the Error dialog pops up:

One of the components you are initializing "Cannot complete this operation" because some part of AutoHotkey (probably a window) hasn't initialized yet. I found that the error dialog goes away if you put:
Code:
Sleep, 100
at the beginning of the script.

That seems to cause another problem though - occasionally if you reload the script (as in right click, Reload) none of the windows (tooltip, help, etc.) will show (they just steal the focus from the active window...) I'm guessing this is because the previous instance of ISense is still running, and has a lock on some "shared" resource. Why it only happens when there's a "sleep" line, I haven't a clue...

It seems to work reliably if I exit before restarting the script, though. And no error dialogs!

...
With further experimentation, it seems the error pops up during the call to lbbrowse3\DoFontSize. (View most recently executed lines while the error dialog is showing.)
Back to top
View user's profile Send private message
majkinetor



Joined: 24 May 2006
Posts: 3624
Location: Belgrade

PostPosted: Sat Apr 21, 2007 5:41 pm    Post subject: Reply with quote

THe problem is in IE control. THis bug is pretty long with ISense with various versions of IE dlls (from different developers). I plan to update ISense to use IE COM recentely beeing made by Sean (Check out wiki COM section).


I think that bug appears after you reload if editor is active application before reloading (and it usualy is).


Quote:
I found that the error dialog goes away if you put:Code (Copy):
Sleep, 100


Thx. This was really anoying.
_________________
Back to top
View user's profile Send private message MSN Messenger
Lexikos



Joined: 17 Oct 2006
Posts: 2540
Location: Australia, Qld

PostPosted: Sun Apr 22, 2007 2:21 am    Post subject: Reply with quote

majkinetor wrote:
I think that bug appears after you reload if editor is active application before reloading (and it usualy is).

You mean the invisible windows, right? For me, that happens almost every second time I reload, even when the editor is not active (i.e. Firefox is,) but only with the "Sleep" line is there. The error dialog pops up every time, without fail (without the "Sleep" line.)

As I said, the error seems to be specifically in lbbrowse3\DoFontSize. Commenting out the call to that has the same effect as putting a small "Sleep" before it (or at the start of the script.) It doesn't seem to affect the font size, so what does it do?
Back to top
View user's profile Send private message
majkinetor



Joined: 24 May 2006
Posts: 3624
Location: Belgrade

PostPosted: Wed Apr 25, 2007 6:33 pm    Post subject: Reply with quote

Very Happy

It affects font size. You can set the font size in the setup.
Well, I really appreciate your findings but as I said, i will replace dll with IE COM solution so we will continue if those errors happen afterwards.

I also started converting script into language-independent solution. This appears to be hell of a job, especialy if AHK is to fit there (which I doubt is possible without complicating script much, as of its complex grammar). If you think you can be of help and have time let me know.

Thx.
_________________
Back to top
View user's profile Send private message MSN Messenger
Lexikos



Joined: 17 Oct 2006
Posts: 2540
Location: Australia, Qld

PostPosted: Wed Apr 25, 2007 10:27 pm    Post subject: Reply with quote

majkinetor wrote:
It affects font size.
As I said - not on my machine. Very strange...

Quote:
If you think you can be of help and have time let me know.
I started to add "sub-command" completion (like listing Check, Uncheck, Enable, Disable, etc. for the first parameter of "Control,") but I haven't finished it yet. So far it shows the list (of relevant items for any command with "Cmd" or "Sub-command" as a parameter) if you press ^Space, but doesn't update the selection or auto-complete properly. If and when I finish it, I'll post it here. Smile

I'm not sure what you intend the launguage-independant version to be cabapable of, so it's hard to offer help for that part. I suppose part of that might be adding support for functions (which would also be very good for AHK...) What do you have in mind?
Back to top
View user's profile Send private message
majkinetor



Joined: 24 May 2006
Posts: 3624
Location: Belgrade

PostPosted: Thu Apr 26, 2007 9:01 am    Post subject: Reply with quote

I want to make ISense not depend on language. So you can use it with JavaScript, Python or whatever. The plan is not to provide something to be used with main streem IDEs like Visual Studio or Delphi, but to create something that can be used everywhere (for instance, you can use ISense even in WebBrowser while responding to post) and that users can easily configure for some not main-stream languages, like Lua, CSound, Ruby, Lisp or whatever... There are also number of situation where you have custom editor for scripts, for instance in MS SQL Mangaer there is a small editor for stored procedures that is basicly simple edit and you don't have any code-making features in it, yet, you have to use it. In most languages there is only one thing to handle, functions, or some similar variant like AHK commands.Csound works this way too, just it doesn't have comma after command:
Code:
oscil oscil3, iamp, kfreq, gi_sine


Green is command, in this case oscil that creates osiclator and it has 3 parameters , that set oscilator's frequency, amplitude and shape. Its AHK syntax without first comma.

This includes adding functions and user keywords. The script is originaly designed so it doesn't depend much on AHK specifics as that was plan from the start. I already started moving everything AHK specific into options section. In latest work it looked like this

Code:
   lang_eoc      = Enter               ; end of command
   lang_commentStr   = ;                  ; line comment
   lang_startKeys   = Space,Tab            ; start monitoring   (no comma allowed)
   lang_paramChar  = ,                  ; parameter delimiter
   lang_stringChar = "                  ; string char


Then, language commands would be bellow this config section, so as above is for AutoHotKey bellow would be what is now in res\Commands.txt. If this is done, users can create language file easily, by adding configuratin header to Quick Reference of the language.


I never finished this as it appered to be pretty complex to do and I didn't have so many time ATM. I also wanted to add user projects in manner: you select word, press hotkey, word is added to the list of your variables or functions and you can use autocompletition later. Then if you have 5 scripts in the project, you can set as first line some ISense keywords like:

Code:
;ISense UserData= path to project file

Then, when you open file and run isense, it will grab first line to get where is project saved and load user keywords afterwards. So, you put this line and forget about ISense.

There are lot of good ideas, but first thing to do would be to fix this IE control.
_________________
Back to top
View user's profile Send private message MSN Messenger
majkinetor



Joined: 24 May 2006
Posts: 3624
Location: Belgrade

PostPosted: Wed May 09, 2007 10:11 am    Post subject: Reply with quote

1.5
- IE dll removed and now ISense use IE COM control created by Sean. This magicaly removed all bugs that were present so far, at least from what I can see from first several tests.


2Sean
Can you tell me is there quick solution for this little problem.
I don't want to have scroll bars in IE window. No problem, I removed flag from CreateWindow in IEAdd and this made IE scroll-less. But side effect is that it doesn't react on up/down keys, just on mouse weel when you select the window. This wasn't happening with dll I was using before. Is there any chance to hide scroll bars and still being able to use arrows ?

Maybe we can access to DOM and change the BODY object explicitely so it doesn't display scrolls ? I was already doing so in Delphi once, when I had to save web page into bitmap. I can find the code if you don't have something simpler in mind.

2Chris
You said it before that you would like to add ISense to showcase. Now it is a good time as DLL is removed, so this is normal AHK script. Also, this fixed only bugs known to me so far. You asked for some words to describe the script, and Overview from the Help.txt is good for that.

ISense Help wrote:

ISense is command completition and parameter tracking script for AutoHotKey language. It is made to help you edit your code faster, to locate exact parameter position with complex commands (like InputBox), and generaly, provide you help with AutoHotKey without ever leaving your editor. ISense is editor independent and can generaly be made to work in every place that accept keyboard input

_________________


Last edited by majkinetor on Wed May 09, 2007 1:27 pm; edited 1 time in total
Back to top
View user's profile Send private message MSN Messenger
Lexikos



Joined: 17 Oct 2006
Posts: 2540
Location: Australia, Qld

PostPosted: Wed May 09, 2007 10:48 am    Post subject: Reply with quote

majkinetor wrote:
1.5

The folder in the .zip file says "Isense_13b1"...
Back to top
View user's profile Send private message
majkinetor



Joined: 24 May 2006
Posts: 3624
Location: Belgrade

PostPosted: Wed May 09, 2007 12:55 pm    Post subject: Reply with quote

Well... its not, I corrected the folder name.

True version of eatch script I make can be seen if you hover the mouse over the tray icon.

Tell me lexikos, did you experience previous bugs ?
_________________
Back to top
View user's profile Send private message MSN Messenger
majkinetor



Joined: 24 May 2006
Posts: 3624
Location: Belgrade

PostPosted: Wed May 09, 2007 1:24 pm    Post subject: Reply with quote

I created nice gif about universality of ISense. It is shown how to use ISense when replying on this forum in Internet Explorer.


_________________
Back to top
View user's profile Send private message MSN Messenger
Sean



Joined: 12 Feb 2007
Posts: 1331

PostPosted: Wed May 09, 2007 1:26 pm    Post subject: Reply with quote

majkinetor wrote:
Can you tell me is there quick solution for this little problem.
I don't want to have scroll bars in IE window. No problem, I removed flag from CreateWindow in IEAdd and this made IE scroll-less. But side effect is that it doesn't react on up/down keys, just on mouse weel when you select the window. This wasn't happening with dll I was using before. Is there any chance to hide scroll bars and still being able to use arrows ?

This symptom was the very reason of adding the flag.
After that, I further replaced the WindowName from CLSID_WebBrowser to the ProgID "Shell.Explorer", so that the scrollbar was auto-generated even without the flag.

Quote:
Maybe we can access to DOM and change the BODY object explicitely so it doesn't display scrolls ? I was already doing so in Delphi once, when I had to save web page into bitmap. I can find the code if you don't have something simpler in mind.

I can't think of any other solution atm without DOM accessing.
Alas, however, I tried to avoid any dependency on DOM so far.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Goto page Previous  1, 2, 3, 4, 5 ... 16, 17, 18  Next
Page 4 of 18

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group