+ Post New Thread
Page 1 of 2 12 LastLast
Results 1 to 15 of 27
Scripts Thread, Need An Excuse ? in Coding and Web Development; Need an excuse ? Teachers on your back and you need to give them some answer just to make them ...
  1. #1

    mattx's Avatar
    Join Date
    Jan 2007
    Posts
    9,249
    Thank Post
    1,061
    Thanked 1,070 Times in 626 Posts
    Rep Power
    741

    Question Need An Excuse ?

    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.....]
    Attached Files Attached Files
    Last edited by mattx; 4th February 2008 at 09:49 PM. Reason: Updated Excuse Thingy Script

  2. 3 Thanks to mattx:

    Cowardlyduck (7th October 2009), Edu-IT (4th February 2008), Gatt (5th February 2008)

  3. #2

    Edu-IT's Avatar
    Join Date
    Nov 2007
    Posts
    7,459
    Thank Post
    408
    Thanked 672 Times in 614 Posts
    Rep Power
    192
    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.

  4. #3

    mattx's Avatar
    Join Date
    Jan 2007
    Posts
    9,249
    Thank Post
    1,061
    Thanked 1,070 Times in 626 Posts
    Rep Power
    741
    Quote Originally Posted by Edu-IT View Post
    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.
    Your wish is my command, I'll add that feature later in the week.....

  5. #4

    mac_shinobi's Avatar
    Join Date
    Aug 2005
    Posts
    10,053
    Thank Post
    3,583
    Thanked 1,123 Times in 1,025 Posts
    Rep Power
    377
    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.

  6. #5

    mattx's Avatar
    Join Date
    Jan 2007
    Posts
    9,249
    Thank Post
    1,061
    Thanked 1,070 Times in 626 Posts
    Rep Power
    741
    Quote Originally Posted by gecko View Post
    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.
    Its only a bit of fun Gecko !!
    But I do like the idea of splitting it - when I have some more time to spare I will most probably take this into consideration....

  7. #6

    mac_shinobi's Avatar
    Join Date
    Aug 2005
    Posts
    10,053
    Thank Post
    3,583
    Thanked 1,123 Times in 1,025 Posts
    Rep Power
    377
    Quote Originally Posted by mattx View Post
    Its only a bit of fun Gecko !!
    But I do like the idea of splitting it - when I have some more time to spare I will most probably take this into consideration....
    yeah I know ... hehe

    you using vb 6 or what are you using ?

  8. #7

    mattx's Avatar
    Join Date
    Jan 2007
    Posts
    9,249
    Thank Post
    1,061
    Thanked 1,070 Times in 626 Posts
    Rep Power
    741
    Quote Originally Posted by gecko View Post
    yeah I know ... hehe

    you using vb 6 or what are you using ?
    Its done in AutoIT - nothing too fancy...

  9. #8

    mac_shinobi's Avatar
    Join Date
    Aug 2005
    Posts
    10,053
    Thank Post
    3,583
    Thanked 1,123 Times in 1,025 Posts
    Rep Power
    377
    how are you selecting the excuses ?

  10. #9

    mattx's Avatar
    Join Date
    Jan 2007
    Posts
    9,249
    Thank Post
    1,061
    Thanked 1,070 Times in 626 Posts
    Rep Power
    741
    Quote Originally Posted by gecko View Post
    how are you selecting the excuses ?
    The excuses are in an array, then I just used a random function to choose one.
    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.

  11. #10
    Gonk's Avatar
    Join Date
    Aug 2007
    Location
    Haverfordwest, Pembrokeshire
    Posts
    555
    Thank Post
    131
    Thanked 131 Times in 86 Posts
    Rep Power
    103

    Talking

    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.

  12. #11

    mattx's Avatar
    Join Date
    Jan 2007
    Posts
    9,249
    Thank Post
    1,061
    Thanked 1,070 Times in 626 Posts
    Rep Power
    741
    Quote Originally Posted by Gonk View Post
    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.
    I think a flux capacitor excuse is in there - let me check.....

    Arrrr yes - excuse number 277:

    "Your Flux Capacitor has gone bad."

    I shall add the other one though.....

  13. Thanks to mattx from:

    Gonk (4th February 2008)

  14. #12
    Gonk's Avatar
    Join Date
    Aug 2007
    Location
    Haverfordwest, Pembrokeshire
    Posts
    555
    Thank Post
    131
    Thanked 131 Times in 86 Posts
    Rep Power
    103
    Quote Originally Posted by mattx View Post
    I think a flux capacitor excuse is in there - let me check.....

    Arrrr yes - excuse number 277:

    "Your Flux Capacitor has gone bad."

    I shall add the other one though.....
    Sir,

    Your are an absolute gent.

    Cheers

  15. #13

    mac_shinobi's Avatar
    Join Date
    Aug 2005
    Posts
    10,053
    Thank Post
    3,583
    Thanked 1,123 Times in 1,025 Posts
    Rep Power
    377
    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
    Randomize Timer
    RandomNumber = Int((MaxValue - MinValue + 1) * Rnd) + MinValue

    End Function

    select case RandomNumber

    case 0:
    msgbox "the flux capacitor"
    case 1:
    msgbox "message number 2"
    case 2:
    msgbox "next message"
    End Select

    not sure if that would work though ( just knocked that together quickly )

  16. #14

    mattx's Avatar
    Join Date
    Jan 2007
    Posts
    9,249
    Thank Post
    1,061
    Thanked 1,070 Times in 626 Posts
    Rep Power
    741
    Quote Originally Posted by gecko View Post
    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
    Randomize Timer
    RandomNumber = Int((MaxValue - MinValue + 1) * Rnd) + MinValue

    End Function

    select case RandomNumber

    case 0:
    msgbox "the flux capacitor"
    case 1:
    msgbox "message number 2"
    case 2:
    msgbox "next message"
    End Select

    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.

  17. #15

    mattx's Avatar
    Join Date
    Jan 2007
    Posts
    9,249
    Thank Post
    1,061
    Thanked 1,070 Times in 626 Posts
    Rep Power
    741
    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.
    Attached Files Attached Files



SHARE:
+ Post New Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. Bit of fun - I need an excuse for Monday morning
    By beeswax in forum Other Stuff
    Replies: 14
    Last Post: 27th February 2006, 11:31 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •