AutoIt3 Random Messages

This is a discussion on AutoIt3 Random Messages within the Development forum part of the Software/Hardware category; Hey! Got a question relating to AutoIt3. I want some random messages to be displayed... dunno where the mistake is ...


+ Reply to Thread
Results 1 to 4 of 4

Thread: AutoIt3 Random Messages

  1. #1
    t0pcraft- is offline Hacker
    t0pcraft- will become famous soon enough
    Join Date
    Jan 2008
    Location
    Under Your Bed
    Posts
    244
    Downloads
    13
    Uploads
    0
    Rep Power
    3
    Reputation
    58
    Hey!
    Got a question relating to AutoIt3.

    I want some random messages to be displayed...
    dunno where the mistake is in the code, just can't find it.

    The problem is: There is no error, every variables are declared fine.
    But it just does nothing... What am I doing wrong? :/

    Here's the code:

    Code:
                        
               $randommessage = Random(1, 10)
                        Select
                            Case $randommessage = 1
                                Send($msg1)
                                Send ("{ENTER}")
                                Sleep ($interval)
                            Case $randommessage = 2
                                Send($msg2)
                                Send ("{ENTER}")
                                Sleep ($interval)
                            Case $randommessage = 3
                                Send($msg3)
                                Send ("{ENTER}")
                                Sleep ($interval)
                            Case $randommessage = 4
                                Send($msg4)
                                Send ("{ENTER}")
                                Sleep ($interval)
                            Case $randommessage = 5
                                Send($msg5)
                                Send ("{ENTER}")
                                Sleep ($interval)
                            Case $randommessage = 6
                                Send($msg6)
                                Send ("{ENTER}")
                                Sleep ($interval)
                            Case $randommessage = 7
                                Send($msg7)
                                Send ("{ENTER}")
                                Sleep ($interval)
                            Case $randommessage = 8
                                Send($msg8)
                                Send ("{ENTER}")
                                Sleep ($interval)
                            Case $randommessage = 9
                                Send($msg9)
                                Send ("{ENTER}")
                                Sleep ($interval)
                            Case $randommessage = 10
                                Send($msg10)
                                Send ("{ENTER}")
                                Sleep ($interval)
                        EndSelect
    
    Thanks.

    EDIT -
    i found an answer in some programming forum
    mistake was $randommessage = Random(1, 10) instead of $randommessage = Random(1, 10, 1)
    Last edited by Diesel; 08-09-2008 at 09:30 AM.


  2. #2
    Diesel's Avatar
    Diesel is offline Forum God
    Diesel is a splendid one to behold Diesel is a splendid one to behold Diesel is a splendid one to behold Diesel is a splendid one to behold Diesel is a splendid one to behold Diesel is a splendid one to behold Diesel is a splendid one to behold
    Join Date
    Jul 2007
    Location
    United States - AR
    Posts
    1,524
    Downloads
    6
    Uploads
    1
    Rep Power
    6
    Reputation
    767
    Double posting is against our rules, next time, edit your post.

    But gz on getting the answer.
    If you need help, just PM me ツ
    Banned Users: 18 (Since 6.21.09)


  3. #3
    t0pcraft- is offline Hacker
    t0pcraft- will become famous soon enough
    Join Date
    Jan 2008
    Location
    Under Your Bed
    Posts
    244
    Downloads
    13
    Uploads
    0
    Rep Power
    3
    Reputation
    58
    mm y i'm sry for doubleposting
    my thought was to push the thread (to make it bold)


  4. #4
    Diesel's Avatar
    Diesel is offline Forum God
    Diesel is a splendid one to behold Diesel is a splendid one to behold Diesel is a splendid one to behold Diesel is a splendid one to behold Diesel is a splendid one to behold Diesel is a splendid one to behold Diesel is a splendid one to behold
    Join Date
    Jul 2007
    Location
    United States - AR
    Posts
    1,524
    Downloads
    6
    Uploads
    1
    Rep Power
    6
    Reputation
    767
    Ok, I merged your posts, just don't do it again .
    If you need help, just PM me ツ
    Banned Users: 18 (Since 6.21.09)


+ Reply to Thread

Similar Threads

  1. Dota Newb Guide
    By Loioster in forum Dota forum
    Replies: 13
    Last Post: 02-18-2010, 09:06 AM
  2. How to set WoW XP rates
    By vashidu in forum WoW Private Server Info & Help
    Replies: 9
    Last Post: 12-14-2009, 06:13 PM
  3. Advanced IRC Commands
    By Diesel in forum IRC
    Replies: 1
    Last Post: 08-23-2009, 12:03 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts