ashley Posted July 20, 2007 Share Posted July 20, 2007 (edited) ok as the title says...its a random background color changer...just put this at the under your #inculdes#include <GUIConstants.au3> $Rcolor = Random( 0xFFFFFF, 0x2B1B1B1, 0) #Region ### START Koda GUI section ### Form= $GUI = GUICreate("random background color", 604, 111, 193, 115) GUISetBkColor($Rcolor) $test = GUICtrlCreateLabel("this is a test to show you how to make a random background color...", 40, 32, 546, 24) GUICtrlSetFont(-1, 12, 800, 6, "MS Sans Serif") GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEndnow save the script...run it look at the background color...close itrun it look at the background coloroh look it changed... As i said i only did this because i got bored... but someone somewere might find it useful. tell me what you think Edited July 20, 2007 by ashley Free icons for your programs Link to comment Share on other sites More sharing options...
James Posted July 20, 2007 Share Posted July 20, 2007 I think you mean bored. This is pointless, but shows the Random() function. Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
ashley Posted July 20, 2007 Author Share Posted July 20, 2007 I think you mean bored. This is pointless, but shows the Random() function.i know its point less... it just makes the gui more alive... it takes gui's one setp forward...and somebody might find it useful... Free icons for your programs Link to comment Share on other sites More sharing options...
Toady Posted July 20, 2007 Share Posted July 20, 2007 nice job!, Awesome script! www.itoady.com A* (A-star) Searching Algorithm - A.I. Artificial Intelligence bot path finding Link to comment Share on other sites More sharing options...
gseller Posted July 20, 2007 Share Posted July 20, 2007 Hi, nice idea, I might use it if not encrypted. Why the encription? Aren't we here to share? Not trying to stir anything up. I just don't like running anything on my pc that I cannot read first.. Link to comment Share on other sites More sharing options...
ashley Posted July 20, 2007 Author Share Posted July 20, 2007 Hi, nice idea, I might use it if not encrypted. Why the encription? Aren't we here to share? Not trying to stir anything up. I just don't like running anything on my pc that I cannot read first..hi thanks i didnt realise...ill edit that now... Free icons for your programs Link to comment Share on other sites More sharing options...
gseller Posted July 20, 2007 Share Posted July 20, 2007 SWEEEET!! That is cool!! Nice Job Ashley... Link to comment Share on other sites More sharing options...
ashley Posted July 20, 2007 Author Share Posted July 20, 2007 SWEEEET!! That is cool!! Nice Job Ashley...thanks...look at my random background picture changer too...heres the linkrandom background picture changer Free icons for your programs Link to comment Share on other sites More sharing options...
ashley Posted July 20, 2007 Author Share Posted July 20, 2007 have you looked... Free icons for your programs Link to comment Share on other sites More sharing options...
gseller Posted July 20, 2007 Share Posted July 20, 2007 (edited) have you looked... Sorry my wife and I went out Garage Selling.. Will look now..Edit:Looks and works very nice. Easy to add in and keeps a GUI always different.. Edited July 20, 2007 by gesller Link to comment Share on other sites More sharing options...
ashley Posted July 20, 2007 Author Share Posted July 20, 2007 Sorry my wife and I went out Garage Selling.. Will look now..Edit:Looks and works very nice. Easy to add in and keeps a GUI always different..thanks for the feedback Free icons for your programs Link to comment Share on other sites More sharing options...
jaenster Posted July 24, 2007 Share Posted July 24, 2007 its a nice tutorial to show the random function -jaenster Link to comment Share on other sites More sharing options...
ashley Posted July 24, 2007 Author Share Posted July 24, 2007 thanks Free icons for your programs 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