Ребят, срочно нужна помощь!!

Discussion in 'Болталка' started by Winst, 4 Feb 2017.

  1. Winst

    Winst New Member

    Joined:
    4 Feb 2017
    Messages:
    0
    Likes Received:
    0
    Reputations:
    0
    Вот столкнулся с проблемой, нужно как-то вставить цифры в текст от 0000 до 10000.
    Вручную это сделать очень трудно.
    Вот сам текст:

    Numpad2::
    Sendinput,{e}
    DllCall("SetCursorPos", int, 650, int, 430)
    sleep 205
    Send,{lbutton}
    sleep 205

    send,0000
    DllCall("SetCursorPos", int, 650, int, 530)
    sleep 205
    Send,{lbutton}
    sleep 205
    Sendinput,{e}
    DllCall("SetCursorPos", int, 650, int, 430)
    sleep 205
    Send,{lbutton}
    sleep 205
    send,{BS}
    send,{BS}
    send,{BS}
    send,{BS}
    sleep 205

    send,0001
    DllCall("SetCursorPos", int, 650, int, 530)
    sleep 205
    Send,{lbutton}


    Так должно продолжаться 10000 раз (тут всего 2)
    мне нужно десять тысяч таких копий, только возле каждого красного send, должно быть новое значение 0002, 0003, 0004 и так далее..
    Ребят, очень нужно.. Буду благодарен кто поможет.
     
  2. pas9x

    pas9x Elder - Старейшина

    Joined:
    13 Oct 2012
    Messages:
    423
    Likes Received:
    582
    Reputations:
    52
    Боюсь представить зачем это нужно. Забирай. http://tinyurl.com/hza5c5k

    PHP:
    <?php

    $fh 
    fopen(__DIR__ '/code.txt''w');

    for (
    $j=0$j<10000$j++) {
      
    $number str_pad($j4'0'STR_PAD_LEFT);
      
    $code = <<<CODE
    sleep 205
    Sendinput,{e}
    DllCall("SetCursorPos", int, 650, int, 430)
    sleep 205
    Send,{lbutton}
    sleep 205
    send,{BS}
    send,{BS}
    send,{BS}
    send,{BS}
    sleep 205
    send,
    $number
    DllCall("SetCursorPos", int, 650, int, 530)
    sleep 205
    Send,{lbutton}

    CODE;
      
    fwrite($fh$code);
    }

    echo 
    "Done\n";
     
    Winst likes this.
  3. Winst

    Winst New Member

    Joined:
    4 Feb 2017
    Messages:
    0
    Likes Received:
    0
    Reputations:
    0
    Огромное спасибо!)