| View previous topic :: View next topic |
| Author |
Message |
Sandeep
Joined: 29 Nov 2004 Posts: 10
|
Posted: Tue Nov 30, 2004 6:46 am Post subject: A little issue |
|
|
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
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 |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10467
|
Posted: Tue Nov 30, 2004 12:51 pm Post subject: |
|
|
| 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 |
|
 |
keyboardfreak
Joined: 09 Oct 2004 Posts: 135 Location: Budapest, Hungary
|
Posted: Tue Nov 30, 2004 2:48 pm Post subject: |
|
|
| 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? ) |
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 |
|
 |
keyboardfreak
Joined: 09 Oct 2004 Posts: 135 Location: Budapest, Hungary
|
Posted: Tue Nov 30, 2004 2:57 pm Post subject: |
|
|
| 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.  |
|
| Back to top |
|
 |
keyboardfreak
Joined: 09 Oct 2004 Posts: 135 Location: Budapest, Hungary
|
Posted: Tue Nov 30, 2004 3:18 pm Post subject: Re: A little issue |
|
|
| 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 |
|
 |
Sandeep
Joined: 29 Nov 2004 Posts: 10
|
Posted: Tue Nov 30, 2004 4:54 pm Post subject: |
|
|
Besides so many other windowing commands, it does affect WinActivate also! _________________ Sandeep |
|
| Back to top |
|
 |
Guest
|
Posted: Tue Nov 30, 2004 5:03 pm Post subject: |
|
|
| Sandeep wrote: | | Besides so many other windowing commands, it does affect WinActivate also! |
Yes, of course. 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
|
Posted: Sun Dec 05, 2004 8:55 am Post subject: |
|
|
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 |
|
 |
keyboardfreak
Joined: 09 Oct 2004 Posts: 135 Location: Budapest, Hungary
|
Posted: Sun Dec 12, 2004 9:11 pm Post subject: |
|
|
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 |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10467
|
Posted: Sun Dec 12, 2004 10:22 pm Post subject: |
|
|
| Nice improvements. I'll be sure to use the latest version when posting this on the web site. |
|
| Back to top |
|
 |
Soapspoon
Joined: 23 Nov 2004 Posts: 8
|
Posted: Tue Dec 14, 2004 12:08 am Post subject: Amazing! |
|
|
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 |
|
 |
jonny
Joined: 13 Nov 2004 Posts: 3004 Location: Minnesota
|
Posted: Tue Dec 14, 2004 12:35 am Post subject: |
|
|
| 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 |
|
 |
Tekl
Joined: 24 Sep 2004 Posts: 813 Location: Germany
|
Posted: Wed Dec 15, 2004 11:47 pm Post subject: |
|
|
Really cool script. I also sometimes hit accidently the capslock, so I don't like the script on this key.
Tekl |
|
| Back to top |
|
 |
keyboardfreak
Joined: 09 Oct 2004 Posts: 135 Location: Budapest, Hungary
|
Posted: Thu Dec 16, 2004 8:14 am Post subject: |
|
|
| 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 |
|
 |
keyboardfreak
Joined: 09 Oct 2004 Posts: 135 Location: Budapest, Hungary
|
Posted: Sun Dec 19, 2004 9:17 pm Post subject: |
|
|
This update fixes the remaining issues. I hope I haven't introduced too many new ones.
- 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 |
|
 |
|