AutoHotkey Community

It is currently May 27th, 2012, 12:15 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 62 posts ]  Go to page Previous  1, 2, 3, 4, 5  Next
Author Message
 Post subject:
PostPosted: January 30th, 2012, 5:31 pm 
Offline

Joined: May 16th, 2011, 2:28 am
Posts: 43
Location: China
AmR09 wrote:
I have noticed that if I type a query too quickly in anything, anything misses some of the characters I type, forcing me to re-type them more slowly so that anything gets my query correctly.

For example, say I want to switch to a chrome window (the web browser) that I have open. If I open anything and type chrome too quickly, anything often only gets crome (or a similar variation) which forces me to undo and retype the full query (i.e. chrome) more slowly. This subtracts value from the goal of quickly switching between windows.

I am not sure if this is a limitation of AutoHotkey or of anything itself, but it looksl ike anything misses some of the characters I type because is too busy searching, sorting or filtering the possibilities from the previous characters. I am wondering if adding a short delay (e.g. 0.5 seconds) before anything displays the result of the search would do the trick.

I have been using anything every day for about two months, and this is perhaps the only major annoyance that I found in the tool. Other than that, the program is fantastic.

this bug is fixed .you can update your source and have a try .


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 30th, 2012, 6:07 pm 
Offline

Joined: May 14th, 2010, 6:09 pm
Posts: 29
Quote:
this bug is fixed .you can update your source and have a try .

Fantastic. I just tried it and the problem went away!!

Unfortunately I just noticed another error right now after testing things more thoroughly. The bug is the following: If I add a key to a window with Ctrl-m, the filtering does not work anymore (i.e. I can type anything but the options anything shows will not be updated accordingly).

The filtering works again as soon as I delete the manually-assigned keys (i.e. pressing Crtl-m again on the the selection).

I don't know if this error was there before, but thanks a lot @jixiuf for your help fixing the previous error.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 30th, 2012, 7:10 pm 
Offline

Joined: May 16th, 2011, 2:28 am
Posts: 43
Location: China
anything-window-switch.ahk
is updated.
and anything-source : anything_window_switcher_with_assign_keys_source is deleted .(don't worry ,anything_window_switcher_source still support assigning key .)


Last edited by jixiuf on February 20th, 2012, 6:30 am, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 30th, 2012, 9:10 pm 
Offline

Joined: May 14th, 2010, 6:09 pm
Posts: 29
Excellent!

By the way I have noticed that the following property is not working anymore in the new version:
Code:
my_anything_properties["anything-execute-action-at-once-if-one"]:="no"

It's odd, I checked the source code in autohotkey.ahk, and the lines that say:
Code:
if matched_candidates.maxIndex() == 1

seem to be checking the property correctly, i.e.:
Code:
if (tmpSources[source_index]["anything-execute-action-at-once-if-one"]="yes")

So I can't tell why it isn't working.

I would love to start helping you fixing things like this, but I am unable to spot this error myself.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 31st, 2012, 3:40 am 
Offline

Joined: May 16th, 2011, 2:28 am
Posts: 43
Location: China
AmR09 wrote:
Excellent!

By the way I have noticed that the following property is not working anymore in the new version:
Code:
my_anything_properties["anything-execute-action-at-once-if-one"]:="no"

It's odd, I checked the source code in autohotkey.ahk, and the lines that say:
Code:
if matched_candidates.maxIndex() == 1

seem to be checking the property correctly, i.e.:
Code:
if (tmpSources[source_index]["anything-execute-action-at-once-if-one"]="yes")

So I can't tell why it isn't working.

I would love to start helping you fixing things like this, but I am unable to
spot this error myself.


fixed ,source is updated.

but I must mention that
anything-execute-action-at-once-if-one and
anything-execute-action-at-once-if-one-even-no-keyword
are anything-source-property,not anything-properties.
so
Code:
my_anything_properties["anything-execute-action-at-once-if-one"]:="no"

doesn't work .
Code:
!Tab::
my_anything_properties:=Object()
my_anything_properties["win_width"]:= 900
my_anything_properties["win_height"]:= 380
my_anything_properties["anything_use_large_icon"]:=1
my_anything_properties["FontSize"]:= 15
 
anything_window_switcher_source["anything-execute-action-at-once-if-one"]:="no"
anything_window_switcher_source["anything-execute-action-at-once-if-one-even-no-keyword"]:="no"

anything_with_properties(anything_window_switcher_source,my_anything_properties)
return


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 2nd, 2012, 12:08 am 
Offline

Joined: May 14th, 2010, 6:09 pm
Posts: 29
Fantastic. Thanks jixiuf for fixing these errors. I am using the most recent version of anything and it just works great.

Your tool is really one of the most useful AutoHotkey scripts I have seen on this site.


Report this post
Top
 Profile  
Reply with quote  
PostPosted: February 17th, 2012, 3:15 pm 
Offline

Joined: August 3rd, 2007, 8:01 am
Posts: 555
Location: Houston, TX
getExplorerAddressPath doesn't work on windows 7 (i have 64bit). Consider using shell Application com object:
Code:
for Item in ComObjCreate("Shell.Application").Windows ; loop through the ShellWindows Collection
   data .=   "Name:`t" Item.LocationName "`n"
         .   "URL:`t"  Item.LocationURL  "`n"


Report this post
Top
 Profile  
Reply with quote  
PostPosted: February 18th, 2012, 5:36 pm 
Offline

Joined: May 16th, 2011, 2:28 am
Posts: 43
Location: China
Code:
getExplorerAddressPath()               
{
        Critical
        Obj:=ComObjCreate("Shell.Application")
        for objWin in obj.Windows
        {
                ForegroundWindow:=DllCall("GetForegroundWindow")
                If (InStr(objWin.FullName, "explorer.exe") && (objWin.hwnd=ForegroundWindow))
                        return, RegExReplace(RegExReplace(UrlUnEscape(objWin.LocationURL),"file:///",""),"/","\")
;                Else if (InStr(objWin.FullName, "iexplore.exe") && (objWin.hwnd=ForegroundWindow))
;                        return, """iexplore.exe""" " "objWin.LocationURL
        }
        ObjRelease(Object(obj))
}
UrlUnEscape(url)                ;
{
   VarSetCapacity(newUrl,500,0),pcche:=500
   DllCall("shlwapi\UrlUnescapeW", Str,url, Str,newUrl, UIntP,pcche, UInt,0x10000000)
   Return newUrl
}


Code:
getExplorerAddressPath()
{
    WinGetText,full_path,A
    StringSplit,word_array,full_path,`n
    full_path:= word_array1
    Pos :=InStr(full_path,":\")
    if(Pos>0)
    {
        path2:= SubStr(full_path,Pos-1,1) . SubStr(full_path,Pos)
    }
    StringReplace, path2, path2, `r, , all
    return path2
}

source is updated ,But I never test it on window7


Last edited by jixiuf on May 3rd, 2012, 12:14 pm, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 19th, 2012, 7:15 pm 
Offline

Joined: May 16th, 2011, 2:28 am
Posts: 43
Location: China
new anything-source
https://github.com/jixiuf/my_autohotkey ... anager.ahk

https://github.com/jixiuf/my_autohotkey ... rvices.ahk

anything-process-manager.ahk is a process manager you can use it kill
selected process or change the priority of selected process


anything-services.ahk is a Windows Services Manager ,just like services.msc

you can start or stop a service ,
change a service start type to : "Boot" "System" "Automatic" "Manual" "Disabled"

and anything.ahk anything-config.ahk is updated .


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 28th, 2012, 4:20 pm 
Offline

Joined: May 14th, 2010, 6:09 pm
Posts: 29
I was wondering if there is a property in anything that controls the maximum length of the strings displayed in the menu.

For example, for the windows switcher application, sometimes I have an explorer window open in a very deep path, e.g.:

C:/a/b/c/../../../../../../this/is/a/very/long/path/.../

but at the moment anything would only display:

EXPLORER_C:/a/b/c/../../../../../../

trimming the string to 96 characters (104 including the word EXPLORER_), leaving out the rest of the path (the path above is just an illustrative example).

I have changed the parameters win_width and win_height to accomodate long paths, but anything still trims the strings when they are very long.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 29th, 2012, 5:23 am 
Offline

Joined: May 16th, 2011, 2:28 am
Posts: 43
Location: China
@AmR09
I didn't write any code trimming the candidate. ListView trim it automically.

anything.ahk anything-window-swither.ahk
anything-explorer-history.ahk
anything-favorite-directories.ahk
is update .
I add an "onselect" event for each anything-source above.

and show the candidate on the statusbar at the same time .


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 1st, 2012, 7:28 pm 
Offline

Joined: May 14th, 2010, 6:09 pm
Posts: 29
Thanks @jixiuf!

I just updated my anything to the latest version.

Do you know if there is a way to get ListView to not trim the strings? Sometimes I want to filter items in the menu with words that appear at the end of a very long string, but I can't do it because the strings are trimmed.

For example, if I have these two items in the menu:

C/this/is/a/very/long/path/foo
C/this/is/a/very/long/path/bar

I would like to be able to choose between them by typing foo or bar, but at the moment I can't because the strings are trimmed.

Thanks again


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 2nd, 2012, 8:31 am 
Offline

Joined: May 16th, 2011, 2:28 am
Posts: 43
Location: China
AmR09 wrote:
Thanks @jixiuf!

I just updated my anything to the latest version.

Do you know if there is a way to get ListView to not trim the strings? Sometimes I want to filter items in the menu with words that appear at the end of a very long string, but I can't do it because the strings are trimmed.

For example, if I have these two items in the menu:

C/this/is/a/very/long/path/foo
C/this/is/a/very/long/path/bar

I would like to be able to choose between them by typing foo or bar, but at the moment I can't because the strings are trimmed.

Thanks again

you can use foo bar to choose ,though you can not see the trimmed string.
maybe you can set fontsize with a small value
Code:
my_anything_properties2:=Object()
my_anything_properties2["anything_use_large_icon"]:=0
my_anything_properties2["FontSize"]:= 12
 anything_multiple_sources_with_properties(anything-sourcess,my_anything_properties2)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 7th, 2012, 10:24 am 
Offline

Joined: May 16th, 2011, 2:28 am
Posts: 43
Location: China
some file is updated . make it work better on win7


Report this post
Top
 Profile  
Reply with quote  
PostPosted: May 3rd, 2012, 12:17 pm 
Offline

Joined: May 16th, 2011, 2:28 am
Posts: 43
Location: China
anything-explorer-history.ahk is updated

getExplorerAddressPath()
is rewrited .
now it do not use COM any more, so when you close the Explorer, you would not get any Error .

and it should support win7 now .


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 62 posts ]  Go to page Previous  1, 2, 3, 4, 5  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: fincs and 7 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group