Results 1 to 5 of 5

Thread: Ibot fechando

  1. #1

    Join Date
    Feb 2013
    Posts
    68
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    5 Post(s)
    Reputation
    22
    Rep Power
    4

    Ibot fechando

    Não sei se é um bug mas eu tenho action em que preciso mudar o Imput / Keyboard para " Clipboard "

    Para que o char digite o texto mais rapido

    O problema é que a action muda para Clipboard digita o que precisa e volta para Keyboard.

    So que quando isso acontece o ibot para de funcionar e fecha.

    Alguém sabe o por que?

  2. #2
    Normal User blakw's Avatar
    Join Date
    Mar 2012
    Location
    www.blakw.com
    Posts
    815
    Mentioned
    221 Post(s)
    Tagged
    2 Thread(s)
    Quoted
    344 Post(s)
    Reputation
    462
    Rep Power
    10
    Poste sua action aqui.


    ------------------------------------Latest Releases:------------------------------------
    Vocations:
    Darashia Lions Rock
    Oramond Seacrest Serpents X1

    For a better iBot!

    (◣_◢)

  3. #3

    Join Date
    Feb 2013
    Posts
    68
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    5 Post(s)
    Reputation
    22
    Rep Power
    4
    Edit
    Last edited by Tmmmk; 04-22-2014 at 11:52 PM.

  4. #4

    Join Date
    Feb 2013
    Posts
    68
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    5 Post(s)
    Reputation
    22
    Rep Power
    4
    --PK ALERT
    if connected then
    local ServerLogMessages = getnewmessages("Local Chat")
    for i=0, ServerLogMessages.count-1 do
    local m = ServerLogMessages[i].text
    local pk, city = m:match('(.+) me atacando em (.+)')
    local previousSettings = getsettings("Settings/Input/Keyboard/TypingStyle")

    if ServerLogMessages[i].type == 7 and ServerLogMessages[i].text:find("me atacando em") then
    setsettings("Settings\\Input\\Keyboard\\TypingStyle", "Clipboard")
    say(pk.. " me atacando em " .. city)
    setsettings("Settings\\Input\\Keyboard\\TypingStyle", previousSettings)
    wait(2000)
    break
    end
    end
    end
    Last edited by Tmmmk; 04-23-2014 at 10:40 AM.

  5. #5
    Normal User blakw's Avatar
    Join Date
    Mar 2012
    Location
    www.blakw.com
    Posts
    815
    Mentioned
    221 Post(s)
    Tagged
    2 Thread(s)
    Quoted
    344 Post(s)
    Reputation
    462
    Rep Power
    10
    Try:

    Lua Code:
     
    if connected 
    then
        local ServerLogMessages = getnewmessages("Local Chat")
        local m = ServerLogMessages[i].text
        local pk, city = m:match('(.+) me atacando em (.+)')
        local previousSettings = "Keyboard keys"
     
        for i=0, ServerLogMessages.count-1 
        do
            if ServerLogMessages[i].type == 7 and ServerLogMessages[i].text:find("me atacando em") 
            then
                setsettings("Settings\\Input\\Keyboard\\TypingStyle", "Clipboard")
                say(pk.. " me atacando em " .. city)
                setsettings("Settings\\Input\\Keyboard\\TypingStyle", previousSettings)
                wait(2000)
            end
        end
    end


    ------------------------------------Latest Releases:------------------------------------
    Vocations:
    Darashia Lions Rock
    Oramond Seacrest Serpents X1

    For a better iBot!

    (◣_◢)

Posting Permissions

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