Sign in to follow this  
Followers 0
8daysaweek.co.uk

Background Colour

4 posts in this topic




#3 ·  Posted (edited)

I don't know of any way to do this currently. It might be something to put in to the idea lab for a request.

If you wanted to make a seperate picture for each one, You would be down to only the titlebar for information.

Not a great solution, but they can be made fairly easily with HTML, Printscreen, and a bit of croping :whistle:

SplashImageOn("First", "Red.gif") 
sleep(1000)
SplashImageOn("Second", "blue.gif") 
; ect.

The better solution might be to write your own small html pages. Although it is a bit slow on refresh, since I don't know the proper command line.

$line="Hello World"
$color="#00FF66"
htmlshow($color,$line)
MsgBox(1,"Close","")
FileDelete(@ScriptDir &"\test.html")

Func htmlshow($color,$line)
AutoItSetOption("WinWaitDelay", 0)
$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

...edit Cleaned it up a bit.

Edited by scriptkitty

AutoIt3, the MACGYVER Pocket Knife for computers.

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Thanks scriptkitty,

I think I will put it into the idea lab, but your post has made me realize another solution :whistle:

I can simply type the text I want into Paint or another image editor / wordprocessor (screen print if necessary) and use SplashImageOn to display it, then I can give it whatever bgcolour I want.

This will be the easiest for me to get what I want done quickly, however I'm sure I'll learn from your code for opening html files.

Thanks m8 B)

Edited by 8daysaweek.co.uk

[size=15]James :)[/size]www.8daysaweek.co.uk - A User-Focused OOo site, with Forums, Help Centre,Easy Installation CDs & OOo on USB Key

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