Jump to content

HTML/Explorer help


Recommended Posts

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)
$color="#00FF66"
htmlshow($color,$line)
MsgBox(1,"Close","")
FileDelete(@ScriptDir &"\test.html")

Func htmlshow($color,$line)
$title="My AutoIt3 Status"
winclose($title)
$file = FileOpen("test.html", 2)
If $file = -1 Then
     MsgBox(0, "Error", "Unable to open file.")
     Exit
EndIf
FileWriteLine($file, "<title>My AutoIt3 Status</title>"& @LF)
FileWriteLine($file, "<body bgcolor="& $color &">" & @LF)
FileWriteLine($file, $line & @LF)
FileClose($file)
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) 
EndFunc

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.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...