Title

Message

Confirm

<< DiscussionsReply

Cycle through all instances of a type of Window

A Sen
3 discussion posts
Hello, I've been trying without success to create a scripted function that will cycle through all windows belonging to a particular application. For example if I have multiple Firefox windows open, I'd like to be able to cycle through them all by pressing a hotkey. Similar to what MacOS does with Command-` if that means anything here. I couldn't find anything already existing. Does anyone know how I could create this function please? Thanks.
24 days ago  • #1
Owen Muhlethaler (BFS)'s profile on WallpaperFusion.com
Hello,

Are you looking to cycle focus through them, similar to what Alt+Tab does?

Thanks!
23 days ago  • #2
A Sen
3 discussion posts
Hi Owen, not quite. I'd like to be able to just press a key and have the next window of the same type get focus, then the next and the next until eventually the first one comes back again. So if, say, I have 4 Firefox windows open, pressing a key brings each one to the front in turn. I have tried getting the exe name of the active window with BFS.Application.GetMainFileByWindow(windowHandle) then messing around with SetWindowPos but I haven't managed to get anything much working.
23 days ago  • #3
A Sen
3 discussion posts
Managed to get it working
20 days ago  • #4
Was this helpful?    
<< DiscussionsReply