Mrrrr's Forum (VIEW ONLY)
Un forum care ofera solutii pentru unele probleme legate in general de PC. Pe langa solutii, aici puteti gasi si alte lucruri interesante // A forum that offers solutions to some PC related issues. Besides these, here you can find more interesting stuff.
Lista Forumurilor Pe Tematici
Mrrrr's Forum (VIEW ONLY) | Reguli | Inregistrare | Login

POZE MRRRR'S FORUM (VIEW ONLY)

Nu sunteti logat.
Nou pe simpatie:
pisy_rasfatata
Femeie
23 ani
Bucuresti
cauta Barbat
23 - 55 ani
Mrrrr's Forum (VIEW ONLY) / Tutoriale si Ghiduri Utile // Tutorials and useful guides / [VBS] Resize HTA Window On Load Depending on Screen Resolution Moderat de TRaP, TonyTzu
Autor
Mesaj Pagini: 1
TRaP
Moderator

Inregistrat: acum 7 ani
Postari: 802
On a different resolution screen, a HTA that fits perfectly on my laptop would not fit very well, text would be covered by margins.

This goes right after the <head></head> tags:


<script LANGUAGE="VBScript">
Sub Window_onLoad
If Window.Screen.availWidth < 1800 Then
    window.resizeTo 720,640
End If
   
If Window.Screen.availWidth > 1800 Then
    window.resizeTo 820,700
End If
End Sub
</script>


pus acum 2 ani
   
TRaP
Moderator

Inregistrat: acum 7 ani
Postari: 802
Adding the "Sub" around the resize options doesn't really work well sometimes.

Simpler code like below, added before the <HTA> tag is recommended


<script language="VBScript">
    resizeTo 950,810     ' W, H
    moveTo 100,25         ' from left, from top
</script>


Source:


pus acum 3 saptamani
   
Pagini: 1  

Mergi la