PDA

View Full Version : HTA and SingleInstance


Codin_away
07-26-2004, 05:00 PM
I can't think of where else to post this so I figured I'd start in the HTML forum. I'm having trouble with an HTA doc. I dumb down the page to where it's NOTHING but a HTA tags. It brings up the HTA window and that works OK. But what I've not got to work is the SINGLEINSTANCE=YES tag. Anyone run into this? It seems like there's no other configuration needed. The singleinstance tag is supposed to keep another hta file with the same title from loading a second instance. I just open up the same file twice in a row.

Any help would be great...

See my simple page:

<HTML>
<HEAD>
<TITLE>New Manufacturing Help Files</TITLE>
<HTA:APPLICATION ID="One"
SINGLEINSTANCE="no"
BORDERSTYLE="normal"
SHOWINTASKBAR="yes"
BORDER="thick"
SYSMENU="yes"
CAPTION="yes"
NAVIGABLE="yes"
WINDOWSTATE="normal"
ICON="">

</HEAD>

</html>

Frank
07-26-2004, 06:36 PM
For information on Hta's you may want to check this site.

http://msdn.microsoft.com/library/default.asp?url=/workshop/author/hta/overview/htaoverview.asp

Codin_away
07-26-2004, 07:12 PM
I've been there... that's the main source for anything HTA related. The problem is they describe the usage of the function but it's not working as described...

neofibril
07-26-2004, 08:06 PM
SINGLEINSTANCE Attribute | singleInstance Property

When set to true, the singleInstance property checks the value of the applicationName property before launching an instance of the application. For this check to be valid, the applicationName property must have a unique value assigned to it. You can use the applicationName property to identify a single application, regardless of the URL used to access it.

Frank
07-27-2004, 02:46 PM
To just have only one instance of the hta open you need to have

SINGLEINSTANCE="yes"

right now you have it as "no"

Codin_away
07-27-2004, 06:03 PM
yeah... I had posted my code after playing with it. I have it set to "yes"

neofibril
07-27-2004, 06:11 PM
Is setting the applicationname property not working, somehow, or what?