Hello All,

I have been experimenting with hta files and would like to
know if anyone knows if it is possible to set the size of
the window of an hta file. If this is possible, may I
request how you do that? I have experimented a little bit
with window.location, but that only gave me filepathname.

While I'm at it, if it is possible (or not possible) to
resize the hta window is it possible to set the location
on the screen?

Thanks,
Rich

Re: possible to resize hta window? by Torgeir

Torgeir
Tue Jan 20 12:34:47 CST 2004

Rich wrote:

> I have been experimenting with hta files and would like to
> know if anyone knows if it is possible to set the size of
> the window of an hta file. If this is possible, may I
> request how you do that? I have experimented a little bit
> with window.location, but that only gave me filepathname.
>
> While I'm at it, if it is possible (or not possible) to
> resize the hta window is it possible to set the location
> on the screen?

Hi

Here is the first part of the searchomatic.hta by Michael Harris:


<html>
<head>
<title>Search-o-matic</title>

<script language="vbscript">
moveto 100,100
resizeto 680,305
</script>

<hta:application
id="Searchomatic"
applicationname="Searchomatic"
singleinstance="yes"
windowstate="normal"
caption="yes"
showintaskbar="yes"
sysmenu="yes"
scroll="no"
/>
<script language="vbscript">

sub idSearchGroups_onclick()
....


--
torgeir
Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of the 1328 page
Scripting Guide: http://www.microsoft.com/technet/scriptcenter



Re: possible to resize hta window? by Rich

Rich
Tue Jan 20 12:48:42 CST 2004

That worked perfectly! Thanks very much.

Rich


>-----Original Message-----
>Rich wrote:
>
>> I have been experimenting with hta files and would like
to
>> know if anyone knows if it is possible to set the size
of
>> the window of an hta file. If this is possible, may I
>> request how you do that? I have experimented a little
bit
>> with window.location, but that only gave me
filepathname.
>>
>> While I'm at it, if it is possible (or not possible) to
>> resize the hta window is it possible to set the location
>> on the screen?
>
>Hi
>
>Here is the first part of the searchomatic.hta by Michael
Harris:
>
>
><html>
><head>
><title>Search-o-matic</title>
>
><script language="vbscript">
>moveto 100,100
>resizeto 680,305
></script>
>
><hta:application
> id="Searchomatic"
> applicationname="Searchomatic"
> singleinstance="yes"
> windowstate="normal"
> caption="yes"
> showintaskbar="yes"
> sysmenu="yes"
> scroll="no"
>/>
><script language="vbscript">
>
>sub idSearchGroups_onclick()
>.....
>
>
>--
>torgeir
>Microsoft MVP Scripting and WMI, Porsgrunn Norway
>Administration scripting examples and an ONLINE version
of the 1328 page
>Scripting Guide:
http://www.microsoft.com/technet/scriptcenter
>
>
>.
>