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 

Random Phrases

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Jim Bob
Guest





PostPosted: Wed Aug 03, 2005 10:38 am    Post subject: Random Phrases Reply with quote

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

PostPosted: Wed Aug 03, 2005 10:48 am    Post subject: Reply with quote

A bit more infos of the how to select wouldn't be your damage.
Maybe this helps:
Hotkeys
Hotstrings
Controls

Thalon
Back to top
View user's profile Send private message
BoBo
Guest





PostPosted: Wed Aug 03, 2005 11:06 am    Post subject: Reply with quote

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. Cool
Back to top
Litmus Red



Joined: 25 Jul 2005
Posts: 139
Location: Richmond, Virginia

PostPosted: Wed Aug 03, 2005 1:07 pm    Post subject: Reply with quote

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
View user's profile Send private message
Guest






PostPosted: Wed Aug 03, 2005 8:19 pm    Post subject: Reply with quote

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






PostPosted: Wed Aug 03, 2005 8:35 pm    Post subject: Reply with quote

Figured it out, %AnsAnsNum%
Back to top
Invalid User



Joined: 14 Feb 2005
Posts: 442
Location: Texas, Usa

PostPosted: Wed Aug 03, 2005 11:37 pm    Post subject: Reply with quote

Now only to have your answer be calculated truth Very Happy , not random.
_________________
my lame sig Smile
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help 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