AutoHotkey Community

It is currently May 26th, 2012, 11:23 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: November 17th, 2009, 11:18 am 
Offline

Joined: May 1st, 2008, 2:18 am
Posts: 21
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 :)

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 !!!!!


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 17th, 2009, 1:24 pm 
Offline

Joined: May 17th, 2007, 12:07 pm
Posts: 1004
Location: Germany - Deutschland
Oh come on, thats not a real script....
but thanks for sharing anyway...


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 17th, 2009, 1:53 pm 
Offline

Joined: May 1st, 2008, 2:18 am
Posts: 21
aaffe wrote:
Oh come on, thats not a real script....
but thanks for sharing anyway...


is more the idea than the script ;)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 17th, 2009, 4:36 pm 
Offline

Joined: May 17th, 2007, 12:07 pm
Posts: 1004
Location: Germany - Deutschland
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%


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], Miguel and 13 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group