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, ... 16, 17, 18  Next
 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
holomind



Joined: 11 Mar 2006
Posts: 299
Location: Munich, Germany

PostPosted: Sat Sep 30, 2006 2:45 pm    Post subject: Reply with quote

seems to be the way to go with vi and intellisense (maybe also other solutions)
http://insenvim.sourceforge.net/
Back to top
View user's profile Send private message Visit poster's website
foom



Joined: 19 Apr 2006
Posts: 386

PostPosted: Sat Sep 30, 2006 6:22 pm    Post subject: Reply with quote

Very Impressive script. One thing is odd. When using the closebutton on the commandlist window the script closes. I think it should only close the window but not the entire script. Maybe you could add a minimize button to prevent confusion. Other than that i got nothing to nag about.Maybe Chris should replace the simple one from Rajat with yours if its possible for him to redistribute the cwebpage.dll along with ahk, licensingissue-wise.

Btw. can you tell me what videocodec you used? Because i was like "WTF?!? 60MB?!?" after i unpacked the rar Smile. Is it optimized for rar's madiafilter?
Back to top
View user's profile Send private message
majkinetor



Joined: 24 May 2006
Posts: 3615
Location: Belgrade

PostPosted: Sat Sep 30, 2006 6:57 pm    Post subject: Reply with quote

Quote:
One thing is odd

A minimise button ? And what it should do ?
Anyway, my thoughts were like this: if ISense jump out while you do your coding and for some reason you don't want it to, its the fastest to close it via [x] button. You don't use mouse while coding, so if you want to close the Info window, you just move with left or right arrow or press ESC.

Quote:
Maybe Chris should replace the simple one from Rajat with yours if its possible for him to redistribute the cwebpage.dll along with ahk, licensingissue-wise.

It is up to Crhis, of course. I personaly think it is a good idea since it will surely be atractive for newbies. There is no problem with dll, since that was proof of an article on CodeGuru and everybody can use it, or even recompile it from source, like all other things there. Also, it is possible to use hh.exe instead this dll, but I thought it is better and faster this way, since hh will have additional overhead for other things in its functionality list. I was also interested in some "real" usage of this dll. I plan to dig that page and see if it possible to extend the dll with new functions. Too bad it is written using MFC and I never use it...
Or it can use IE window, even easier... That said, I think it is cool like this. This will surely be a nice presentation of AHK capabilities for new people coming here..

Quote:
Btw. can you tell me what videocodec you used? Because i was like "WTF?!? 60MB?!?" after i unpacked the rar .

No video codec, plain avi recorded using open source CamStudio.
Its just that RAR is multimedia aware, and there is very little going on on the screen, the most is statitic. You can see that ZIP isn't aware. You can also try squezz archive, SQX, witch can pack this video in less then 100K!. You even have a handy plugin for Total Commander for it the good thing is that e-mail clients doesn't recognise it as potentional executable so your attachements will not be removed.

The problem with codecs is this: I always use RAR. I want to use RAR for some "non intesive" videos and sounds like this one. Its good thing to have one packer capable for wide range of "things". SQX in that manner is on the top of the list of all archivers. Only 1 or 2 can pack better but those are not popular at all. SQX is more popular but far far from RAR witch is starndard (almost like zip)


Uhh... where did this gone.. I will chillout now.

Thanx for your comments.
_________________
Back to top
View user's profile Send private message MSN Messenger
majkinetor



Joined: 24 May 2006
Posts: 3615
Location: Belgrade

PostPosted: Wed Oct 04, 2006 12:29 pm    Post subject: Reply with quote

I updated ISense with non-buggy ColorDialog function that is used in ISense Setup.
_________________
Back to top
View user's profile Send private message MSN Messenger
Hacker



Joined: 10 Jun 2006
Posts: 65
Location: Bratislava, Slovakia

PostPosted: Wed Oct 04, 2006 4:15 pm    Post subject: Reply with quote

Hi,
There seems to be a bug - when I simply type a command, followed by a comma and a space, the command is appended to the previous line and sometimes a space is inserted into the command - see video.

TIA
Roman
Back to top
View user's profile Send private message
majkinetor



Joined: 24 May 2006
Posts: 3615
Location: Belgrade

PostPosted: Wed Oct 04, 2006 5:48 pm    Post subject: Reply with quote

This happens to me only in MS Word.

It is trivial thing in question however. It probably depends on your editor.

I will check it out and tell you how to solve it.
_________________
Back to top
View user's profile Send private message MSN Messenger
majkinetor



Joined: 24 May 2006
Posts: 3615
Location: Belgrade

PostPosted: Wed Oct 04, 2006 6:49 pm    Post subject: Reply with quote

2 Hacker
I checked in latest version of SynPlus. It works without such problems here.

If you are interested to help me about this but you can check out and tweek following lines until it works:

Code:
395   ;replace the word
396   if pEndKey = ,
397      Send ^+{LEFT}
398
399   Send ^+{LEFT}
400   SendRaw, %ISense_selection%,%A_SPACE%
401   Sleep 30


This line selects everything up to the beginning of the word with CTRL SHIFT LEFT. If "," was used to evaluate I do it twice. Sleep 30 is there just to allow editor to replace the text. Try to put return statement on 400 to see if selection went good.

I checked out in Word and problem there was in the fact that Word will receive TAB somehow ?! I don't know how that happens, since it is EndKey of Input command, witch is not received by any other editor I tried. Maybe some bug in AHK.

Anyway, if I use "," to evaluate instead "TAB", it works OK. Maybe you should check it out in SynPlus also does it work with "," instead of TAB. IF it does, it is the same problem.
_________________
Back to top
View user's profile Send private message MSN Messenger
majkinetor



Joined: 24 May 2006
Posts: 3615
Location: Belgrade

PostPosted: Wed Oct 04, 2006 7:41 pm    Post subject: Reply with quote

I was checking around with Syn & SynPlus editors and I noticed that CTRL SPACE doesn't work on already typed sentences.

Statement
Code:
      ;get selection
   ControlGetFocus, sel, A
   ControlGet, sel, Selected, ,%tmp%, A


returns empty string in Syn and in SynPlus if run as an plugin. If I run SynPlus standalone I get everything instead selection.... so I guess this is one of those places when AHK can't get the data from 3thd party controls.. Maybe I'll find some workaround.
_________________
Back to top
View user's profile Send private message MSN Messenger
freakkk



Joined: 29 Jul 2005
Posts: 128

PostPosted: Wed Oct 04, 2006 7:51 pm    Post subject: Reply with quote

majkinetor-- This script is excellant!! I plan to use it frequently! I noticed the same effect Hacker mentioned.. but figured it was just cause I'm still using run of mill windows notepad Very Happy I just changed
Code:
Send ^+{LEFT}
..to..
Code:
Send +{HOME}
& that seemed to do the trick for me. I still haven't figured out why this would happen though..
_________________
.o0[ corey ]0o.
Back to top
View user's profile Send private message
majkinetor



Joined: 24 May 2006
Posts: 3615
Location: Belgrade

PostPosted: Wed Oct 04, 2006 9:38 pm    Post subject: Reply with quote

Quote:
I just changed....

Hmm... don't know, it works perfectly on number of computers, I checked Notepad also... It is pretty strate-forward part, like you can see.

Your workout will do, apperently.
_________________
Back to top
View user's profile Send private message MSN Messenger
freakkk



Joined: 29 Jul 2005
Posts: 128

PostPosted: Wed Oct 04, 2006 10:14 pm    Post subject: Reply with quote

OMG; majkinetor-- I'm so sorry.. After playing around some more (& actually reading the 'Help' documentation..) the script works perfectly!! I was hitting ',' after highlighting the selected cmd.. and that was moving up a line. If I use 'tab' it works fine!
Sorry about that! Embarassed
_________________
.o0[ corey ]0o.
Back to top
View user's profile Send private message
Hacker



Joined: 10 Jun 2006
Posts: 65
Location: Bratislava, Slovakia

PostPosted: Thu Oct 05, 2006 2:51 pm    Post subject: Reply with quote

majkinetor,
Hmm, this seems to work for me:
Code:
   ;replace the word
;   if pEndKey = ,
;      Send ^+{LEFT}

   Send ^+{LEFT}
   SendPlay, {Raw}%ISense_selection%,
   if pEndKey != ,
      SendInput, %A_Space%

   Sleep 30


Two Ctrl-Shift-Lefts select the current line and the line above from the end of the line to the end of the last word, so one Ctrl-Shift-Left seems ok.

SendPlay seems to be the only mode where I cannot type a space inside the command, as in "Ms gBox,".

Also, I disabled the second space, at least after a comma, since I am used to typing a space after the comma. Smile

Thanks
Roman
Back to top
View user's profile Send private message
majkinetor



Joined: 24 May 2006
Posts: 3615
Location: Belgrade

PostPosted: Thu Oct 05, 2006 3:24 pm    Post subject: Reply with quote

So, it is definitely editor related problem with specific 3th party controls

I see that it is EditPlus failure this time that I am using as testing editor.
If I have a sentence:
word,

in EditPlus first ctrl shift left will select only comma as it is treated as separate word. In other editors, comma is taken as a part of the word....


Also, there might be consequences of removing that space after comma, but it is very unlikely you will encounter them, since this is used to turn of tooltip when user deletes until the start of the command....


Thanx for your examination. I will add some simple checkings to prevent this - i will first use single ^+{LEFT} then I will check if the selection contains "," or "tab" (like in Editplus and Word), and if so, I will do it again.
That approach should do for weird editors...

2 freakkk


No problem, I am glad it works for you.
_________________
Back to top
View user's profile Send private message MSN Messenger
newrui
Guest





PostPosted: Tue Oct 10, 2006 1:33 pm    Post subject: Reply with quote

Thanks majkinetor! It's working correctly and as everyone have said, it's a wonderful script!
Back to top
Nitrix
Guest





PostPosted: Fri Nov 03, 2006 10:25 pm    Post subject: Reply with quote

This is a really great script !

do you have plans for future enhancements, like the possibility to make it work for different langage ?

i would be amazing for php or css !!

I would pay for it Wink

Cheers, keep up the good work !

Nitrix
Back to top
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, ... 16, 17, 18  Next
Page 2 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