public title_1,title_2,title_3,title_4,title_5,title_6 // "offset_Y" = Windows標準(26px)より細いタイトルバーを使用しているときの // 画面上端からタイトルバー上端までのpx数 // "lap" = 縦方向の並びのウィンドウの重なり // "macbar_b" = タスクバー下端 // "win_H" = タスクバーを除いたウィンドウ高さ offset_Y=19 lap=3 macbar_b=val(offset_Y)+3 ofs_X50r=G_SCREEN_W/2 ofs_X30c=G_SCREEN_W/3 ofs_X30r=(G_SCREEN_W/3)*2 win_H=G_SCREEN_H-val(offset_Y) win_W50=ofs_X50r win_H50=(G_SCREEN_H-val(macbar_b)+(val(lap)*2))/2 ifb pos(".",win_H50)>1 win_H50t=int(win_H50)+1 win_H50b=val(win_H50t)-1 else win_H50t=win_H50 win_H50b=win_H50 endif ofs_Y50b=G_SCREEN_H-val(win_H50b) win_W30=ofs_X30c win_H30=(G_SCREEN_H-val(macbar_b)+(val(lap)*3))/3 ifb pos(".",win_H30)>1 win_H30t=int(win_H30)+1 win_H30c=win_H30t win_H30b=val(win_H30t)-1 win_H30tx2=(val(win_H30t)*2)-val(lap) win_H30bx2=val(win_H30t)+val(win_H30b)-val(lap) else win_H30t=win_H30 win_H30c=win_H30 win_H30b=win_H30 win_H30tx2=(val(win_H30)*2)-val(lap) win_H30bx2=(val(win_H30)*2)-val(lap) endif ofs_Y30c=val(offset_Y)+val(win_H30t)-val(lap) ofs_Y30b=val(ofs_Y30c)+val(win_H30c)-val(lap) while True ifb window_1() ifb window_2() ifb window_3() ifb window_4() ifb window_5() ifb window_6() ifb (title_1<>title_2) ifb (title_2<>title_3) ifb (title_3<>title_4) ifb (title_4<>title_5) ifb (title_5<>title_6) //(1<>2) and (2<>3) and (3<>4) and (4<>5) and (5<>6) ACW(GetID(title_1),0, offset_Y,win_W30,win_H50t,0) ACW(GetID(title_2),0, ofs_Y50b,win_W30,win_H50b,0) ACW(GetID(title_3),ofs_X30c,offset_Y,win_W30,win_H50t,0) ACW(GetID(title_4),ofs_X30c,ofs_Y50b,win_W30,win_H50b,0) ACW(GetID(title_5),ofs_X30r,offset_Y,win_W30,win_H50t,0) ACW(GetID(title_6),ofs_X30r,ofs_Y50b,win_W30,win_H50b,0) MsgBox("done.") break else //(1<>2) and (2<>3) and (3<>4) and (4<>5) and (5=6) ACW(GetID(title_1),0, offset_Y,win_W30,win_H50t,0) ACW(GetID(title_2),0, ofs_Y50b,win_W30,win_H50b,0) ACW(GetID(title_3),ofs_X30c,offset_Y,win_W30,win_H50t,0) ACW(GetID(title_4),ofs_X30c,ofs_Y50b,win_W30,win_H50b,0) ACW(GetID(title_5),ofs_X30r,offset_Y,win_W30,win_H,0) MsgBox("(title_1<>title_2) and (title_2<>title_3) "+_ "and (title_3<>title_4) and (title_4<>title_5)<#cr>"+_ "(title_5=title_6)<#cr>done.") break endif else //(title_4=title_5) ifb (title_5<>title_6) //(1<>2) and (2<>3) and (3<>4) and (4=5) and (5<>6) ACW(GetID(title_1),0, offset_Y,win_W30,win_H30t,0) ACW(GetID(title_2),0, ofs_Y30c,win_W30,win_H30c,0) ACW(GetID(title_3),0, ofs_Y30b,win_W30,win_H30b,0) ACW(GetID(title_4),ofs_X30c,offset_Y,win_W30*2,win_H30tx2,0) ACW(GetID(title_6),ofs_X30c,ofs_Y30b,win_W30*2,win_H30b,0) MsgBox("(title_1<>title_2) and (title_2<>title_3) "+_ "and (title_3<>title_4) and (title_5<>title_6)<#cr>"+_ "(title_4=title_5)<#cr>done.") break else //(1<>2) and (2<>3) and (3<>4) and (4=5) and (5=6) ACW(GetID(title_1),0, offset_Y,win_W30,win_H30t,0) ACW(GetID(title_2),0, ofs_Y30c,win_W30,win_H30c,0) ACW(GetID(title_3),0, ofs_Y30b,win_W30,win_H30b,0) ACW(GetID(title_4),ofs_X30c,offset_Y,win_W30*2,win_H,0) MsgBox("(title_1<>title_2) and (title_2<>title_3) "+_ "and (title_3<>title_4)<#cr>"+_ "(title_4=title_5=title_6)<#cr>done.") break endif endif else //(title_3=title_4) ifb (title_4<>title_5) ifb (title_5<>title_6) //(1<>2) and (2<>3) and (3=4) and (4<>5) and (5<>6) ACW(GetID(title_1),0, offset_Y,win_W30,win_H50t,0) ACW(GetID(title_2),0, ofs_Y50b,win_W30,win_H50b,0) ACW(GetID(title_3),ofs_X30c,offset_Y,win_W30,win_H,0) ACW(GetID(title_5),ofs_X30r,offset_Y,win_W30,win_H50t,0) ACW(GetID(title_6),ofs_X30r,ofs_Y50b,win_W30,win_H50b,0) MsgBox("(title_1<>title_2) and (title_2<>title_3) "+_ "and (title_4<>title_5) and (title_5<>title_6)<#cr>"+_ "(title_3=title_4)<#cr>done.") break else //(1<>2) and (2<>3) and (3=4) and (4<>5) and (5=6) ACW(GetID(title_1),0, offset_Y,win_W30,win_H50t,0) ACW(GetID(title_2),0, ofs_Y50b,win_W30,win_H50b,0) ACW(GetID(title_3),ofs_X30c,offset_Y,win_W30,win_H,0) ACW(GetID(title_5),ofs_X30r,offset_Y,win_W30,win_H,0) MsgBox("(title_1<>title_2) and (title_2<>title_3) "+_ "and (title_4<>title_5)<#cr>"+_ "(title_3=title_4) , (title_5=title_6)<#cr>done.") break endif else ifb (title_5<>title_6) //(1<>2) and (2<>3) and (3=4) and (4=5) and (5<>6) ACW(GetID(title_1),0, offset_Y,win_W30,win_H50t,0) ACW(GetID(title_2),0, ofs_Y50b,win_W30,win_H50b,0) ACW(GetID(title_3),ofs_X30c,offset_Y,win_W30*2,win_H30tx2,0) ACW(GetID(title_6),ofs_X30c,ofs_Y30b,win_W30*2,win_H30b,0) MsgBox("(title_1<>title_2) and (title_2<>title_3) "+_ "and (title_5<>title_6)<#cr>"+_ "(title_3=title_4=title_5)<#cr>done.") break else //(1<>2) and (2<>3) and (3=4) and (4=5) and (5=6) ACW(GetID(title_1),0, offset_Y,win_W30,win_H50t,0) ACW(GetID(title_2),0, ofs_Y50b,win_W30,win_H50b,0) ACW(GetID(title_3),ofs_X30c,offset_Y,win_W30*2,win_H,0) MsgBox("(title_1<>title_2) and (title_2<>title_3) "+_ "(title_3=title_4=title_5=title_6)<#cr>done.") break endif endif endif else //(title_2=title_3) ifb (title_3<>title_4) ifb (title_4<>title_5) ifb (title_5<>title_6) //(1<>2) and (2=3) and (3<>4) and (4<>5) and (5<>6) ACW(GetID(title_1),0, offset_Y,win_W30*2,win_H30t,0) ACW(GetID(title_2),0, ofs_Y30c,win_W30*2,win_H30bx2,0) ACW(GetID(title_4),ofs_X30r,offset_Y,win_W30,win_H30t,0) ACW(GetID(title_5),ofs_X30r,ofs_Y30c,win_W30,win_H30c,0) ACW(GetID(title_6),ofs_X30r,ofs_Y30b,win_W30,win_H30b,0) MsgBox("(title_1<>title_2) and (title_3<>title_4) "+_ "and (title_4<>title_5) and (title_5<>title_6)<#cr>"+_ "(title_2=title_3)<#cr>done.") break else //(1<>2) and (2=3) and (3<>4) and (4<>5) and (5=6) ACW(GetID(title_1),0, offset_Y,win_W50,win_H30t,0) ACW(GetID(title_2),0, ofs_Y30c,win_W50,win_H30bx2,0) ACW(GetID(title_4),ofs_X50r,offset_Y,win_W50,win_H30t,0) ACW(GetID(title_5),ofs_X50r,ofs_Y30c,win_W50,win_H30bx2,0) MsgBox("(title_1<>title_2) and (title_3<>title_4) "+_ "and (title_4<>title_5)<#cr>"+_ "(title_2=title_3) , (title_5=title_6)<#cr>done.") break endif else ifb (title_5<>title_6) //(1<>2) and (2=3) and (3<>4) and (4=5) and (5<>6) ACW(GetID(title_1),0, offset_Y,win_W50,win_H30t,0) ACW(GetID(title_2),0, ofs_Y30c,win_W50,win_H30bx2,0) ACW(GetID(title_4),ofs_X50r,offset_Y,win_W50,win_H30tx2,0) ACW(GetID(title_6),ofs_X50r,ofs_Y30b,win_W50,win_H30b,0) MsgBox("(title_1<>title_2) and (title_3<>title_4) "+_ "and (title_5<>title_6)<#cr>"+_ "(title_2=title_3) , (title_4=title_5)<#cr>done.") break else //(1<>2) and (2=3) and (3<>4) and (4=5) and (5=6) ACW(GetID(title_1),0, offset_Y,win_W30,win_H30t,0) ACW(GetID(title_2),0, ofs_Y30c,win_W30,win_H30bx2,0) ACW(GetID(title_4),ofs_X30c,offset_Y,win_W30*2,win_H,0) MsgBox("(title_1<>title_2) and (title_3<>title_4)<#cr>"+_ "(title_2=title_3) , (title_4=title_5=title_6)<#cr>done.") break endif endif else //(title_3=title_4) ifb (title_4<>title_5) ifb (title_5<>title_6) //(1<>2) and (2=3) and (3=4) and (4<>5) and (5<>6) ACW(GetID(title_1),0, offset_Y,win_W30,win_H30t,0) ACW(GetID(title_2),0, ofs_Y30c,win_W30*2,win_H30bx2,0) ACW(GetID(title_5),ofs_X30c,offset_Y,win_W30,win_H30t,0) ACW(GetID(title_6),ofs_X30r,offset_Y,win_W30,win_H30t,0) MsgBox("(title_1<>title_2) and (title_4<>title_5) "+_ "and (title_5<>title_6)<#cr>"+_ "(title_2=title_3=title_4)<#cr>done.") break else //(1<>2) and (2=3) and (3=4) and (4<>5) and (5=6) ACW(GetID(title_1),0, offset_Y,win_W30*2,win_H30t,0) ACW(GetID(title_2),0, ofs_Y30c,win_W30*2,win_H30bx2,0) ACW(GetID(title_5),ofs_X30r,offset_Y,win_W30,win_H,0) MsgBox("(title_1<>title_2) and (title_4<>title_5)<#cr>"+_ "(title_2=title_3=title_4) , (title_5=title_6)<#cr>done.") break endif else ifb (title_5<>title_6) //(1<>2) and (2=3) and (3=4) and (4=5) and (5<>6) ACW(GetID(title_1),0, offset_Y,win_W30,win_H50t,0) ACW(GetID(title_2),ofs_X30c,offset_Y,win_W30*2,win_H,0) ACW(GetID(title_6),0, ofs_Y50b,win_W30,win_H50b,0) MsgBox("(title_1<>title_2) and (title_5<>title_6)<#cr>"+_ "(title_2=title_3=title_4=title_5)<#cr>done.") break else //(1<>2) and (2=3) and (3=4) and (4=5) and (5=6) ACW(GetID(title_1),0, offset_Y,win_W30,win_H,0) ACW(GetID(title_2),ofs_X30c,offset_Y,win_W30*2,win_H,0) MsgBox("(title_1<>title_2)<#cr>"+_ "(title_2=title_3=title_4=title_5=title_6)<#cr>done.") break endif endif endif endif else //(title_1=title_2) ifb (title_2<>title_3) ifb (title_3<>title_4) ifb (title_4<>title_5) ifb (title_5<>title_6) //(1=2) and (2<>3) and (3<>4) and (4<>5) and (5<>6) ACW(GetID(title_1),0, offset_Y,win_W30,win_H,0) ACW(GetID(title_3),ofs_X30c,offset_Y,win_W30,win_H50t,0) ACW(GetID(title_4),ofs_X30c,ofs_Y50b,win_W30,win_H50b,0) ACW(GetID(title_5),ofs_X30r,offset_Y,win_W30,win_H50t,0) ACW(GetID(title_6),ofs_X30r,ofs_Y50b,win_W30,win_H50b,0) MsgBox("(title_2<>title_3) and (title_3<>title_4) "+_ "and (title_4<>title_5) and (title_5<>title_6)<#cr>"+_ "(title_1=title_2)<#cr>done.") break else //(1=2) and (2<>3) and (3<>4) and (4<>5) and (5=6) ACW(GetID(title_1),0, offset_Y,win_W30,win_H,0) ACW(GetID(title_3),ofs_X30c,offset_Y,win_W30,win_H50t,0) ACW(GetID(title_4),ofs_X30c,ofs_Y50b,win_W30,win_H50b,0) ACW(GetID(title_5),ofs_X30r,offset_Y,win_W30,win_H,0) MsgBox("(title_2<>title_3) and (title_3<>title_4) "+_ "and (title_4<>title_5)<#cr>"+_ "(title_1=title_2) , (title_5=title_6)<#cr>done.") break endif else ifb (title_5<>title_6) //(1=2) and (2<>3) and (3<>4) and (4=5) and (5<>6) ACW(GetID(title_1),0, offset_Y,win_W50,win_H30tx2,0) ACW(GetID(title_3),0, ofs_Y30b,win_W50,win_H30b,0) ACW(GetID(title_4),ofs_X50r,offset_Y,win_W50,win_H30tx2,0) ACW(GetID(title_6),ofs_X50r,ofs_Y30b,win_W50,win_H30b,0) MsgBox("(title_1=title_2) , (title_4=title_5)<#cr>done.") break else //(1=2) and (2<>3) and (3<>4) and (4=5) and (5=6) ACW(GetID(title_1),0, offset_Y,win_W30,win_H30tx2,0) ACW(GetID(title_3),0, ofs_Y30b,win_W30,win_H30b,0) ACW(GetID(title_4),ofs_X30c,offset_Y,win_W30*2,win_H,0) MsgBox("(title_1=title_2) , (title_4=title_5=title_6)<#cr>done.") break endif endif else // (title_3=title_4) ifb (title_4<>title_5) ifb (title_5<>title_6) //(1=2) and (2<>3) and (3=4) and (4<>5) and (5<>6) ACW(GetID(title_1),0, offset_Y,win_W30,win_H,0) ACW(GetID(title_3),ofs_X30c,offset_Y,win_W30,win_H,0) ACW(GetID(title_5),ofs_X30r,offset_Y,win_W30,win_H30t,0) MsgBox("(title_1=title_2) , (title_3=title_4)<#cr>done.") break else //(1=2) and (2<>3) and (3=4) and (4<>5) and (5=6) ACW(GetID(title_1),0, offset_Y,win_W30,win_H,0) ACW(GetID(title_3),ofs_X30c,offset_Y,win_W30,win_H,0) ACW(GetID(title_5),ofs_X30r,offset_Y,win_W30,win_H,0) MsgBox("(title_1=title_2) , (title_3=title_4) , (title_5=title_6)<#cr>done.") break endif else ifb (title_5<>title_6) //(1=2) and (2<>3) and (3=4) and (4=5) and (5<>6) ACW(GetID(title_1),0, offset_Y,win_W30,win_H50t,0) ACW(GetID(title_3),ofs_X30c,offset_Y,win_W30*2,win_H,0) ACW(GetID(title_6),0, offset_Y,win_W30,win_H50b,0) MsgBox("(title_1=title_2) , (title_3=title_4=title_5)<#cr>done.") break else //(1=2) and (2<>3) and (3=4) and (4=5) and (5=6) ACW(GetID(title_1),0, offset_Y,win_W30,win_H,0) ACW(GetID(title_3),ofs_X30c,offset_Y,win_W30*2,win_H,0) MsgBox("(title_1=title_2) , (title_3=title_4=title_5==title_6)<#cr>done.") break endif endif endif else // (title_2=title_3) ifb (title_3<>title_4) ifb (title_4<>title_5) ifb (title_5<>title_6) //(1=2) and (2=3) and (3<>4) and (4<>5) and (5<>6) ACW(GetID(title_1),0, offset_Y,win_W30*2,win_H,0) ACW(GetID(title_4),ofs_X30r,offset_Y,win_W30,win_H30t,0) ACW(GetID(title_5),ofs_X30r,ofs_Y30c,win_W30,win_H30c,0) ACW(GetID(title_6),ofs_X30r,ofs_Y30b,win_W30,win_H30b,0) MsgBox("(title_1=title_2=title_3) , (title_5<>title_6)<#cr>done.") break else //(1=2) and (2=3) and (3<>4) and (4<>5) and (5=6) ACW(GetID(title_1),0, offset_Y,win_W30*2,win_H,0) ACW(GetID(title_4),ofs_X30r,offset_Y,win_W30,win_H30t,0) ACW(GetID(title_5),ofs_X30r,ofs_Y30c,win_W30,win_H30bx2,0) MsgBox("(title_1=title_2=title_3) , (title_5=title_6)<#cr>done.") break endif else ifb (title_5<>title_6) //(1=2) and (2=3) and (3<>4) and (4=5) and (5<>6) ACW(GetID(title_1),0, offset_Y,win_W30*2,win_H,0) ACW(GetID(title_4),ofs_X30r,offset_Y,win_W30,win_H30tx2,0) ACW(GetID(title_6),ofs_X30r,ofs_Y30b,win_W30,win_H30b,0) MsgBox("(title_1=title_2=title_3) , (title_4=title_5)<#cr>done.") break else //(1=2) and (2=3) and (3<>4) and (4=5) and (5=6) ACW(GetID(title_1),0, offset_Y,win_W50,win_H,0) ACW(GetID(title_4),ofs_X50r,offset_Y,win_W50,win_H,0) MsgBox("(title_1=title_2=title_3) , (title_4=title_5=title_6)<#cr>done.") break endif endif else // (title_3=title_4) ifb (title_4<>title_5) ifb (title_5<>title_6) //(1=2) and (2=3) and (3=4) and (4<>5) and (5<>6) ACW(GetID(title_1),0, offset_Y,win_W30*2,win_H,0) ACW(GetID(title_5),ofs_X30r,offset_Y,win_W30,win_H50t,0) ACW(GetID(title_6),ofs_X30r,ofs_Y50b,win_W30,win_H50b,0) MsgBox("(title_1=title_2=title_3=title_4)<#cr>done.") break else //(1=2) and (2=3) and (3=4) and (4<>5) and (5=6) ACW(GetID(title_1),0, offset_Y,win_W30*2,win_H,0) ACW(GetID(title_5),ofs_X30r,offset_Y,win_W30,win_H,0) MsgBox("(title_1=title_2=title_3=title_4) , (title_5=title_6)<#cr>done.") break endif else ifb (title_5<>title_6) //(1=2) and (2=3) and (3=4) and (4=5) and (5<>6) ACW(GetID(title_1),0, offset_Y,win_W30*2,win_H,0) ACW(GetID(title_6),ofs_X30r,offset_Y,win_W30,win_H30t,0) MsgBox("(title_1=title_2=title_3=title_4=title_5)<#cr>done.") break else //(1=2) and (2=3) and (3=4) and (4=5) and (5=6) ACW(GetID(title_1),0, offset_Y,win_W30*2,win_H,0) MsgBox("(title_1=title_2=title_3=title_4=title_5=title_6)<#cr>done.") break endif endif endif endif endif else // 6th click TimeOut. ifb (title_1<>title_2) ifb (title_2<>title_3) ifb (title_3<>title_4) ifb (title_4<>title_5) //(1<>2) and (2<>3) and (3<>4) and (4<>5) ACW(GetID(title_1),0, offset_Y,win_W30,win_H50t,0) ACW(GetID(title_2),0, ofs_Y50b,win_W30,win_H50b,0) ACW(GetID(title_3),ofs_X30c,offset_Y,win_W30,win_H50t,0) ACW(GetID(title_4),ofs_X30c,ofs_Y50b,win_W30,win_H50b,0) ACW(GetID(title_5),ofs_X30r,offset_Y,win_W30,win_H50t,0) MsgBox("6th click TimeOut.<#cr>(title_4=title_5)<#cr>done.") break else //(1<>2) and (2<>3) and (3<>4) and (4=5) ACW(GetID(title_1),0, offset_Y,win_W30,win_H30t,0) ACW(GetID(title_2),0, ofs_Y30c,win_W30,win_H30c,0) ACW(GetID(title_3),0, ofs_Y30b,win_W30,win_H30b,0) ACW(GetID(title_4),ofs_X30c,offset_Y,win_W30*2,win_H,0) MsgBox("6th click TimeOut.<#cr>(title_4=title_5)<#cr>done.") break endif else ifb (title_4<>title_5) //(1<>2) and (2<>3) and (3=4) and (4<>5) ACW(GetID(title_1),0, offset_Y,win_W30,win_H50t,0) ACW(GetID(title_2),0, ofs_Y50b,win_W30,win_H50b,0) ACW(GetID(title_3),ofs_X30c,offset_Y,win_W30,win_H,0) ACW(GetID(title_5),ofs_X30r,offset_Y,win_W30,win_H50t,0) MsgBox("6th click TimeOut.<#cr>(title_3=title_4)<#cr>done.") break else //(1<>2) and (2<>3) and (3=4) and (4=5) ACW(GetID(title_1),0, offset_Y,win_W30,win_H50t,0) ACW(GetID(title_2),0, ofs_Y50b,win_W30,win_H50b,0) ACW(GetID(title_3),ofs_X30c,offset_Y,win_W30*2,win_H,0) MsgBox("6th click TimeOut.<#cr>(title_3=title_4=title_5)<#cr>done.") break endif endif else //(title_2=title_3) ifb (title_3<>title_4) ifb (title_4<>title_5) //(1<>2) and (2=3) and (3<>4) and (4<>5) ACW(GetID(title_1),0, offset_Y,win_W30,win_H30t,0) ACW(GetID(title_2),ofs_X30c,offset_Y,win_W30,win_H,0) ACW(GetID(title_4),ofs_X30r,offset_Y,win_W30,win_H50t,0) ACW(GetID(title_5),ofs_X30r,ofs_Y50b,win_W30,win_H50b,0) MsgBox("6th click TimeOut.<#cr>(title_2=title_3)<#cr>done.") break else //(1<>2) and (2=3) and (3<>4) and (4=5) ACW(GetID(title_1),0, offset_Y,win_W30,win_H30t,0) ACW(GetID(title_2),ofs_X30c,offset_Y,win_W30,win_H,0) ACW(GetID(title_4),ofs_X30r,offset_Y,win_W30,win_H,0) MsgBox("6th click TimeOut.<#cr>(title_2=title_3) , (title_4=title_5)<#cr>done.") break endif else ifb (title_4<>title_5) //(1<>2) and (2=3) and (3=4) and (4<>5) ACW(GetID(title_1),0, offset_Y,win_W30,win_H50t,0) ACW(GetID(title_2),ofs_X30c,offset_Y,win_W30*2,win_H,0) ACW(GetID(title_5),0, ofs_Y50b,win_W30,win_H50b,0) MsgBox("6th click TimeOut.<#cr>(title_2=title_3=title_4)<#cr>done.") break else //(1<>2) and (2=3) and (3=4) and (4=5) ACW(GetID(title_1),0, offset_Y,win_W30,win_H,0) ACW(GetID(title_2),ofs_X30c,offset_Y,win_W30*2,win_H,0) MsgBox("6th click TimeOut.<#cr>(title_2=title_3=title_4=title_5)<#cr>done.") break endif endif endif else //(title_1=title_2) ifb (title_2<>title_3) ifb (title_3<>title_4) ifb (title_4<>title_5) //(1=2) and (2<>3) and (3<>4) and (4<>5) ACW(GetID(title_1),0, offset_Y,win_W30,win_H,0) ACW(GetID(title_3),ofs_X30c,offset_Y,win_W30,win_H30t,0) ACW(GetID(title_4),ofs_X30c,ofs_Y50b,win_W30,win_H50b,0) ACW(GetID(title_5),ofs_X30r,offset_Y,win_W30,win_H30t,0) MsgBox("6th click TimeOut.<#cr>(title_1=title_2)<#cr>done.") break else //(1=2) and (2<>3) and (3<>4) and (4=5) ACW(GetID(title_1),0, offset_Y,win_W30,win_H,0) ACW(GetID(title_3),ofs_X30c,offset_Y,win_W30,win_H,0) ACW(GetID(title_4),ofs_X30r,offset_Y,win_W30,win_H,0) MsgBox("6th click TimeOut.<#cr>(title_1=title_2) , (title_4=title_5)<#cr>done.") break endif else ifb (title_4<>title_5) //(1=2) and (2<>3) and (3=4) and (4<>5) ACW(GetID(title_1),0, offset_Y,win_W30,win_H,0) ACW(GetID(title_3),ofs_X30c,offset_Y,win_W30,win_H,0) ACW(GetID(title_5),ofs_X30r,offset_Y,win_W30,win_H,0) MsgBox("6th click TimeOut.<#cr>(title_1=title_2) , (title_3=title_4)<#cr>done.") break else //(1=2) and (2<>3) and (3=4) and (4=5) ACW(GetID(title_1),0, offset_Y,win_W30,win_H,0) ACW(GetID(title_3),ofs_X30c,offset_Y,win_W30*2,win_H,0) MsgBox("6th click TimeOut.<#cr>(title_1=title_2) , (title_3=title_4=title_5)<#cr>done.") break endif endif else //(title_2=title_3) ifb (title_3<>title_4) ifb (title_4<>title_5) //(1=2) and (2=3) and (3<>4) and (4<>5) ACW(GetID(title_1),0, offset_Y,win_W30*2,win_H,0) ACW(GetID(title_4),ofs_X30r,offset_Y,win_W30,win_H50t,0) ACW(GetID(title_5),ofs_X30r,ofs_Y50b,win_W30,win_H50b,0) MsgBox("6th click TimeOut.<#cr>(title_1=title_2=title_3)<#cr>done.") break else //(1=2) and (2=3) and (3<>4) and (4=5) ACW(GetID(title_1),0, offset_Y,win_W30*2,win_H,0) ACW(GetID(title_4),ofs_X30r,offset_Y,win_W30,win_H,0) MsgBox("6th click TimeOut.<#cr>(title_1=title_2=title_3) , (title_4=title_5)<#cr>done.") break endif else ifb (title_4<>title_5) //(1=2) and (2=3) and (3=4) and (4<>5) ACW(GetID(title_1),0, offset_Y,win_W30*2,win_H,0) ACW(GetID(title_5),ofs_X30r,offset_Y,win_W30,win_H,0) MsgBox("6th click TimeOut.<#cr>(title_1=~title_4)<#cr>done.") break else //(1=2) and (2=3) and (3=4) and (4=5) ACW(GetID(title_1),ofs_X30c,offset_Y,win_W30*2,win_H,0) MsgBox("6th click TimeOut.<#cr>(title_1=~title_5)<#cr>done.") break endif endif endif endif endif else // 5th click TimeOut. ifb (title_1<>title_2) ifb (title_2<>title_3) ifb (title_3<>title_4) // (title_1<>title_2) and (title_2<>title_3) and (title_3<>title_4) ACW(GetID(title_1),0, offset_Y,win_W50,win_H50t,0) ACW(GetID(title_2),0, ofs_Y50b,win_W50,win_H50b,0) ACW(GetID(title_3),ofs_X50r,offset_Y,win_W50,win_H50t,0) ACW(GetID(title_4),ofs_X50r,ofs_Y50b,win_W50,win_H50b,0) MsgBox("5th click TimeOut.<#cr>done.") break else // (title_1<>title_2) and (title_2<>title_3) and (title_3=title_4) ACW(GetID(title_1),0, offset_Y,win_W50,win_H50t,0) ACW(GetID(title_2),0, ofs_Y50b,win_W50,win_H50b,0) ACW(GetID(title_3),ofs_X50r,offset_Y,win_W50,win_H,0) MsgBox("5th click TimeOut.<#cr>(title_3=title_4)<#cr>done.") break endif else ifb (title_3<>title_4) // (title_1<>title_2) and (title_2=title_3) and (title_3<>title_4) ACW(GetID(title_1),0, offset_Y,win_W50,win_H50t,0) ACW(GetID(title_2),ofs_X50r,offset_Y,win_W50,win_H,0) ACW(GetID(title_4),0, ofs_Y50b,win_W50,win_H50b,0) MsgBox("5th click TimeOut.<#cr>(title_2=title_3)<#cr>done.") break else // (title_1<>title_2) and (title_2=title_3) and (title_3=title_4) ACW(GetID(title_1),0, offset_Y,win_W30,win_H,0) ACW(GetID(title_2),ofs_X30c,offset_Y,win_W30*2,win_H,0) MsgBox("5th click TimeOut.<#cr>(title_2=title_3=title_4)<#cr>done.") break endif endif else //(title_1=title_2) ifb (title_2<>title_3) ifb (title_3<>title_4) // (title_1=title_2) and (title_2<>title_3) and (title_3<>title_4) ACW(GetID(title_1),0, offset_Y,win_W50,win_H,0) ACW(GetID(title_3),ofs_X50r,offset_Y,win_W50,win_H50t,0) ACW(GetID(title_4),ofs_X50r,ofs_Y50b,win_W50,win_H50b,0) MsgBox("5th click TimeOut.<#cr>(title_1=title_2)<#cr>done.") break else // (title_1=title_2) and (title_2<>title_3) and (title_3=title_4) ACW(GetID(title_1),0, offset_Y,win_W50,win_H,0) ACW(GetID(title_3),ofs_X50r,offset_Y,win_W50,win_H,0) MsgBox("5th click TimeOut.<#cr>(title_1=title_2) , (title_3=title_4)<#cr>done.") break endif else ifb (title_3<>title_4) // (title_1=title_2) and (title_2=title_3) and (title_3<>title_4) ACW(GetID(title_1),0, offset_Y,win_W30*2,win_H,0) ACW(GetID(title_4),ofs_X30r,offset_Y,win_W30,win_H,0) MsgBox("5th click TimeOut.<#cr>(title_1=title_2=title_3)<#cr>done.") break else // (title_1=title_2) and (title_2=title_3) and (title_3=title_4) ACW(GetID(title_1),ofs_X50r,offset_Y,win_W50,win_H,0) MsgBox("5th click TimeOut.<#cr>(title_1=title_2=title_3=title_4)<#cr>done.") break endif endif endif endif else // 4th click TimeOut. ifb (title_1<>title_2) ifb (title_2<>title_3) // (title_1<>title_2) and (title_2<>title_3) ACW(GetID(title_1),0, offset_Y,win_W30,win_H,0) ACW(GetID(title_2),ofs_X30c,offset_Y,win_W30,win_H,0) ACW(GetID(title_3),ofs_X30r,offset_Y,win_W30,win_H,0) MsgBox("4th click TimeOut.<#cr>done.") break else // (title_1<>title_2) and (title_2=title_3) ACW(GetID(title_1),0, offset_Y,win_W30,win_H,0) ACW(GetID(title_2),ofs_X30c,offset_Y,win_W30*2,win_H,0) MsgBox("4th click TimeOut.<#cr>(title_2=title_3)<#cr>done.") break endif else ifb (title_1=title_2) ifb (title_2<>title_3) // (title_1=title_2) and (title_2<>title_3) ACW(GetID(title_1),0, offset_Y,win_W30*2,win_H,0) ACW(GetID(title_3),ofs_X30r,offset_Y,win_W30,win_H,0) MsgBox("4th click TimeOut.<#cr>(title_1=title_2)<#cr>done.") break else // (title_1=title_2) and (title_2=title_3) ACW(GetID(title_1),0, offset_Y,win_W30,win_H,0) MsgBox("4th click TimeOut.<#cr>(title_1=title_2=title_3)<#cr>done.") break endif endif endif endif else // 3rd click TimeOut. ifb title_1<>title_2 ACW(GetID(title_1),0, offset_Y,win_W50,win_H,0) ACW(GetID(title_2),ofs_X50r,offset_Y,win_W50,win_H,0) MsgBox("3rd click TimeOut.<#cr>done.") break else ACW(GetID(title_1),0, offset_Y,win_W30*2,win_H30tx2,0) MsgBox("3rd click TimeOut.<#cr>(title_1=title_2)<#cr>done.") break endif endif else // 2nd click TimeOut. ACW(GetID(title_1),0,offset_Y,win_W30,win_H30t,0) MsgBox("2nd click TimeOut.<#cr>done.") break endif else // 1st click TimeOut. if MsgBox("Script TimeOut.<#cr>Are You Coutinue?"_ ,Btn_No or Btn_Retry,,Btn_No)=Btn_Retry then Continue else break endif Sleep(1) wend Sleep(1) Function window_1() ifb check_key(Vk_Lbutton) title_1=GetStr(GetID(Get_Active_Win),0,1) result=True endif Fend Function window_2() ifb check_key(Vk_Lbutton) title_2=GetStr(GetID(Get_Active_Win),0,1) result=True endif Fend Function window_3() ifb check_key(Vk_Lbutton) title_3=GetStr(GetID(Get_Active_Win),0,1) result=True endif Fend Function window_4() ifb check_key(Vk_Lbutton) title_4=GetStr(GetID(Get_Active_Win),0,1) result=True endif Fend Function window_5() ifb check_key(Vk_Lbutton) title_5=GetStr(GetID(Get_Active_Win),0,1) result=True endif Fend Function window_6() ifb check_key(Vk_Lbutton) title_6=GetStr(GetID(Get_Active_Win),0,1) result=True endif Fend Function check_key(chk_key) Result=False sv_tm=GetTime() while GetTime()-sv_tm<3 if !GetKeyState(Vk_Lbutton) then Continue ifb GetKeyState(chk_key) Result=True break endif Sleep(0.31) wend Sleep(0.31) Fend