473,508 Members | 2,300 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.Application")).TileVeritcally ()
Jul 20 '05 #1
18 3399
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
"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
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
"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
24722
by: Steven Green | last post by:
I have a java app at work I used when I had Windows 98 and never had a problem. I did a clean install of Windows XP and of course Java was not included. I went to Sun, download Java 2 Runtime...
73
7904
by: RobertMaas | last post by:
After many years of using LISP, I'm taking a class in Java and finding the two roughly comparable in some ways and very different in other ways. Each has a decent size library of useful utilities...
21
20597
by: Dan V. | last post by:
I have tried a number of things including preloading, but the background image (water tile in header) in IE 6 will not display where other browsers will....
11
9212
by: DrUg13 | last post by:
In java, this seems so easy. You need a new object Object test = new Object() gives me exactly what I want. could someone please help me understand the different ways to do the same thing in...
18
2866
by: Mickey Segal | last post by:
On comp.lang.java.programmer we are discussing problems created for Java programs by pop-up blockers (in the thread "showDocument blocked by new microsoft pop-up blocker"). Our problem is that...
2
3130
by: Michael | last post by:
Running DB2 v7 UDB ("DB2 v7.1.0.93", "n031208" and "WR21333") on Windows XP, I am unable to find out why the "Build for Debug" option within Stored Procedure Builder is not enabled on Java stored...
1
2948
by: Kevin Walzer | last post by:
I'm not sure how often members of this list visit the Tkinter wiki at http://tkinter.unpythonic.net/wiki/FrontPage; this wiki seems to have less traffic in general than the Tcl/Tk wiki at...
4
1386
tpgames
by: tpgames | last post by:
The original game worked for 15 tile sliding game. I wanted a 24 tile game. What's wrong? var tiles = ,,,,]; var grid = ,,,,]; var game = document.createElement("div"); game.className =...
4
3962
by: Mudcat | last post by:
So I haven't programmed much in Python the past couple of years and have been catching up the last few days by reading the boards. I'll be making commercial Python applications again and wanted to...
0
7342
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7410
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7067
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7505
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5650
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5060
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4729
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3215
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
774
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.