 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
jined
Joined: 01 May 2008 Posts: 21
|
Posted: Tue Nov 17, 2009 10:18 am Post subject: Here the magician's Magic Ball |
|
|
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 !!!!!
|
|
|
| Back to top |
|
 |
aaffe
Joined: 17 May 2007 Posts: 942 Location: Germany - Deutschland
|
Posted: Tue Nov 17, 2009 12:24 pm Post subject: |
|
|
Oh come on, thats not a real script....
but thanks for sharing anyway... |
|
| Back to top |
|
 |
jined
Joined: 01 May 2008 Posts: 21
|
Posted: Tue Nov 17, 2009 12:53 pm Post subject: |
|
|
| aaffe wrote: | Oh come on, thats not a real script....
but thanks for sharing anyway... |
is more the idea than the script  |
|
| Back to top |
|
 |
aaffe
Joined: 17 May 2007 Posts: 942 Location: Germany - Deutschland
|
Posted: Tue Nov 17, 2009 3:36 pm Post subject: |
|
|
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 |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|