Sign in to follow this  
Followers 0

HTML/Explorer help

1 post in this topic

#1 ·  Posted (edited)

Anyone know how to open up explorer in window mode via the command line? I can do it in javascript, but not standard. As in no scrollbars, no titlebar, ect.

I dug up this old code I made for someone else's question, and thought it could use some improvement.

Basically I am trying to get my little HTML popup function to look a bit better.

$line=InputBox("Question", "What do you want to show in the popup?", "", "", -1, -1, 0, 0)
FileDelete(@ScriptDir &"\test.html")

Func htmlshow($color,$line)
$title="My AutoIt3 Status"
$file = FileOpen("test.html", 2)
If $file = -1 Then
     MsgBox(0, "Error", "Unable to open file.")
FileWriteLine($file, "<title>My AutoIt3 Status</title>"& @LF)
FileWriteLine($file, "<body bgcolor="& $color &">" & @LF)
FileWriteLine($file, $line & @LF)
Run("C:\Program Files\Internet Explorer\IEXPLORE.EXE -k "& @ScriptDir &"\test.html","",@SW_HIDE)
WinWait ( $title, "") 
WinMove ( $title, "", 1, 1, 400, 400) 
WinShow ($title, "", @SW_RESTORE) 

PS this was an old test.au3, and it could use a lot more variables, but I am too lazy to fix it.

Edited by scriptkitty

AutoIt3, the MACGYVER Pocket Knife for computers.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
Followers 0