Need an excuse ?
Teachers on your back and you need to give them some answer just to make them happy ?
Never fear fellow Edugeekers - the Instant Excuse solution is here !!
Unzip this script and double click on the edugeek excuse.exe and be ready to shout the excuse from any staff room up and down the land.....
[ Soon to be Incorporated into the Edugeek Admin's Admin Bar.....]
Last edited by mattx; 4th February 2008 at 08:49 PM. Reason: Updated Excuse Thingy Script
Great program! It would be nice to be able to generate a new excuse by pushing a button rather than having to close the program and open it again.
need two tabs hardware and software and then have a button on each. Otherwise you will be clicking the button for ages trying to get an excuse that sounds some what realistic.
how are you selecting the excuses ?
Had a bit of a problem getting them in an array to start with - [ I don't normally script along those lines ] - once I got that right it was straight forward to get the random aspect to work.
This random function uses the Mersenne Twister random number generator, MT19937, written by Takuji Nishimura, Makoto Matsumoto, Shawn Cokus, Matthe Bellew and Isaku Wada.
I have to admit my favourite excuse is to tell teachers that "the Flux capacitor isn't set to 2.21 jigawatts" If you have time, you've got to add that to your excuses array.
Gonk (4th February 2008)
ok I wasn't far off then as I was going to use a select case or switch and for each select case or switch get it to use a number and then get a function to randomly select one and get it from the select case
Public Function RandomNumber(ByVal MaxValue As Long, Optional _
ByVal MinValue As Long = 0)
On Error Resume Next
RandomNumber = Int((MaxValue - MinValue + 1) * Rnd) + MinValue
select case RandomNumber
msgbox "the flux capacitor"
msgbox "message number 2"
msgbox "next message"
not sure if that would work though ( just knocked that together quickly )
Your idea is close to how I first approached it - I did not want to use an .ini or text file as that would take the 'fun' out of the excuse as people could just read the excuses then....
So in all my daft wisdom, I added each excuse as a variable then tried to use the random function to pick a random variable. That didn't work - which is why I ended adding them to an array.
I've updated the Edugeek Excuse Thingy.
I've added Gonk's flux capacitor excuse + now it flashes up an Excuse for 5 seconds, then pops off - if you want another excuse just click the 'Excuse' button again.......
Yes folks, it's that exciting.
There are currently 1 users browsing this thread. (0 members and 1 guests)