Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3

Thread: HTA parameters

  1. #1
    New Coder
    Join Date
    Sep 2007
    Posts
    37
    Thanks
    6
    Thanked 0 Times in 0 Posts

    HTA parameters

    I have an .HTA file that I would like opened with certain parameters. I.e. its size (whether it be fullscreen or set with dimensions). How can I do this without using a popup?

  • #2
    Regular Coder zro@rtv's Avatar
    Join Date
    Feb 2005
    Location
    on the network
    Posts
    433
    Thanks
    0
    Thanked 1 Time in 1 Post
    eek.
    I'm not sure if many people are going to be able to help you with proprietary MS nastiness. Are you sure that you want to use that/do that?

    If so, the best I can do is point to the docs:
    http://msdn2.microsoft.com/en-us/library/ms536496.aspx
    http://msdn2.microsoft.com/en-us/library/ms531018.aspx
    ._-zro
    zro@redtv
    zro.redtv.org

    "If HTML and the Web made all the online documents look like one huge book, RDF, schema, and inference languages will make all the data in the world look like one huge database"
    -Tim Berners-Lee, Weaving the Web, 1999

  • Users who have thanked zro@rtv for this post:

    etg4free (11-02-2007)

  • #3
    Regular Coder
    Join Date
    Jun 2007
    Posts
    805
    Thanks
    123
    Thanked 23 Times in 23 Posts
    You have to use javascript.

    Try this one, works in .hta for me (for resize and screen pos):

    Code:
    <script>
    function resizeMove(){
    	try{
    		wWidth=500;
    		wHeight=183;
    		resizeTo(wWidth,wHeight);
    		
    		moveTo((screen.availWidth/1-wWidth/1),(screen.availHeight/1-wHeight/0));
    
    	} catch(e){
    		setTimeout('resizeMove()');
    	}
    }
    
    resizeMove();
    
    
    function retFalse(){
    	return false;
    }
    
    document.oncontextmenu=function(){return (event.srcElement.tagName=='INPUT')};
    document.onselectstart=function(){return (event.srcElement.tagName=='INPUT')};
    document.ondragstart=retFalse;
    
    </script>

  • Users who have thanked CaptainB for this post:

    etg4free (11-02-2007)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •