By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,480 Members | 1,766 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,480 IT Pros & Developers. It's quick & easy.

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

P: n/a
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.Application")).TileVeritcally ()
Jul 20 '05 #1
Share this Question
Share on Google+
18 Replies


P: n/a
Doesn't windows do this through the right click menu on the taskbar?

Tony
"Jane Dickerson" <ja***************@aol.com> wrote in message
news:ct********************@netdoor.com...
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.Application")).TileVeritcally ()

Jul 20 '05 #2

P: n/a
Lee
Jane Dickerson said:

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.Application")).TileVeritcally ()

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

Jul 20 '05 #3

P: n/a
Jane Dickerson wrote:
I have the following line created in Notepad.
That is unimportant.
I saved it as a js file and the icon shows it as a javascript
file.
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.
It is supposed to tile all open windows when I run it.
How do you get the idea?
The first time I run it I get an error in character 1,
What error?
so I delete the open parentheses and then get another compile error
That is a useless error description. What errors do you get?
when I run it.
Define: run
Can somebody make this work for me?
Have you ever thought of real debugging, including consulting the
related manual (MSDN Library) first?
(new ActiveXObject("Shell.Application")).TileVeritcally ()


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
Jul 20 '05 #4

P: n/a
KillFiled you butthead.

"Thomas 'PointedEars' Lahn" <Po*********@web.de> wrote in message
news:3F**************@PointedEars.de...
Jane Dickerson wrote:
I have the following line created in Notepad.


That is unimportant.
I saved it as a js file and the icon shows it as a javascript
file.


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.
It is supposed to tile all open windows when I run it.


How do you get the idea?
The first time I run it I get an error in character 1,


What error?
so I delete the open parentheses and then get another compile error


That is a useless error description. What errors do you get?
when I run it.


Define: run
Can somebody make this work for me?


Have you ever thought of real debugging, including consulting the
related manual (MSDN Library) first?
(new ActiveXObject("Shell.Application")).TileVeritcally ()


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

Jul 20 '05 #5

P: n/a
No, I typed it wrong in the post but in the script it is spelled right.

"Lee" <RE**************@cox.net> wrote in message
news:bq*********@drn.newsguy.com...
Jane Dickerson said:

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 character1, so I delete the open parentheses and then get another compile error whenI run it. Can somebody make this work for me?

(new ActiveXObject("Shell.Application")).TileVeritcally ()

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

Jul 20 '05 #6

P: n/a
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" <qz*****@hotmail.com> wrote in message
news:SU******************@newsread2.news.pas.earth link.net...
Doesn't windows do this through the right click menu on the taskbar?

Tony
"Jane Dickerson" <ja***************@aol.com> wrote in message
news:ct********************@netdoor.com...
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.Application")).TileVeritcally ()


Jul 20 '05 #7

P: n/a
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" <ja***************@aol.com> wrote in message
news:ro********************@netdoor.com...
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" <qz*****@hotmail.com> wrote in message
news:SU******************@newsread2.news.pas.earth link.net...
Doesn't windows do this through the right click menu on the taskbar?

Tony
"Jane Dickerson" <ja***************@aol.com> wrote in message
news:ct********************@netdoor.com...
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.Application")).TileVeritcally ()



Jul 20 '05 #8

P: n/a
Jane Dickerson wrote on 02 Dec 2003:
KillFiled you butthead.


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.public.... 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.******@blueyonder.co.uk.invalid (remove ".invalid" to reply)
Jul 20 '05 #9

P: n/a
Joe Jones wrote on 02 Dec 2003:
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.
And you expect to be taken seriously as a responsible, intelligent
adult with comments like that?
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.


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

Mike

--
Michael Winter
M.******@blueyonder.co.uk.invalid (remove ".invalid" to reply)
Jul 20 '05 #10

P: n/a
Lee
Jane Dickerson said:

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


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.

Jul 20 '05 #11

P: n/a
Michael Winter wrote:
Joe Jones wrote on 02 Dec 2003:
[bla]

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


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.net/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
Jul 20 '05 #12

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


E-mail to ja***************@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
Jul 20 '05 #13

P: n/a
Jane Dickerson hu kiteb:
KillFiled you butthead.


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!
http://www.lajzar.co.uk

Jul 20 '05 #14

P: n/a
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" <Po*********@web.de> wrote in message
news:3F**************@PointedEars.de...
Michael Winter wrote:
Joe Jones wrote on 02 Dec 2003:
[bla]

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


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.net/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

Jul 20 '05 #15

P: n/a
Pete Simms wrote on 02 Dec 2003:

<snip>
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.


I think you have the wrong definition of top-posting. It has nothing
to do with the newsreader, and everything to do with the poster. You
did it replying to Mr Lahn. A top-post is where you write your reply
first, then quote what you are replying to afterwards. To use the
(bad) joke:

Top-posting.

What is the most annoying habit on Usenet?

As you can see, it's easier to know what you're reading the answer
to, when you've read the question first.

<snipped top-posted replies>

Furthermore, you should trim the original post, leaving only what
relates to your reply. By doing this, you are far less likely to
ruffle peoples feathers, and prevents the endless chorus of: "Don't
top-post!"

Just passing on some advice,
Mike

Top-posting definition:
http://catb.org/~esr/jargon/html/T/top-post.html

--
Michael Winter
M.******@blueyonder.co.uk.invalid (remove ".invalid" to reply)
Jul 20 '05 #16

P: n/a
"Pete Simms" <pe*********@work.com> wrote in message
news:bq*************@ID-216769.news.uni-berlin.de...
<snip>
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.

<snip>

Top posting is something that is done by humans not software. OE may
have its faults but dictating the format of news posts is not one of
them.

Richard.
Jul 20 '05 #17

P: n/a
Pete Simms wrote:
Whoa......you sure got alot of time on your hands!
Not quite. Investigation is child's play if you know where to look for.
In OE press Ctrl+F3 to see the source text of a posting, I press Ctrl+U
in Mozilla/5.0 (and have http://mnenhy.mozdev.org/ to display some more
than the default headers).
Since your are obviously a private investigator,
LOL
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.
I could do that since there is not much to compare, but I will not
(that would waste too much of my time.) The NNTP-Posting-Host header
is the same for both postings. Their authors may be different people,
though, if both use the same proxy server and the network uses IP
address hiding. This nevertheless does not negate their intention,
both postings (and, if existing, both people) act as trolls here.
BTW, top posting is a problem with Outlook Express and sp1 updates,
OE has many nasty bugs but top-posting (and full-quoting) is only your
fault. Newsreaders place the cursor above the quote so that you can
trim the quotes to the necessary parts while you leave the quotes you
are referring to in your answers *below* it. It does it not for the
purpose that you place the answer *before* the "question"!
which is why I am really replying to you. I noticed that they also use OE.

[Top post]


Score adjusted.
PointedEars
Jul 20 '05 #18

P: n/a
"Jane Dickerson" <ja***************@aol.com> wrote in message news:<ro********************@netdoor.com>...
I am starting to wonder what the purpose of this NG is?


Go piss yourself, you dum obnoxious top-posting embarrassment.
Jul 20 '05 #19

This discussion thread is closed

Replies have been disabled for this discussion.