 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
freakkk
Joined: 29 Jul 2005 Posts: 128
|
Posted: Wed Jul 16, 2008 3:47 am Post subject: |
|
|
| J_P wrote: | | I'm using textpad, I start to type in a word, and nothing happens, I hit control space and i see the code tries to read the first three characters but then nothing else happens. | That editor didn't happen to be one of the ones ISense was set to auto-detect. That twitching you saw was it using default GetLineMethod if one wasn't specified for that editor (apparently didn't cut it..).
I added TextPad, and downloaded & tested with TextPad version 5.2; Seems to work fine. Please give another shot..
>> Download << _________________ .o0[ corey ]0o. |
|
| Back to top |
|
 |
majkinetor
Joined: 24 May 2006 Posts: 3626 Location: Belgrade
|
Posted: Wed Jul 16, 2008 11:53 am Post subject: |
|
|
There is no problem with original rar archive. Above people unpacked archive without perserving file paths.
L2 use computer. _________________
 |
|
| Back to top |
|
 |
dyuhas
Joined: 31 Dec 2007 Posts: 6
|
Posted: Wed Jul 16, 2008 4:49 pm Post subject: Needless antagonism? |
|
|
| majkinetor wrote: | | L2 use computer. |
What arrogance!
I had to find a .rar unpacker for use with the isense archive; I've never seen a .rar archive. Happens that the one I found (SuperNZB) doesn't support paths.
L2 play nice with others. |
|
| Back to top |
|
 |
J_P Guest
|
Posted: Wed Jul 16, 2008 6:09 pm Post subject: |
|
|
| freakkk wrote: |
I added TextPad, and downloaded & tested with TextPad version 5.2; Seems to work fine. Please give another shot..
|
thanks.
here's what I get.
1] The problem still occurs when I start typing in column 1. No pop-up window available. If I start typing in column 2 or higher, than pop-up window kicks in.
2] The control-space command still wants to read all the way back to column 1, regardless of where the user is typing in the row. My understanding is that the control-space should only go back to the beginning of the current-word characters, i.e., back to the nearest previous space. I believe that is obtained with a "control + left-arrow" key combination.
3] the second time I close the pop-up window with the "x" button, it also shuts down Isense completely.
4] I cannot scroll down in the pop-up list with the mouse. once the mouse leaves the scroll bar, the window collapses making selection impossible.
5] I still hope to make this work with the ASP help file, but so far Isense can't read the MS asp.chm file. I'm not sure why the .chm files aren't working consistently.
It would be nice if the setup prompted for the location of the desired help file. usage details can be worked on later.
6] Sometimes Isense hangs. then Isense fails and must be reloaded. I can't find a good pattern. Seems to be related to whether the file in use has been saved (?) |
|
| Back to top |
|
 |
majkinetor
Joined: 24 May 2006 Posts: 3626 Location: Belgrade
|
Posted: Wed Jul 16, 2008 7:13 pm Post subject: |
|
|
2 Mr Anderson
Oh, a chance to entertain a bit with relaxed chit-chat. I always like that
| Quote: | What arrogance!
I had to find a .rar unpacker for use with the isense archive; |
WoW! U had to find an unpacker. I can imagine what tremendeous job that was.
Arrogance you say ?
You don't think that its arrogance to request something from people that gave you something for free, indulge your wishes, listen to your problems, something as trivial as archive format? Sorry mate, in my world that can be pretty much characterized as non-respectful, lame, arrogant .... You didn't even ask for recommendations about what unpacker to use to correctly unpack archive in question (lets not take into consideration that one of the people above told all of you to use 7zip) but you simply demanded another archive. Luckily for folks like you, freakkk has a big heart and some extra time to spend in vain <3
| Quote: | | I've never seen a .rar archive |
L2 use computers
Its the most common format on PC after lame zip format.
| Quote: | | L2 play nice with others. |
I am learning, ok ?
2 J_P
If you have too much troubles with latest Isense perhaps you should revert to older version, they are all available in history. I expected some problems with some editors after massive changes done in v1.5.1+
I also noticed column 1 bug and hanging. You could add hotkey to reload in the source for the 2nd case. I hope this will be fixed soon. Other things you mention are by design.
Cheers and have fun. _________________
 |
|
| Back to top |
|
 |
engunneer
Joined: 30 Aug 2005 Posts: 6772 Location: Pacific Northwest, US
|
Posted: Wed Jul 16, 2008 9:56 pm Post subject: |
|
|
IMHO, 7-zip is an excellent archive tool that integrates well with windows and can handle all common and many uncommon archive formats (.zip, .rar, .tar, .bz2, etc.)
you could also try WinRAR which is the native .rar application, but I did not like it as much as 7-zip. Both work fine, it is just preference. _________________
Unless otherwise noted, all code is untested.
Common Answers: 1.(Loops, Viruses, etc.) 2. Search 3.RTFM |
|
| Back to top |
|
 |
Krogdor
Joined: 18 Apr 2008 Posts: 903 Location: The Interwebs
|
Posted: Wed Jul 16, 2008 10:37 pm Post subject: |
|
|
Hey, wonderful script Just two things I would like to address...
First off, is there some way I could tweak your code to make it so that the commands don't have to come at the start of a line to activate ISense? Since I would like it to activate even for functions that are in another line. If you could perhaps give me some direction on where in the code I could change this, I would appreciate it.
And just one other thing—using Notepad, I get some... slightly strange behavior. When I have it autocomplete a command for me, it puts the entire command in addition to what I've already typed. So for example, if I type Msg and then hit tab when MsgBox is selected, I end up with MsgMsgBox. This is a bug?
Also, I'm using 1.5.4... when I went to download that was what was there, so I'm assuming there's a new version out and this topic hasn't been updated yet?
Edit: Turns out the behavior with in my second issue only occurs with tabs, not commas. So, Msg{Tab} results in MsgMsgBox, but Msg, results in MsgBox, |
|
| Back to top |
|
 |
freakkk
Joined: 29 Jul 2005 Posts: 128
|
Posted: Thu Jul 17, 2008 4:13 am Post subject: |
|
|
2 J_P
So it looks like majkinetor already covered the issues you described. I just wanted to throw some extra commentary on the issues you mentioned, & ask some more info..
| J_P wrote: | | 1] The problem still occurs when I start typing in column 1. No pop-up window available. If I start typing in column 2 or higher, than pop-up window kicks in. | I'm not sure I understand this one. Do you mean it doesn't respond, & if u hit space (to put cursor in column 2)- it will start to respond? In ISense, the space, tab & enter key clear ISenses buffered knowledge of current line (take a look at Usage section on wiki..). If you start ISense, & then hit enter from TextPad-- doesn't it respond then when you start to type a command? Another way to check is to uncomment 1st line of script (Isense_trace := true); should say monitoring... in tooltip.
| J_P wrote: | | 2] ..My understanding is that the control-space should only go back to the beginning of the current-word characters, i.e., back to the nearest previous space. I believe that is obtained with a "control + left-arrow" key combination. |
This would be true if all ISense was monitoring on re-evaluation was the first word.
The great thing is that ISense will evaluate from anywhere on line, to show which param your at. This requires it to take a look at entire line prior to cursor position, rather than just the previous word | Code: | | MsgBox, 1, my title, |, 10 |
It can evan re-evaluate for expressions within expressions
| Code: | | RegExMatch( SubStr( string, |20 ), ) |
| J_P wrote: | 3] the second time I close the pop-up window with the "x" button, it also shuts down Isense completely.
4] I cannot scroll down in the pop-up list with the mouse. once the mouse leaves the scroll bar, the window collapses making selection impossible. | As maj mentioned above, these are definately by design. This is more of a keyboard centric type app; as your typing your commands- in autocomplete fashion commands are displayed for your use & abuse. The thought of fumbling around to grab mouse makes me cringe (especially since my mouse batteries died 4 days ago )
While I agree that the scrollwheel scrolling through commands would be a nice interface feature, I think that maybe your missing the point of an autocomplete type script a lil. If you wanna close any of the popups- escape key works beautifully.
| J_P wrote: | | 5] I still hope to make this work with the ASP help file, but so far Isense can't read the MS asp.chm file. I'm not sure why the .chm files aren't working consistently. | Not yet! Language independence is THE GOAL. It's not to that point yet though (unfortunately..). Look forward to future versions where languages, & respective methods for everything will be separate plugins.
That is where things will get really interesting; having separate branches for languages (& editors) will allow unlimited customization with how & where this script is used.
| J_P wrote: | | 6] Sometimes Isense hangs. then Isense fails and must be reloaded. I can't find a good pattern. Seems to be related to whether the file in use has been saved (?) | If you do find pattern and a consistant way to reproduce issue- do tell. Evan better- report on issues. There was one bug I found (that I created BTW), that would cause ISense to occasionally hang-- but I thought I had fixed.
2 Krogdor
| Krogdor wrote: | | is there some way I could tweak your code to make it so that the commands don't have to come at the start of a line to activate ISense? Since I would like it to activate even for functions that are in another line | Not sure I'm following here. Do you mean if a command is indented they aren't re-evaluating when u hit the hotkey? (its supposed to..) Or-- do you mean for functions that are spanned across multiple lines they aren't re-evaluating?
| Code: | RegExMatch( haystack
, needle
, |
, pos ) |
That would be awesome- but not availiable yet...
| Krogdor wrote: | | using Notepad, I get some... slightly strange behavior. When I have it autocomplete a command for me, it puts the entire command in addition to what I've already typed. So for example, if I type Msg and then hit tab when MsgBox is selected, I end up with MsgMsgBox. This is a bug? | It definately isn't intentional!
Thank you for providing such a clear cut explanation of the issue, & further on how reproduce. However, notepad seems to be working fine when I try it using tab or comma. Evan more strange is that whether you hit tab or comma-- is all handled in same Isense_EEvaluate() function, so I don't see how one would work for you- but the other wouldn't I tried a bunch of times- but can't seem to reproduce a bug. Do you think there could be some other script or hotkey you are running that could be possibly interfering?
| majkinetor wrote: | | ..freakkk has a big heart.. | Too too kind.. Thx! Not true though- unfortunately.. I actually feed off evil & sarcasm-- so watch out; I can be a fierce bastard
| majkinetor wrote: | | I expected some problems with some editors after massive changes done in v1.5.1+ | Tis true that I took script backwards a few steps as far as customization of editor methods; Hopefully not too much longer though. I will try to add a wiki page with all of my notes on currently supported editors- along with known bugs. _________________ .o0[ corey ]0o. |
|
| Back to top |
|
 |
Krogdor
Joined: 18 Apr 2008 Posts: 903 Location: The Interwebs
|
Posted: Thu Jul 17, 2008 6:23 am Post subject: |
|
|
| freakkk wrote: | Not sure I'm following here. Do you mean if a command is indented they aren't re-evaluating when u hit the hotkey? (its supposed to..) Or-- do you mean for functions that are spanned across multiple lines they aren't re-evaluating?
| Code: | RegExMatch( haystack
, needle
, |
, pos ) |
That would be awesome- but not availiable yet... |
No, sorry for not being clear enough. Let me give an example.. In the case:
MsgBox, % LV_GetText()
or
SomeVar := LV_GetCount()
The functions wouldn't activate ISense, since they're not at the start at the line. I think this is intended behavior, but I was wondering if it would be possible to change that.
| freakkk wrote: |
Thank you for providing such a clear cut explanation of the issue, & further on how reproduce. However, notepad seems to be working fine when I try it using tab or comma. Evan more strange is that whether you hit tab or comma-- is all handled in same Isense_EEvaluate() function, so I don't see how one would work for you- but the other wouldn't I tried a bunch of times- but can't seem to reproduce a bug. Do you think there could be some other script or hotkey you are running that could be possibly interfering? |
Alright, I turned off all scripts besides ISense--and got the same behavior. And now I just tried it in PSPad, and it was happening with both comma and tab ><
However, looking through the source code I see this commented out piece of code:
| Code: | cntDelete := StrLen(ISense_lastWord) + 1
if pEndKey = Click
cntDelete--
SendInput, {Backspace %cntDelete%} |
By commenting out the ^+{Left} stuff and uncommenting that part, I got it to work So I guess... I'll just use the backspace method. |
|
| Back to top |
|
 |
J_P Guest
|
Posted: Thu Jul 17, 2008 4:49 pm Post subject: |
|
|
| Quote: | | I'm not sure I understand this one. Do you mean it doesn't respond, & if u hit space (to put cursor in column 2)- it will start to respond? |
Yes
| Quote: | | This would be true if all ISense was monitoring on re-evaluation was the first word. |
How is it then possible to use auto-complete more than once per line ?
| Quote: | | This is more of a keyboard centric type app |
In TextPad, if I select from the auto-complete pop-up window with the down-arrow and then hit the enter key, nothing is transferred to the page . Instead the cursor simply moves to a new line.
To get it to work, I have to scroll down with the arrow key and then select with the mouse, so I still have to use the mouse (?)
| Quote: | | Not yet! Language independence is THE GOAL. |
Actually, language change is available now. Simply modify the content of the commands.txt file. That's what I did for ASP autocompletion.
The remaining problem is to identify why different help files don't kick in the same way. |
|
| Back to top |
|
 |
majkinetor
Joined: 24 May 2006 Posts: 3626 Location: Belgrade
|
Posted: Fri Jul 18, 2008 12:33 pm Post subject: |
|
|
| Quote: | | The remaining problem is to identify why different help files don't kick in the same way. |
The Isense has hardocded AHK help file properties, thats why.
To handle all chm files the same way, some other mechanism is needed.
My plan is to enable internet help and way to customize it via regex describing how to get URL from command name. Exactly the same can be done with chm. _________________
 |
|
| Back to top |
|
 |
scottmattes
Joined: 21 May 2007 Posts: 61 Location: USA
|
Posted: Fri Jul 18, 2008 3:00 pm Post subject: |
|
|
I downloaded ISense 1.5.4 yesterday (I can use the help learning ahk) and
I am using it with Notepad++ 5.0, but nothing is happening. I type 'file' and nothing, hit ctl-enter and nothing.
I also tried it on pspad and notepad, nothing (well, in pspad I see the flicker when I do ctl-enter).
Have I forgotten to do some setup chore? _________________ -------------
Scott Mattes |
|
| Back to top |
|
 |
freakkk
Joined: 29 Jul 2005 Posts: 128
|
Posted: Fri Jul 18, 2008 7:18 pm Post subject: |
|
|
| Krogdor wrote: | No, sorry for not being clear enough. Let me give an example..
| Code: | MsgBox, % LV_GetText()
or
SomeVar := LV_GetCount() | |
Ahh.. yea. That is a good example of level of customization that will be possible once all language specific code is moved into its own respective plugin.
For now- if you wanna take a stab at tweaking for ur own use, take a look in Isense_HandleSelection(); The loop is responsible for re-evaluating line (maybe u can add some more robust LangRE code than I did )
| Krogdor wrote: | By commenting out the ^+{Left} stuff and uncommenting that part, I got it to work So I guess... I'll just use the backspace method | I still can't get issue to reproduce
I'm glad you found that commented out code, & glad that it works for you.
| J_P wrote: |
| Quote: | | I'm not sure I understand this one. Do you mean it doesn't respond, & if u hit space (to put cursor in column 2)- it will start to respond? |
Yes |
| Usage section wrote: | Usage
To make ISense monitoring your input, title of your editor window must have word ".ahk" somewhere and you must press SPACE, TAB or ENTER. After typing 3 letters Info window will be shown. It contains AHK commands starting with letters you typed. If you continue to type Info window will repopulate commands in the list based on the last letters you typed. The list will be returned to previous state when you delete charachters.
| I think your starting ISense, activating your editor, & then starting to type your command; This is wrong. As doc said- you have to hit SPACE, TAB, or ENTER to start the monitoring process.
| J_P wrote: | | Quote: | | This would be true if all ISense was monitoring on re-evaluation was the first word. |
How is it then possible to use auto-complete more than once per line ? |
| Usage section also wrote: | | To cancel any ISense window at any moment pres ESC, or move around the code. |
If the parameter tracking or help documentation windows are showing, you need to press ESC key, & then SPACE again to start monitoring process again.
| J_P wrote: | In TextPad, if I select from the auto-complete pop-up window with the down-arrow and then hit the enter key, nothing is transferred to the page . Instead the cursor simply moves to a new line.
To get it to work, I have to scroll down with the arrow key and then select with the mouse, so I still have to use the mouse (?) |
| Again, usage section wrote: | | While Info window is visible, use arrows, pgup, pgdn, home & end to select the desired command. Press TAB or COMMA, or CLICK to evaluate the selection. If you don't select anything first command in the Info window will be evaluated. | When your commands are showing, press TAB, COMMA, or CLICK to use the highlighted ones (not enter; remember, enter is one of the keys used to clear buffer...)
| scottmattes wrote: | I downloaded ISense 1.5.4 yesterday (I can use the help learning ahk) and
I am using it with Notepad++ 5.0, but nothing is happening. I type 'file' and nothing | Please read Usage section to yourself, or my above cliffnotes version
Thinking the issue u are having is either you are trying to edit a file that doesn't have .ahk in title, or u are having same confusion on how to get it monitoring your keyboard input properly.
| scottmattes wrote: | | I also tried it on pspad and notepad, nothing (well, in pspad I see the flicker when I do ctl-enter). | By default, CTRL SPACE is the shortcut to re-evaluate an already typed line of code. _________________ .o0[ corey ]0o. |
|
| Back to top |
|
 |
scottmattes
Joined: 21 May 2007 Posts: 61 Location: USA
|
Posted: Fri Jul 18, 2008 8:27 pm Post subject: |
|
|
freakkk,
OK, it was the later problem (started ISense, but didn't do the space/enter thing before typing ahk commands.
My first tests were with 'ifwin' and I found that both of the IfWinNot entries do not find the page to display (the page cannot be display).
Thank you for setting me straight - now to investigate this tool indepth _________________ -------------
Scott Mattes |
|
| Back to top |
|
 |
scottmattes
Joined: 21 May 2007 Posts: 61 Location: USA
|
Posted: Fri Jul 18, 2008 8:38 pm Post subject: |
|
|
freakkk,
after i type the 3 characters and the selection window shows and i click on which i want the parameter window (the one that appears above the line) looks something like this
[ , , ,
what might i be doing wrong?
btw, i have looked at the usage page for this one. _________________ -------------
Scott Mattes |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|