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 

fast and concise Window-Switcher(-Activator, -Manager)

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



Joined: 09 Jul 2005
Posts: 10

PostPosted: Sat Jul 09, 2005 10:53 pm    Post subject: fast and concise Window-Switcher(-Activator, -Manager) Reply with quote

Hi Community,

I have the need to zap fast between different open program-windows including clusters of same-application-windows. It is important for me to use ONLY the keyboard and NOT the mouse (concerning speed). If there are running several instances of one application, "Ctrl+F6" does not work. And using "Alt+Tab" shows only one window-title at one time. So I wrote this concise Window-Switcher(-Activator). I use this script along with HotKeyBind (http://hotkeybind.sourceforge.net/). Perhaps some people need such a small simple tool too:

Code:
setkeydelay, 10
hotkey, ESC, end
settitlematchmode, 2
winget, wind, List,,,Program Manager
loop
{
num := A_Index + 1
stringtrimleft, hwnd, wind%num%, 0
if hwnd =
   break
wingettitle, title, ahk_id %hwnd%
stringlen, length, title
if length > 105
   stringtrimright, title, title, (length - 105)
list = %list%%A_Index%: %title%`n`n
}
inputbox, num, Window-Activator: To activate a Window enter Window-Number and press return! Leave by pressing "ESC"!, %list%,,700,700,,,,,1
if errorlevel = 1
   goto, end
loop, parse, list, `n
{
stringsplit, string, A_LoopField, :
stringreplace, title, A_LoopField, %string1%:%A_Space%
if string1 = %num%
   break
}
winactivate, %title%
end:
exitapp


Best regards,

schlemihl1277
Back to top
View user's profile Send private message
dijiyd



Joined: 01 Apr 2004
Posts: 90
Location: Philippines

PostPosted: Sun Jul 10, 2005 10:05 am    Post subject: Reply with quote

Hi, and welcome. I just want to point you to a similar script here if you want to take a look. It might be useful to you too. (although not as concise)
Back to top
View user's profile Send private message
schlemihl1277



Joined: 09 Jul 2005
Posts: 10

PostPosted: Mon Jul 11, 2005 12:06 am    Post subject: cannot launch proposed alternative scripts Reply with quote

Hi dijiyd,

Thank you for your follow-up-posting. I am sorry, but I cannot launch the alternative scripts you linked for me. Perhaps the reason is my german Windows-Version.

schlemihl1277
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
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