ฟอรั่ม PSsix

Would you like to react to this message? Create an account in a few clicks or log in to continue.

ฟอรั่มของบล็อก http://pssix.blogspot.com


2 posters

    Autoit มีคำสั่ง Random Send มั้ยครับ ขอบคุณล่วงหน้าครับ

    avatar
    ronnarit6319
    มือใหม่เพิ่งสมัคร
    มือใหม่เพิ่งสมัคร


    Autoit มีคำสั่ง Random Send มั้ยครับ ขอบคุณล่วงหน้าครับ Empty Autoit มีคำสั่ง Random Send มั้ยครับ ขอบคุณล่วงหน้าครับ Empty
    จำนวนข้อความ : 6
    ความนิยม : 0
    เข้าร่วมเมื่อ : 30/04/2014

    Autoit มีคำสั่ง Random Send มั้ยครับ ขอบคุณล่วงหน้าครับ Empty Autoit มีคำสั่ง Random Send มั้ยครับ ขอบคุณล่วงหน้าครับ

    ตั้งหัวข้อ by ronnarit6319 25/01/16, 06:49 am

    พอดีจะเขียนบอทเกม RPG อ่ะครับมันต้องเดินหาโปเกม่อน

    Send("{up down}")
    Sleep(2000)
    Send("{up up}")
    Sleep(10)
    Send("{down down}")
    Sleep(2000)
    Send("{down up}")
    Sleep(10)

    จะให้มันสุ่มเดินยังไงครับผมทำได้แค่ให้มันค้างเดินขึ้นเดินลงขอบคุณล่วงหน้าครับ
    flapjack
    flapjack
    PSsix Member Super Class III
    PSsix Member Super Class III


    PSsix Moderator PSsix Master PSsix Game Coder
    จำนวนข้อความ : 314
    ความนิยม : 75
    เข้าร่วมเมื่อ : 05/10/2010

    Autoit มีคำสั่ง Random Send มั้ยครับ ขอบคุณล่วงหน้าครับ Empty Re: Autoit มีคำสั่ง Random Send มั้ยครับ ขอบคุณล่วงหน้าครับ

    ตั้งหัวข้อ by flapjack 24/05/16, 09:09 pm

    ประมาณนี้เปล่า ครับ
    Code:


    dim $array[2][2]

    $array[0][0] = "{up down}"
    $array[0][1] = "{up up}"
    $array[1][0] = "{down down}"
    $array[1][1] = "{down up}"


    For $i=0 To 5

       $index = Random(0,1,1)

       Send($array[$index][0])
       Sleep(1000)
          Send($array[$index][1])
       Next


      เวลาขณะนี้ 28/04/24, 10:59 pm