AutoHotkey Community

It is currently May 26th, 2012, 6:59 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: July 9th, 2005, 10:53 pm 
Offline

Joined: July 9th, 2005, 8:53 pm
Posts: 10
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 10th, 2005, 10:05 am 
Offline

Joined: April 1st, 2004, 12:00 am
Posts: 87
Location: Philippines
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)


Report this post
Top
 Profile  
Reply with quote  
PostPosted: July 11th, 2005, 12:06 am 
Offline

Joined: July 9th, 2005, 8:53 pm
Posts: 10
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


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Apollo, fusion1920, infogulch, Yahoo [Bot] and 11 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