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 

Incrementally switch between windows
Goto page Previous  1, 2, 3, 4 ... 9, 10, 11  Next
 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
Sandeep



Joined: 29 Nov 2004
Posts: 10

PostPosted: Tue Nov 30, 2004 6:46 am    Post subject: A little issue Reply with quote

Your script works great and it is very useful.
As so many other followers I am trying to unlearn the bad habit of Alt-Tab Sad

A little issue I faced with my attempts of using it.
It looks like you have done this intentionally but if I set SetTitleMatchMode to 2 (as in your script), then if a window title is completely included in some other window e.g.
First Window) Windows Explorer pointing to AutoHotKey folder and "Display full path in the title bar" is unchecked, all you see is AutoHotKey in the title bar (I prefer this setting).
Second Window) Internet Explorer pointing to AutoHotKey.com.
Then the window selection is quite unpredictable.
I have changed SetTitleMatchMode to 3 in my script. What is your opinion?
_________________
Sandeep
Back to top
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Tue Nov 30, 2004 12:51 pm    Post subject: Reply with quote

jonny wrote:
It would be really neato to have window thumbnails, like the kind you get when you hover a kasbar item. I know this is a real long shot, but is that possible? Possibly using PrintScreen and the clipboard? That would also be something cool to make using the taskbar. (i.e. on hover a taskbar item, show a screenshot of the window)
I remember seeing an example on MSDN about how to replace the Alt-tab handler with something like this. I think rather than showing the alt-tab menu, it showed miniaturized versions of all the windows.

I don't think it would be easy to do with AutoHotkey now, but there is a plan to add screen-to-clipboard capturing in the future. Perhaps this can be expanded to include window-to-clipboard.
Back to top
View user's profile Send private message Send e-mail
keyboardfreak



Joined: 09 Oct 2004
Posts: 135
Location: Budapest, Hungary

PostPosted: Tue Nov 30, 2004 2:48 pm    Post subject: Reply with quote

jonny wrote:
Whoa... I figured after I posted here I should at least try this out, and I was taken aback by this script's resemblance to SlickSwitch. (Separated at birth? Very Happy)

It really seems pretty similar to iswitchw according to the description. I didn't know about Slickswitch, I got the idea from Emacs. I've been using incremental buffer switching in it for years and it has this feature since 1996.
Back to top
View user's profile Send private message
keyboardfreak



Joined: 09 Oct 2004
Posts: 135
Location: Budapest, Hungary

PostPosted: Tue Nov 30, 2004 2:57 pm    Post subject: Reply with quote

jonny wrote:
I just had a (maybe) great idea. If anyone here's used a Linux system, you're probably familiar with the Kasbar. It would be really neato to have window thumbnails, like the kind you get when you hover a kasbar item. I know this is a real long shot, but is that possible?

Maybe you should give my naive Expose implementation a try. It's only a toy, but fun. Smile
Back to top
View user's profile Send private message
keyboardfreak



Joined: 09 Oct 2004
Posts: 135
Location: Budapest, Hungary

PostPosted: Tue Nov 30, 2004 3:18 pm    Post subject: Re: A little issue Reply with quote

Sandeep wrote:
I have changed SetTitleMatchMode to 3 in my script. What is your opinion?

I can't try it, since I'm not on Windows at the moment, but I think title match mode affects only the WinGet command in the script which should collect all visible Windows on the screen. How does your change affect the collection of visible windows?
Back to top
View user's profile Send private message
Sandeep



Joined: 29 Nov 2004
Posts: 10

PostPosted: Tue Nov 30, 2004 4:54 pm    Post subject: Reply with quote

Besides so many other windowing commands, it does affect WinActivate also!
_________________
Sandeep
Back to top
View user's profile Send private message
Guest






PostPosted: Tue Nov 30, 2004 5:03 pm    Post subject: Reply with quote

Sandeep wrote:
Besides so many other windowing commands, it does affect WinActivate also!

Yes, of course. Smile I should have been a bit more clear.

I meant that title match mode should affect only WinGet in the script beside WinActivate. And if collecting the visible windows works fine with title match mode set to 3 then this is the way to go.
Back to top
keyboardfreak



Joined: 09 Oct 2004
Posts: 135
Location: Budapest, Hungary

PostPosted: Sun Dec 05, 2004 8:55 am    Post subject: Reply with quote

New release.

Changes:

  • Using exact title match setting to avoid faulty activation when a window's title contains the title of an other window.
    Thanks Sandeep!
  • Added option for digit shortcuts if there are ten or less windows in the list.
    Thanks to Guest for the suggestion.

Edit: See the latest version of the script in the first post.


Last edited by keyboardfreak on Fri Jan 07, 2005 7:51 pm; edited 1 time in total
Back to top
View user's profile Send private message
keyboardfreak



Joined: 09 Oct 2004
Posts: 135
Location: Budapest, Hungary

PostPosted: Sun Dec 12, 2004 9:11 pm    Post subject: Reply with quote

A few improvements:

  • The switcher window is always on top. The keyboard focus is grabbed when the switcher is activated and it can be confusing that the keyboard seemingly does not work when the switcher window is behind other windows.
  • GUI close event is handled to avoid leaving the keyboard grabbed when the switcher is closed with the mouse.
  • Added first letter match mode where the typed search string must match the first letter of words in the window title (only alphanumeric characters are taken into account)

    For example, the search string "ad" matches both of these titles:

    AutoHotkey - Documentation
    Anne's Diary

    Thanks to Soapspoon for the idea.

  • Added option for activating the currently selected window in the background, so that the user can see which window will be activated. The background activation can be immediate or delayed (by default 300 ms).

Edit: See the latest version of the script in the first post.


Last edited by keyboardfreak on Fri Jan 07, 2005 7:52 pm; edited 1 time in total
Back to top
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Sun Dec 12, 2004 10:22 pm    Post subject: Reply with quote

Nice improvements. I'll be sure to use the latest version when posting this on the web site.
Back to top
View user's profile Send private message Send e-mail
Soapspoon



Joined: 23 Nov 2004
Posts: 8

PostPosted: Tue Dec 14, 2004 12:08 am    Post subject: Amazing! Reply with quote

After attempting to make my own stuff with AHK, I'm just unbelievably impressed with this script. I can't believe you added incremental searching! I don't really understand HOW the code works, but I'll be poring over it to learn from you.

Very nice. Thanks once again, this rocks!
Back to top
View user's profile Send private message
jonny



Joined: 13 Nov 2004
Posts: 3004
Location: Minnesota

PostPosted: Tue Dec 14, 2004 12:35 am    Post subject: Reply with quote

If you like learning by example, Soapspoon, you might also want to check out the Script Showcase. It has many excellent scripts that are tried and true, and very helpful in learning more about AHK. Some of the scripts are pretty darn useful, too! Also, browsing old forum topics is a good way to learn too, following the development/support process and finding out how people make scripts and fix bugs, etc. Almost every technique I use has either been learned on the forum here, or from the amazingly helpful Command Reference.
Back to top
View user's profile Send private message
Tekl



Joined: 24 Sep 2004
Posts: 813
Location: Germany

PostPosted: Wed Dec 15, 2004 11:47 pm    Post subject: Reply with quote

Cool Really cool script. I also sometimes hit accidently the capslock, so I don't like the script on this key.

Tekl
Back to top
View user's profile Send private message Visit poster's website
keyboardfreak



Joined: 09 Oct 2004
Posts: 135
Location: Budapest, Hungary

PostPosted: Thu Dec 16, 2004 8:14 am    Post subject: Reply with quote

Tekl wrote:
I also sometimes hit accidently the capslock, so I don't like the script on this key.

There are three conditions the default activation key should meet:

  • It should be a single key, not a key combination. Switching between windows is one of the most frequent operations, so the activation of the switcher should be as quick and efficient as possible.
  • It should be a key which can be found on all kinds of keyboards (101 key, laptop, etc.)
  • It should be a key which is not often used for its original purpose, so it's only a minor inconvenience if its binding is changed.

CapsLock meets the above conditions: it's a big, easy to hit key and I don't know too many people who use it for its original purpose. Typing longer strings of uppercase characters is rarely needed in everyday computing.

That's why I chose CapsLock which I think is suitable for most of the users. Those who don't like it are free to change it to anything else in their copy of the script.
Back to top
View user's profile Send private message
keyboardfreak



Joined: 09 Oct 2004
Posts: 135
Location: Budapest, Hungary

PostPosted: Sun Dec 19, 2004 9:17 pm    Post subject: Reply with quote

This update fixes the remaining issues. I hope I haven't introduced too many new ones. Smile

  • Windows are activated by id, not by title. No more messing with title match mode, no more problems with windows having the same title, etc.
  • Windows with pipe (|) character are handled properly. The pipe characters are simply replaced with dash (-) characters. It causes no problems, since windows are not activated by title anymore.
  • If activation in background is enabled the selected window is not activated when the switcher is invoked. Sometimes it was confusing when the active window was changed right after the switcher window appeared.

Edit: See the latest version of the script in the first post.


Last edited by keyboardfreak on Fri Jan 07, 2005 7:53 pm; edited 1 time in total
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 ... 9, 10, 11  Next
Page 3 of 11

 
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