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

J

Jane Dickerson

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()
 
L

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

Thomas 'PointedEars' Lahn

Jane said:
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
 
J

Jane Dickerson

KillFiled you butthead.

Thomas 'PointedEars' Lahn said:
That is unimportant.


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.


How do you get the idea?


What error?


That is a useless error description. What errors do you get?


Define: run


Have you ever thought of real debugging, including consulting the
related manual (MSDN Library) first?


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
 
J

Jane Dickerson

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?
 
J

Joe Jones

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

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

Michael Winter

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

Michael Winter

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
 
T

Thomas 'PointedEars' Lahn

Michael said:
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
 
T

Thomas 'PointedEars' Lahn

Thomas said:
I would not be surprised if Jane Dickerson and Joe Jones were
the same person and not even real names. [...]

E-mail to (e-mail address removed) 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
 
F

Fabian

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

Pete Simms

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 said:
Michael said:
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
 
M

Michael Winter

Pete Simms wrote on 02 Dec 2003:

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
 
R

Richard Cornford

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

Thomas 'PointedEars' Lahn

Pete said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,045
Latest member
DRCM

Latest Threads

Top