cycleWindow()
First-Post is changed as well, hopefully so that it's more understandable upon first-look.
any advice on getting this to work if you dont use windows explorer but Total commander
Yes, from from what I can tell about Total Commander here, the app always has the title "Total Commander", so if you just specify that in the first parameter, it should work.
CapsLock & Tab::cycleWindow("Total Commander")
Also, don't forget that you can use Window Spy, which you can launch from the right-click menu of a running AHK script's tray icon.
Alt & Tab::cycleCurrentWindow()
but I want to exclude windows with the word "Lobby" in. How would I incorporate this?
Also is there a way to open the cycle menu and have it stay open without having to hold down ctrl or alt?
Alt & Tab::cycleCurrentWindow("| | Lobby")
As it has been set up, many aspects of behavior are not customizable without editing the core code itself. So...there's no easy way to make the listview stay open without having to hold down the key. It would involve editing the code.
Just to throw this idea out, if anyone cares to read, cycleWindow could be more customizable (and thus useful) if it was like an object class rather than one bloated function. A "WinCycleList" object, for example, could have methods like the following:
WinCycleList.create(title, regexp, pathtorun) WinCycleList.show() WinCycleList.selectNext() WinCycleList.selectPrevious() WinCycleList.activateSelected() WinCycleList.close()
You could recreate the cycleWindow() function in just a few lines with these methods, and do a whole lot more. (Unfortunately, I have neither the time nor the familiarity with AHK's object stuff to work on it right now)
#Include %A_ScriptDir%\cycleWindow.ahk
Ctrl & Tab::cycleCurrentWindow("| | Lobby")
return
#esc::ExitApp
Try using cycleWindow:
#Include %A_ScriptDir%\cycleWindow.ahk Ctrl & Tab::cycleWindow("| | Lobby") return #esc::ExitApp
At the top of the script is an include
#Include Thumbnail lib.ahk
; ^ Thumbnail lib.ahk can be found at <!-- m -->http://www.autohotke...pic.php?t=70839<!-- m -->
If you go to the link it tells you that it is only for Vista or WIN7
got it to work by commenting out the include and then had to go through the script and comment out several references to Thumbnail before it would work for me.
Oh, cycleCurrentWindow takes different parameters than cycleWindow. You are actually passing "| | Lobby" to a parameter for a regular expression (for title-trimming). The function cycleCurrentWindow cycles through windows that have the same class as the current active window.
Try using cycleWindow:#Include %A_ScriptDir%\cycleWindow.ahk Ctrl & Tab::cycleWindow("| | Lobby") return #esc::ExitApp
Thought I'd try it out again and this works perfectly, thank you so much!
Signed up just to say thank you! This is super awesome.
A tip for those interested:
Instead of creating different hotkeys for each program, I wanted to have one hotkey I'd use to switch between all the windows of whatever program happened to be in front. I chose Ctrl+tab for programs that don't have tabbing built-in. AHK yelled at me for assigning duplicate hotkeys so I just put some #IfWinActive before the program call. Snippet from my do-it-all AHK file:
#Include cycleWindow.ahk #IfWinActive ahk_class Notepad ^w:: Send !{F4} ;cycles through all notepad window ;(specifically, windows with "notepad" in their title) Ctrl & Tab::cycleWindow("Notepad") #IfWinActive ahk_class CabinetWClass ;cycles through all open windows of Windows Explorer Ctrl & Tab::cycleWindow("ahk_class CabinetWClass")
And a question: I'd like to use LWin & Tab but that's not working for some reason. Win7 has a built-in pretty app-switcher set to Win + Tab but that hotkey does nothing. It stops the built-in switcher from working, but doesn't switch windows.
Hi guys. Thanks for this awesome program. I am encountering some problems and I would be grateful if any of them can be answered
- `cycleCurrentWindow()` just switch back and forth between two windows. The switch window flickers with the rest of the matching windows, but it disappears before I let go of the key. I have disabled thumbnail, commented out the #include statement. I have turned off other autohotkey to isolate key conflict problem.
- The "Thumbnail lib.ahk" is no longer available? I downloaded this one instead: https://github.com/m...b/Thumbnail.ahk
But the thumbnail does not work
- I was not able to map keys to Win key (`#`).
I am using Windows 7 x64
1. Can someone please repost source for this?
2. Does this script not work well with XP? I saw posts saying they removed "Thumbnail.ahk" is that bc this library is only for vista/7 ?