Dividend = -1
;############################################
#F8::
class1 = BaiduPlayer_MainDlg
class2 = PPLiveGUI
class3 = Baofeng_StormPlayer
class4 = #32770 ;PPS
;title2 =
Dividend += 1
SwitchWinT(Dividend,4,0)
return
;############################################
SwitchWinT(Dividend,classNo,titleNo)
{
global class1,class2,class3,class4,class5,title1,title2,title3,title4
;; The last activated window
;static active_last
global active_last
WinGet, active_ltemp, ID, A
; Scan program manager
WinGet, id, list,,, Program Manager
idFind = 0
Loop, %id%
{
this_id := id%A_Index%
WinGetClass, this_class, ahk_id %this_id%
Loop %classNo%
{
classCompare := class%A_Index%
if this_class = %classCompare%
{
idFind := idFind +1
idFind%idFind% := this_id
}
}