A Sen
18 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.
Hello,
Are you looking to cycle focus through them, similar to what Alt+Tab does?
Thanks!
A Sen
18 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.