java script to tile windows veritaclly won't work, why?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jane Dickerson

    #1

    java script to tile windows veritaclly won't work, why?

    I have the following line created in Notepad. I saved it as a js file and
    the icon shows it as a javascript file. It is supposed to tile all open
    windows when I run it. The first time I run it I get an error in character
    1, so I delete the open parentheses and then get another compile error when
    I run it. Can somebody make this work for me?

    (new ActiveXObject(" Shell.Applicati on")).TileVerit cally()


  • Tony Mascolo

    #2
    Re: java script to tile windows veritaclly won't work, why?

    Doesn't windows do this through the right click menu on the taskbar?

    Tony


    "Jane Dickerson" <janedickerson1 393@aol.com> wrote in message
    news:ctKdnWwyRK-RJVaiRVn-vw@netdoor.com. ..[color=blue]
    > I have the following line created in Notepad. I saved it as a js file and
    > the icon shows it as a javascript file. It is supposed to tile all open
    > windows when I run it. The first time I run it I get an error in character
    > 1, so I delete the open parentheses and then get another compile error[/color]
    when[color=blue]
    > I run it. Can somebody make this work for me?
    >
    > (new ActiveXObject(" Shell.Applicati on")).TileVerit cally()
    >
    >[/color]


    Comment

    • Lee

      #3
      Re: java script to tile windows veritaclly won't work, why?

      Jane Dickerson said:[color=blue]
      >
      >I have the following line created in Notepad. I saved it as a js file and
      >the icon shows it as a javascript file. It is supposed to tile all open
      >windows when I run it. The first time I run it I get an error in character
      >1, so I delete the open parentheses and then get another compile error when
      >I run it. Can somebody make this work for me?
      >
      >(new ActiveXObject(" Shell.Applicati on")).TileVerit cally()[/color]


      Check the spelling.
      There is no method named "TileVeritcally ()".

      Comment

      • Thomas 'PointedEars' Lahn

        #4
        Re: java script to tile windows veritaclly won't work, why?

        Jane Dickerson wrote:
        [color=blue]
        > I have the following line created in Notepad.[/color]

        That is unimportant.
        [color=blue]
        > I saved it as a js file and the icon shows it as a javascript
        > file.[/color]

        It is because Windoze uses only .foobar in filenames as type identifier
        and not (also) the contents of files as it should. You could name a
        Word document .js and Exploder would pass it to the WSH.
        [color=blue]
        > It is supposed to tile all open windows when I run it.[/color]

        How do you get the idea?
        [color=blue]
        > The first time I run it I get an error in character 1,[/color]

        What error?
        [color=blue]
        > so I delete the open parentheses and then get another compile error[/color]

        That is a useless error description. What errors do you get?
        [color=blue]
        > when I run it.[/color]

        Define: run
        [color=blue]
        > Can somebody make this work for me?[/color]

        Have you ever thought of real debugging, including consulting the
        related manual (MSDN Library) first?
        [color=blue]
        > (new ActiveXObject(" Shell.Applicati on")).TileVerit cally()[/color]

        Most certainly the property is `TileVertically '. What you are doing
        here is only syntactically J(ava)Script, you should get more answers
        in a group dealing with the Windows Script Host.


        PointedEars

        Comment

        • Jane Dickerson

          #5
          Re: java script to tile windows veritaclly won't work, why?

          KillFiled you butthead.

          "Thomas 'PointedEars' Lahn" <PointedEars@we b.de> wrote in message
          news:3FCBBED4.7 040505@PointedE ars.de...[color=blue]
          > Jane Dickerson wrote:
          >[color=green]
          > > I have the following line created in Notepad.[/color]
          >
          > That is unimportant.
          >[color=green]
          > > I saved it as a js file and the icon shows it as a javascript
          > > file.[/color]
          >
          > It is because Windoze uses only .foobar in filenames as type identifier
          > and not (also) the contents of files as it should. You could name a
          > Word document .js and Exploder would pass it to the WSH.
          >[color=green]
          > > It is supposed to tile all open windows when I run it.[/color]
          >
          > How do you get the idea?
          >[color=green]
          > > The first time I run it I get an error in character 1,[/color]
          >
          > What error?
          >[color=green]
          > > so I delete the open parentheses and then get another compile error[/color]
          >
          > That is a useless error description. What errors do you get?
          >[color=green]
          > > when I run it.[/color]
          >
          > Define: run
          >[color=green]
          > > Can somebody make this work for me?[/color]
          >
          > Have you ever thought of real debugging, including consulting the
          > related manual (MSDN Library) first?
          >[color=green]
          > > (new ActiveXObject(" Shell.Applicati on")).TileVerit cally()[/color]
          >
          > Most certainly the property is `TileVertically '. What you are doing
          > here is only syntactically J(ava)Script, you should get more answers
          > in a group dealing with the Windows Script Host.
          >
          >
          > PointedEars[/color]


          Comment

          • Jane Dickerson

            #6
            Re: java script to tile windows veritaclly won't work, why?

            No, I typed it wrong in the post but in the script it is spelled right.

            "Lee" <REM0VElbspamtr ap@cox.net> wrote in message
            news:bqgdvr0241 0@drn.newsguy.c om...[color=blue]
            > Jane Dickerson said:[color=green]
            > >
            > >I have the following line created in Notepad. I saved it as a js file and
            > >the icon shows it as a javascript file. It is supposed to tile all open
            > >windows when I run it. The first time I run it I get an error in[/color][/color]
            character[color=blue][color=green]
            > >1, so I delete the open parentheses and then get another compile error[/color][/color]
            when[color=blue][color=green]
            > >I run it. Can somebody make this work for me?
            > >
            > >(new ActiveXObject(" Shell.Applicati on")).TileVerit cally()[/color]
            >
            >
            > Check the spelling.
            > There is no method named "TileVeritcally ()".
            >[/color]


            Comment

            • Jane Dickerson

              #7
              Re: java script to tile windows veritaclly won't work, why?

              Yea, but I want a single click option because I do this repetitively at work
              and I am going to make the script a keyboard shortcut so I don't have to
              take my fingers off the keyboard and reach for the mouse.

              I am starting to wonder what the purpose of this NG is?

              "Tony Mascolo" <qzmicro@hotmai l.com> wrote in message
              news:SUOyb.2381 9$sb4.2869@news read2.news.pas. earthlink.net.. .[color=blue]
              > Doesn't windows do this through the right click menu on the taskbar?
              >
              > Tony
              >
              >
              > "Jane Dickerson" <janedickerson1 393@aol.com> wrote in message
              > news:ctKdnWwyRK-RJVaiRVn-vw@netdoor.com. ..[color=green]
              > > I have the following line created in Notepad. I saved it as a js file[/color][/color]
              and[color=blue][color=green]
              > > the icon shows it as a javascript file. It is supposed to tile all open
              > > windows when I run it. The first time I run it I get an error in[/color][/color]
              character[color=blue][color=green]
              > > 1, so I delete the open parentheses and then get another compile error[/color]
              > when[color=green]
              > > I run it. Can somebody make this work for me?
              > >
              > > (new ActiveXObject(" Shell.Applicati on")).TileVerit cally()
              > >
              > >[/color]
              >
              >[/color]


              Comment

              • Joe Jones

                #8
                Re: java script to tile windows vertically won't work, why?

                I am afraid you are wasting your time in this newsgroup. There are alot of
                immature little kids here who still live at home with their mommies and
                daddies and have no respect for other people's time. Your killfile is going
                to get really big if you stay in this newsgroup too long. I read your post
                hoping to get a good answer too, and now my killfile is three extra users
                strong.

                If you figure out your solution, please pass the script to my email address.
                I would like to have that shortcut also.

                "Jane Dickerson" <janedickerson1 393@aol.com> wrote in message
                news:roOdnQ_W_v zJf1aiRVn-jw@netdoor.com. ..[color=blue]
                > Yea, but I want a single click option because I do this repetitively at[/color]
                work[color=blue]
                > and I am going to make the script a keyboard shortcut so I don't have to
                > take my fingers off the keyboard and reach for the mouse.
                >
                > I am starting to wonder what the purpose of this NG is?
                >
                > "Tony Mascolo" <qzmicro@hotmai l.com> wrote in message
                > news:SUOyb.2381 9$sb4.2869@news read2.news.pas. earthlink.net.. .[color=green]
                > > Doesn't windows do this through the right click menu on the taskbar?
                > >
                > > Tony
                > >
                > >
                > > "Jane Dickerson" <janedickerson1 393@aol.com> wrote in message
                > > news:ctKdnWwyRK-RJVaiRVn-vw@netdoor.com. ..[color=darkred]
                > > > I have the following line created in Notepad. I saved it as a js file[/color][/color]
                > and[color=green][color=darkred]
                > > > the icon shows it as a javascript file. It is supposed to tile all[/color][/color][/color]
                open[color=blue][color=green][color=darkred]
                > > > windows when I run it. The first time I run it I get an error in[/color][/color]
                > character[color=green][color=darkred]
                > > > 1, so I delete the open parentheses and then get another compile error[/color]
                > > when[color=darkred]
                > > > I run it. Can somebody make this work for me?
                > > >
                > > > (new ActiveXObject(" Shell.Applicati on")).TileVerit cally()
                > > >
                > > >[/color]
                > >
                > >[/color]
                >
                >[/color]


                Comment

                • Michael Winter

                  #9
                  Re: java script to tile windows veritaclly won't work, why?

                  Jane Dickerson wrote on 02 Dec 2003:
                  [color=blue]
                  > KillFiled you butthead.[/color]

                  Don't top post, and don't get so strung up. The advice he gave you is
                  quite valid. I also don't think he would really care about you
                  ignoring him, to be frank.

                  We aren't mindreaders. If you don't give us the right information, we
                  can't help you - simple as that. It's like submitting a bug report,
                  like this:

                  Help me. Program X doesn't work. Why?

                  It means nothing. A member of the support team will take one look at
                  that and either delete it or just tell the user to give more
                  information. That's the situation here.

                  The last point that Mr Lahn made is critical here. This is a group
                  for JavaScript when used on the Web (primarily). What you are asking
                  for is information on a matter that is restricted to one operating
                  system (that not all posters here use), in a manner that was not
                  intended when implemented by the OS programmers.

                  Go to Microsoft's developer website (msdn.microsoft .com) and try to
                  lookup what you are doing in the online library. Alternatively, ask
                  this question in a Windows group (microsoft.publ ic.... or comp.os.ms-
                  windows....) where this sort of thing is specialised.

                  Mike


                  And just so you know, if you don't like what I just wrote and you
                  killfile me, I /really/ couldn't care less! Expect the same treatment
                  and no help in the future.

                  --
                  Michael Winter
                  M.Winter@blueyo nder.co.uk.invalid (remove ".invalid" to reply)

                  Comment

                  • Michael Winter

                    #10
                    Re: java script to tile windows vertically won't work, why?

                    Joe Jones wrote on 02 Dec 2003:
                    [color=blue]
                    > I am afraid you are wasting your time in this newsgroup. There
                    > are alot of immature little kids here who still live at home
                    > with their mommies and daddies and have no respect for other
                    > people's time.[/color]

                    And you expect to be taken seriously as a responsible, intelligent
                    adult with comments like that?
                    [color=blue]
                    > Your killfile is going to get really big if you stay in this
                    > newsgroup too long. I read your post hoping to get a good answer
                    > too, and now my killfile is three extra users strong.[/color]

                    My word! Do all the trolls come out of the woodwork at this time of
                    year?

                    Mike

                    --
                    Michael Winter
                    M.Winter@blueyo nder.co.uk.invalid (remove ".invalid" to reply)

                    Comment

                    • Lee

                      #11
                      Re: java script to tile windows veritaclly won't work, why?

                      Jane Dickerson said:[color=blue]
                      >
                      >No, I typed it wrong in the post but in the script it is spelled right.[/color]

                      When asking about a problem with code, always copy and paste
                      the code, to avoid wasting everybody's time chasing typo's.

                      When responding to a post, always put your new text below
                      the text you're responding to, so that the message reads
                      correctly from top to bottom. This is particularly important
                      when people are going to respond back to your response.

                      When you don't like the way somebody responds, don't call
                      them a butthead. Seeing that can drive away people who
                      might otherwise be willing to help, but don't want to risk
                      being called rude names in case you take offense at their
                      suggestions.

                      When I copied your code to a .js file, corrected the spelling,
                      and clicked on the icon, all of the open windows were tiled.

                      Maybe you've got another typo?
                      Show your actual code and the error message you receive.

                      Comment

                      • Thomas 'PointedEars' Lahn

                        #12
                        Re: java script to tile windows vertically won't work, why?

                        Michael Winter wrote:
                        [color=blue]
                        > Joe Jones wrote on 02 Dec 2003:
                        > [bla]
                        >
                        > My word! Do all the trolls come out of the woodwork at this
                        > time of year?[/color]

                        I would not be surprised if Jane Dickerson and Joe Jones were
                        the same person and not even real names. Indications are that
                        both postings have a netdoor.com Msg-ID, used AOL accounts in
                        their From:, the style is similar (top post, explicit killfile
                        references, questioning [purpose of] the newsgroup in general)
                        and last but not least the NNTP-Posting-Host is the same, too.

                        BTW Mike, your From: is invalid. I presume you do that for
                        avoiding spam, but munging addresses is the wrong way to
                        address the issue. Please read RFCs 1036 and 2822 about valid
                        From: headers, and RFC 2606 about reserved top level DNS names,
                        especially about the appropriate use of the .invalid TLD. See
                        also <http://www.interhack.n et/pubs/munging-harmful/> for a
                        more informal explanation.


                        PointedEars
                        --
                        This script is a hack. It's brute force. It's horrible.
                        It doesn't use Artificial Intelligence. It doesn't use Virtual Reality.
                        It's not perl. It's not python. It probably won't work unchanged on
                        the "other" thousands of unices. But it worksforme. -- ramiro in
                        run-mozilla.sh

                        Comment

                        • Thomas 'PointedEars' Lahn

                          #13
                          Re: java script to tile windows vertically won't work, why?

                          Thomas 'Ingrid' Lahn wrote:
                          [color=blue]
                          > I would not be surprised if Jane Dickerson and Joe Jones were
                          > the same person and not even real names. [...][/color]

                          E-mail to janedickerson13 93@aol.com just bounced because the mailbox
                          does not exist. More:

                          | 3.4.1 NNTP-Posting-Host
                          |
                          | This line is added to the header of a posted article by the server.
                          | The contents of the header is either the IP address or the fully
                          | qualified domain name of the client host posting the article. [...]

                          Do not feed the troll.


                          PointedEars

                          Comment

                          • Fabian

                            #14
                            Re: java script to tile windows veritaclly won't work, why?

                            Jane Dickerson hu kiteb:
                            [color=blue]
                            > KillFiled you butthead.[/color]

                            The feeling is entirely mutual. Much as he can be annoying, and has a
                            talent for rubbing people the wrong way, at least he does not set out to
                            intentionally insult others. Unlike you. And his advice appears
                            genuinely useful in this case to boot.

                            Consider yourself killfiled. But no personal insults. That, quite
                            frankly, isn't possible.


                            --
                            --
                            Fabian
                            Visit my website often and for long periods!
                            Bersiaplah menghadapi terjangan badai kemenangan di AGAM69! Slot gacor RTP tinggi, deposit 10k QRIS 1 detik, bet 200 perak.


                            Comment

                            • Pete Simms

                              #15
                              Re: java script to tile windows vertically won't work, why?

                              Whoa......you sure got alot of time on your hands! Since your are obviously
                              a private investigator, let me give you one more suggestion to try. Go to
                              Google Advnaced Groups search and search for Jane Dickerson and Joe Jones
                              posts. Compare and contrast all them too.

                              BTW, top posting is a problem with Outlook Express and sp1 updates, which is
                              why I am really replying to you. I noticed that they also use OE.

                              "Thomas 'PointedEars' Lahn" <PointedEars@we b.de> wrote in message
                              news:3FCBF29C.8 020800@PointedE ars.de...[color=blue]
                              > Michael Winter wrote:
                              >[color=green]
                              > > Joe Jones wrote on 02 Dec 2003:
                              > > [bla]
                              > >
                              > > My word! Do all the trolls come out of the woodwork at this
                              > > time of year?[/color]
                              >
                              > I would not be surprised if Jane Dickerson and Joe Jones were
                              > the same person and not even real names. Indications are that
                              > both postings have a netdoor.com Msg-ID, used AOL accounts in
                              > their From:, the style is similar (top post, explicit killfile
                              > references, questioning [purpose of] the newsgroup in general)
                              > and last but not least the NNTP-Posting-Host is the same, too.
                              >
                              > BTW Mike, your From: is invalid. I presume you do that for
                              > avoiding spam, but munging addresses is the wrong way to
                              > address the issue. Please read RFCs 1036 and 2822 about valid
                              > From: headers, and RFC 2606 about reserved top level DNS names,
                              > especially about the appropriate use of the .invalid TLD. See
                              > also <http://www.interhack.n et/pubs/munging-harmful/> for a
                              > more informal explanation.
                              >
                              >
                              > PointedEars
                              > --
                              > This script is a hack. It's brute force. It's horrible.
                              > It doesn't use Artificial Intelligence. It doesn't use Virtual Reality.
                              > It's not perl. It's not python. It probably won't work unchanged on
                              > the "other" thousands of unices. But it worksforme. -- ramiro in
                              > run-mozilla.sh[/color]


                              Comment

                              Working...