How would I compile this Python script ? Thanks

---------------------------------------------

a=IntControl(31,0,0,0,0)  ;return list of ids of explorer windows
        c=ItemCount(a,@TAB)
        switch c
           case 0
              run("explorer.exe","")
              while FindWindow("ExploreWClass")==""    ;wait for it to come up
                Yield
              end while
              ;Fall into case 1

           case 1
              TimeDelay(0.5)
              run("explorer.exe","")
              break
           case c       ; 2 or more
              break
        endswitch
        d=1
        while c<2 && d<500
           a=IntControl(31,0,0,0,0)
           c=ItemCount(a,@TAB)
           d=d+1
        endwhile
        if c<2 then exit
        id1=ItemExtract(1,a,@TAB)
        id2=ItemExtract(2,a,@tab)
        TimeDelay(0.75)
        WinPlaceSet(@NORMAL,id2,"500 0 1000 900")
        WinShow(id2)
        Yield
        Yield
        WinPlaceSet(@NORMAL,id1,"0 0 500 900")
        WinShow(id1)

     exit

Reply via email to