AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Here the magician's Magic Ball

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
jined



Joined: 01 May 2008
Posts: 21

PostPosted: Tue Nov 17, 2009 10:18 am    Post subject: Here the magician's Magic Ball Reply with quote

Ever seen that ball that will randomly gives suggestion for your choices, when you have no idea how things will be?

Here for you a simple-simple version in AHK Smile

Enjoy !

Code:



#NoEnv
SendMode Input
SetWorkingDir %A_ScriptDir%


msgbox Magician 1.0 - by Jined, think a question about something that answer can be YES or NO, then press OK, for listen the Magician!
SetFormat, integer, d
Random, rand, 1, 9999

if rand between 1 and 1000
    MsgBox, can't be more shitty! Forget about it.

if rand between 1001 and 2000
    MsgBox, Worst and worst!

if rand between 2001 and 3000
    MsgBox, Will be quite bad...

if rand between 3001 and 4000
    MsgBox, so and so, better avoid...

if rand between 4001 and 5000
    MsgBox, so and so, nothing exciting...

if rand between 5001 and 6000
    MsgBox, will be quite ok..

if rand between 6001 and 7000
    MsgBox, Seems will be ok :)

if rand between 7001 and 8000
    MsgBox, Will be great !! :D

if rand between 8001 and 9000
    MsgBox, Will be great, stunning and amazing !!! gooooo !!!

if rand between 9001 and 9999
    MsgBox, Will be absolutely perfect !!!!! Go ahead !!!!!
Back to top
View user's profile Send private message
aaffe



Joined: 17 May 2007
Posts: 942
Location: Germany - Deutschland

PostPosted: Tue Nov 17, 2009 12:24 pm    Post subject: Reply with quote

Oh come on, thats not a real script....
but thanks for sharing anyway...
Back to top
View user's profile Send private message
jined



Joined: 01 May 2008
Posts: 21

PostPosted: Tue Nov 17, 2009 12:53 pm    Post subject: Reply with quote

aaffe wrote:
Oh come on, thats not a real script....
but thanks for sharing anyway...


is more the idea than the script Wink
Back to top
View user's profile Send private message
aaffe



Joined: 17 May 2007
Posts: 942
Location: Germany - Deutschland

PostPosted: Tue Nov 17, 2009 3:36 pm    Post subject: Reply with quote

So why not shorter?:
Code:
#NoEnv
texts=
( LTrim
can't be more shitty! Forget about it.
Worst and worst!
Will be quite bad...
so and so, better avoid...
so and so, nothing exciting...
will be quite ok..
Seems will be ok :)
Will be great !! :D
Will be great, stunning and amazing !!! gooooo !!!
Will be absolutely perfect !!!!! Go ahead !!!!!
)
StringSplit,txt,texts,`n,`r

msgbox Magician 1.0 - by Jined, think a question about something that answer can be YES or NO, then press OK, for listen the Magician!
SetFormat, integer, d
Random,,%A_now%
Random, rand, 1, %txt0%
MsgBox, % txt%rand%
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group