Re: Scripting mit hta-Dateien



Thomas Steinbach schrieb:
Hallo NG,

ich hoffe ich bin hier nicht zu OT, aber ich
habe folgendes Script in einer Datei
"start.hta"

<script>
window.open( "http://localhost/"; )
</script>

bei einem Doppelklick oeffnet sich nun
der Standard-Webbrowser mit der angegebene
Seite, aber auch ein zweites Fenster (ohne
irgendwelche Schoerkeleien) in dem aber
nichts zu sehen ist...

Wie erreiche ich es nun das sich der Browser
nicht oeffnet und nur das "spartanische" Fenster
benutzt und zur Anzeige verwendet wird?

btw: Gibt es hier eine FAQ zur Group?
btw2: Wo finde ich eine nicht so ueberladene
Einfuehrung zu Scripting mit hta, wie ich es
bei MS ausgemacht habe und das auch
andere script-Sprachen als VBScript
behandelt?

Thomas

Zwei (sehr kurze) deutsche Artikel:

http://www.drweb.de/programmierung/hta.shtml
http://www.devtrain.de/artikel_879.aspx

Einstieg (Englisch)

http://www.microsoft.com/technet/scriptcenter/hubs/htas.mspx

HTA-Code-Generator:

http://www.microsoft.com/downloads/details.aspx?FamilyId=231D8143-F21B-4707-B583-AE7B9152E6D9&displaylang=en

"http://localhost"; im spartanischen HTA-Fenster oeffnen:

Kommandozeile:
mshta http://localhost

In einem .HTA kann man dieses Kommando mit WSH.Run abschicken; dann
wird die Homepage nicht von IE, sondern von mshta.exe angezeigt.


.



Relevant Pages

  • Scripting mit hta-Dateien
    ... habe folgendes Script in einer Datei ... aber auch ein zweites Fenster (ohne ...
    (microsoft.public.de.german.scripting.wsh)
  • Re: How Using the "Select Users, Computer, and Groups" CommonDialo
    ... > Dialogbox within a HTA, but thats not exactly what I thougt. ... > wich opens my desired dialog. ... COM object for use in script. ...
    (microsoft.public.windows.server.scripting)
  • Re: WScript.Sleep for HTA?
    ... >> I've got an HTA that does a bunch of database processing ... It's my backup for WSCs, where the calling script fails to ... and not a basic problem with handling the WScript object. ...
    (microsoft.public.scripting.vbscript)
  • Re: Fetching META tag data from non-local URL
    ... >> remote site in an IFRAME and then access it in various ways. ... >> scenario) is whether a script in the remote site would be able to access the HTA upward ... single instance of your example (really, what I did was to download it, examine it ...
    (microsoft.public.frontpage.programming)
  • Re: Logon HTA display not updating
    ... I have a HTA script that runs as a logon script. ... I use a textarea to display a timestamped message ... Sub Main ...
    (microsoft.public.scripting.vbscript)

Loading