Cycle through active program-if not open, open program

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
gazmoz17
Posts: 72
Joined: 14 Mar 2018, 09:37

Cycle through active program-if not open, open program

21 Aug 2018, 04:05

Hi,

Any help why this below script doesnt work which I got off youtube?


;CYCLE THROUGH ACTIVE TITLE TYPE

F3::
;In unknown circumstances, if chrome is opened with this script, it becomes a blank screen, and cannot open unless you restart your computer.
;you can comment out the next two lines if that happens to you...
IfWinNotExist, ahk_class MozillaWindowClass
Run, firefox.exe
if WinActive("ahk_class MozillaWindowClass")
Send ^{tab}
else
WinActivate ahk_class MozillaWindowClass
Return

Got it from the below video and want to edit the scripts so I can cycle through firefox, outlook, sage accountancy software and excel.

https://github.com/TaranVH/2nd-keyboard ... uncher.ahk

https://www.youtube.com/watch?v=OqyQABySV8k

Any help much appreciated.
gazmoz17
Posts: 72
Joined: 14 Mar 2018, 09:37

Re: Cycle through active program-if not open, open program

23 Aug 2018, 03:06

Hi,

Doesnt have to be that exact scriot just how to cycle through ative program windows and if not active open that program type.

Many Thanks in advance
Gareth

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: No registered users and 250 guests