 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
Jim Bob Guest
|
Posted: Wed Aug 03, 2005 10:38 am Post subject: Random Phrases |
|
|
I want a macro to be able to choose from a list of variable phrases. Ex:
1 : Hello
2 : Lol
3 : Sweet
ect. |
|
| Back to top |
|
 |
Thalon
Joined: 12 Jul 2005 Posts: 640
|
Posted: Wed Aug 03, 2005 10:48 am Post subject: |
|
|
A bit more infos of the how to select wouldn't be your damage.
Maybe this helps:
Hotkeys
Hotstrings
Controls
Thalon |
|
| Back to top |
|
 |
BoBo Guest
|
Posted: Wed Aug 03, 2005 11:06 am Post subject: |
|
|
These ones could be of interest as well:
Loop There are several. Check'm out.
StringSplit
IniRead
In any case you've to RTFM, there's no doubt about that.  |
|
| Back to top |
|
 |
Litmus Red
Joined: 25 Jul 2005 Posts: 139 Location: Richmond, Virginia
|
Posted: Wed Aug 03, 2005 1:07 pm Post subject: |
|
|
Something like this?
| Code: | ; Magic 8 Ball
InputBox, Question, Magic 8 Ball, State your question.
Ans1 = Outlook good.
Ans2 = Outlook not so good.
Ans3 = My reply is no.
Ans4 = Don't count on it.
Ans5 = You may rely on it.
Ans6 = Ask again later.
Ans7 = Most likely.
Ans8 = Cannot predict now.
Ans9 = Yes.
Ans10 = Yes definately.
Ans11 = Better not tell you now.
Ans12 = It is certain.
Ans13 = Very doubtful.
Ans14 = It is decidedly so.
Ans15 = Concentrate and ask again.
Ans16 = Signs point to yes.
Ans17 = My sources say no.
Ans18 = Without a doubt.
Ans19 = Reply hazy, try again.
Ans20 = As I see it, yes.
Random, AnsNum, 1, 20
Msgbox, , Magic 8 Ball, % Ans%AnsNum%
Return |
|
|
| Back to top |
|
 |
Guest
|
Posted: Wed Aug 03, 2005 8:19 pm Post subject: |
|
|
| Litmus Red wrote: | Something like this?
| Code: | ; Magic 8 Ball
InputBox, Question, Magic 8 Ball, State your question.
Ans1 = Outlook good.
Ans2 = Outlook not so good.
Ans3 = My reply is no.
Ans4 = Don't count on it.
Ans5 = You may rely on it.
Ans6 = Ask again later.
Ans7 = Most likely.
Ans8 = Cannot predict now.
Ans9 = Yes.
Ans10 = Yes definately.
Ans11 = Better not tell you now.
Ans12 = It is certain.
Ans13 = Very doubtful.
Ans14 = It is decidedly so.
Ans15 = Concentrate and ask again.
Ans16 = Signs point to yes.
Ans17 = My sources say no.
Ans18 = Without a doubt.
Ans19 = Reply hazy, try again.
Ans20 = As I see it, yes.
Random, AnsNum, 1, 20
Msgbox, , Magic 8 Ball, % Ans%AnsNum%
Return |
|
Yes, that works but how can I put the variable on a Send command? When I try to put it on a Send command it says This variable or function name contains an illegal character. |
|
| Back to top |
|
 |
Guest
|
Posted: Wed Aug 03, 2005 8:35 pm Post subject: |
|
|
| Figured it out, %AnsAnsNum% |
|
| Back to top |
|
 |
Invalid User
Joined: 14 Feb 2005 Posts: 442 Location: Texas, Usa
|
Posted: Wed Aug 03, 2005 11:37 pm Post subject: |
|
|
Now only to have your answer be calculated truth , not random. _________________ my lame sig  |
|
| 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
|