8daysaweek.co.uk Posted January 14, 2004 Share Posted January 14, 2004 Is it possible to change the background colour of a text popup window (SplashTextOn) ? [size=15]James :)[/size]www.8daysaweek.co.uk - A User-Focused OOo site, with Forums, Help Centre,Easy Installation CDs & OOo on USB Key Link to comment Share on other sites More sharing options...
8daysaweek.co.uk Posted January 15, 2004 Author Share Posted January 15, 2004 I'd like to be able to colour each successive Text Box with a different colour. Any thoughts? [size=15]James :)[/size]www.8daysaweek.co.uk - A User-Focused OOo site, with Forums, Help Centre,Easy Installation CDs & OOo on USB Key Link to comment Share on other sites More sharing options...
scriptkitty Posted January 15, 2004 Share Posted January 15, 2004 (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 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 January 16, 2004 by scriptkitty AutoIt3, the MACGYVER Pocket Knife for computers. Link to comment Share on other sites More sharing options...
8daysaweek.co.uk Posted January 17, 2004 Author Share Posted January 17, 2004 (edited) Thanks scriptkitty, I think I will put it into the idea lab, but your post has made me realize another solution 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 Edited September 16, 2004 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 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now