AutoHotkey Community

It is currently May 27th, 2012, 11:57 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 169 posts ]  Go to page Previous  1, 2, 3, 4, 5 ... 12  Next
Author Message
 Post subject:
PostPosted: December 25th, 2005, 7:00 pm 
Offline

Joined: August 24th, 2005, 5:17 pm
Posts: 1237
New version:

http://www.autohotkey.net/~evl/AltTab/AltTab.ahk


Last edited by evl on January 27th, 2006, 2:57 pm, edited 2 times in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 26th, 2005, 11:44 am 
@evl: I get the following errormessage when running your new version (unchanged):

Quote:
Error at line 838.

Line Text: ;
Error: The first character above is illegal in an expression.

The program will exit.


?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: December 26th, 2005, 11:09 pm 
Offline

Joined: August 24th, 2005, 5:17 pm
Posts: 1237
@daonlyfreez:
I downloaded the file to double-check but it runs fine on 2 computers - I'm running Version 1.0.40.09. Which version are you running?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 27th, 2005, 11:56 am 
@evl:

I'm trying to run it on 2K with SP4, AHK version 1.0.40.11. I do a literal copy-paste of your code, don't change anything, and still get the same errormessage...


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: December 27th, 2005, 1:23 pm 
Offline

Joined: August 24th, 2005, 5:17 pm
Posts: 1237
@daonlyfreez:
I've just installed version 1.0.40.11 and that's not the cause of the problem.

Have you tried right-clicking on the download link and saving the ahk file directly? There may be a formatting/wrapping problem if you're copying and pasting anything.

The only other thing I can think of is that there's something in the code (e.g. DllCall) which is WinXP specific.

Maybe someone else can comment on if they have any problems, as unfortunately I don't have access to any Windows 2000 computers?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 27th, 2005, 2:12 pm 
:? a 'Save target as...' did the trick... (darn formatting :oops: )


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: December 27th, 2005, 2:51 pm 
Ok, it works now, but there is something I noticed:

When you Alt-Tab, and hold the Alt key pressed, pressing Escape will act weird. It will focus the upper (?) window, and you can switch with Alt-Tab now, without the listview showing...

Is this intentional?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: December 27th, 2005, 3:20 pm 
Offline
User avatar

Joined: August 11th, 2004, 1:47 am
Posts: 5347
Location: UK
Good functionality. It looks similar to the application switch on my mouse:

Image

Nice script.


Last edited by polyethene on January 30th, 2006, 10:30 pm, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 27th, 2005, 4:06 pm 
Offline

Joined: August 24th, 2005, 5:17 pm
Posts: 1237
daonlyfreez: "When you Alt-Tab, and hold the Alt key pressed, pressing Escape will act weird. It will focus the upper (?) window, and you can switch with Alt-Tab now, without the listview showing... "

I haven't been able to replicate this bug. What should be happening when you do what you described, is: The focused entry should change back to the window that had focus before pressing Alt-Tab and then the gui should be destroyed and focus returned to the original window, just the same as with the windows Alt-Tab. This is done by activating "!Esc" as a hotkey during the time the gui is shown.

Anyone else finding this bug?



@Titan:
Thanks for the compliments. Yes it looks pretty similar to your screenshot, with the exception of more columns in mine - I'm still planning on doing quite a bit more with the script, time permitting. I programmed this script as, out of all the other Alt-Tab replacements, none had quite the funtionality I wanted - they either had a strange layout or too much focus on thumbnail previews which made the window much larger than it needed to be.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 27th, 2005, 10:25 pm 
Offline

Joined: March 16th, 2005, 10:33 pm
Posts: 969
Location: Frisia
This only happens when I keep the Alt pressed after Escaping (which results in your described behaviour), and then continue to Alt-Tab, it will switch between windows, not showing any menu.

_________________
Image mirror 1mirror 2mirror 3ahk4.me • PM or Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 28th, 2005, 12:36 am 
Offline

Joined: August 24th, 2005, 5:17 pm
Posts: 1237
@daonlyfreez:
Thanks, I see the problem now and will fix it ASAP.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 28th, 2005, 10:53 am 
Offline

Joined: December 28th, 2005, 10:46 am
Posts: 99
Under XP SP2, if I use Alt-Esc in place of Alt-Tab, I go from one app to the other without any icon-menu. May be it is an integrated feature of Windows ???


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 28th, 2005, 2:00 pm 
Offline

Joined: August 24th, 2005, 5:17 pm
Posts: 1237
Demokos wrote:
Under XP SP2, if I use Alt-Esc in place of Alt-Tab, I go from one app to the other without any icon-menu. May be it is an integrated feature of Windows ???


Yes it's a window's hotkey - it sends the active window to the bottom of the list of windows (as I recall) and activates the next one. I've just copied the behaviour of the Window's Alt-Tab, where pressing Esc while the Alt-Tab list is displayed cancels it.


Report this post
Top
 Profile  
Reply with quote  
PostPosted: December 29th, 2005, 10:06 pm 
Can you add these functions into the script?
1. let user define what windows to appear in the list. For example, I want to press "ctrl+alt+w" and list all microsoft word windows; and press "ctrl+alt+x" and list all microsoft excel windows etc. Can someone teach me how to do this? (better, if the window number of word is 1, the hotkey will just activate the word without showing the list).
2. let user define a working list. say, I define "edit" working list and "drag" 2 microsoft word windows and 1 excel and 2 acrobat windows into the list, then my hotkey "ctrl+alt+x" will activate only this excel instead of showing all the excel documents.

I try to rewrite the code by myself but it sounds difficult for me. I appreciate if you can have a look and give some ideas. Thanks.



evl wrote:
Updated: 25-12-05

As the title says, it's an Alt-Tab replacement that makes use of a Listview to display running programs along with their window icons (many thanks to shimanov for figuring out how to retrieve the icons!).

See "LATEST VERSION CHANGES:" near the top of the script for details.

See my latest post(s) for replies to comments, etc.

I've uploaded the script to AutoHotkey.net as it's getting too long for a forum post ;-)

http://www.autohotkey.net/~evl/AltTab/AltTab.ahk


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: December 30th, 2005, 12:05 am 
Offline

Joined: August 24th, 2005, 5:17 pm
Posts: 1237
@Guest:
1.
Something like this would be quite useful. Instead of adding more hotkeys, it might be easier (and simpler to use) to add a context menu option to filter all displayed windows to only be those with a specific exe. This would be realtively simple to add currently as I've got most of the code in place for that sort of menu and filtering.

Also, due to the way the script is structured, all the complex stuff has to be done whether or not the Alt-Tab window is actually displayed (i.e. no speed saving possible), but for me it's pretty much instantaneous anyhow.

2.
You can currently filter out specific windows. I hadn't thought about having 2 columns of "include" and "exclude" - I might give this a go as it would be easier to manager large numbers of windows.


Yes, unfortunately the code is pretty long and not especially easy to add large code changes by anyone other than myself, although I have included quite a lot of comments and tried to use very descriptive names for variables so it's not too hard to follow if necessary.

The main factor with some changes I want to do, is saving settings between sessions, such as which windows are included/excluded from the list. There are several ways to do this, such as based on the window title (but hard in cases such as internet explorer) or window class (can be far too general!) or finding the exe associated with a window, although that doesn't make it possible to include/exclude specific windows within that set. I might make all optiuons available to the user, but that doubles or triples the code I have to add :wink:


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: notsoobvious, rrhuffy and 23 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