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 

simple window switching

 
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
rodfell



Joined: 05 Oct 2007
Posts: 138
Location: Bundaberg (Bundy), Qld, Australia

PostPosted: Sat Jul 05, 2008 10:34 am    Post subject: simple window switching Reply with quote

switch between windows in a similar way to alt-tab, but with the whole window not just an icon. repeatedly hit the tab button to switch windows. tested on xp
Code:
tab::
detecthiddenwindows off
if (a_thishotkey<>a_priorhotkey or a_timesincepriorhotkey>10000)  ;10 second timeout
   {
   count=0   
   WinGet, id, list,,, Program Manager
   }
count+=1
winnumber:=mod(count,id-1)+2  ;lowest number possible is 2, so id1 (explorer shell) is not activated
winminimizeall ; optional, clears clutter
winactivate % "ahk_id  " .  id%winnumber%
return

Back to top
View user's profile Send private message
ttzm



Joined: 17 Feb 2008
Posts: 24
Location: CHINA

PostPosted: Tue Sep 16, 2008 6:20 am    Post subject: Reply with quote

Smile

Less windows will more fit this
_________________
喜欢看中文的可以来 AutoHotkey 爱好者论坛 : forum.ahkbbs.cn | ahk.5d6d.com
Back to top
View user's profile Send private message Visit poster's website
kardus



Joined: 17 Jul 2008
Posts: 14

PostPosted: Mon Sep 22, 2008 9:44 am    Post subject: Re: simple window switching Reply with quote

Interesting, tanks!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Page 1 of 1

 
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