Subir

Resultados 1 al 7 de 7

Tema: busco macro autoreconect

  1. #1
    Suspendido
    Fecha de ingreso
    May-2010
    Mensajes
    737
    Reputacion: 10
    Poder de reputación
    0

    busco macro autoreconect

    me gustaria saber si alguien tiene o puede hacer una macro k reconecte tras una caída ya k ami se me suele caer bastante amenudo, gracias de antemano.

  2. #2

    Fecha de ingreso
    February-2010
    Edad
    37
    Mensajes
    484
    Reputacion: 10
    Poder de reputación
    15

    Respuesta: busco macro autoreconect

    puedes mirar, hay muchas en la web de easyuo.com :P

  3. #3
    Avatar de Joseph
    Fecha de ingreso
    November-2007
    Mensajes
    287
    Reputacion: 10
    Poder de reputación
    15

    Respuesta: busco macro autoreconect

    Hola, aqui te dejo una, la he probado y va bien, espero te sirva.




    ; Autor: Kal

    set %shardid 957524542
    set %myaccount ;pon aqui tu login
    set %mypass ;pon aqui tu password
    set %mycharnum 1
    set %num_shards2scan 1
    set %menux 0
    set %menuy 805
    set %global 124

    initevents
    set %wait 20
    set %logincount 0 ; count of how many logins attempted
    set %disscount 0 ; count of disconnections
    set * . %global 0 ; init global var
    gosub MenuInit ; initialize menu
    gosub login ; log in first (in case you are too lazy to do it manually, hey what are computers for anyway!)
    _mainloop:
    gosub CheckConnection ; monitor disconnection gumps
    wait 1s
    gosub MenuShow %logincount , #spc , Logins %disscount , #spc , Disconnections ; update menu
    goto _mainloop
    halt
    ;===========================================
    sub CheckConnection
    _ccloop:
    if #contname = MainMenu_gump ; main login gump
    gosub login
    if #contname = waiting_gump
    {
    if #contsize = 203_121 ; disconnection
    {
    set %x #contposx + 400
    set %y #contposy + 328
    click %x %y
    }
    if #contsize = 408_288 ; no connection avail, or timeout
    {
    set %x #contposx + 320
    set %y #contposy + 350
    click %x %y ; try again
    }
    gosub login
    goto _ccloop
    }
    return

    sub login
    _mmloop:
    gosub MenuShow Attempting , #spc , Login #contname
    wait 20
    if #contname = MainMenu_gump ; main login gump
    {
    if %myaccount <> default
    {
    set %x #contposx + 521
    set %y #contposy + 356
    click %x %y
    }
    set %x #contposx + 521
    set %y #contposy + 396
    click %x %y
    gosub sendstring %mypass
    gosub clickgreen
    gosub waitgump notfor MainMenu_gump 640_480 10
    gosub waitgump notfor waiting_gump 408_288 60 ; verifying can take a while
    set %logincount %logincount + 1
    goto _mmloop
    }
    if #contname = normal_gump ; shard selection gump
    {
    set %lastshard 0 ; null it
    set %scanned 0 ; number shards scanned
    _scan:
    gosub scan
    set %scanned %scanned + 1 ; inc number shards looked at
    if %shardid = #result
    {
    set %x #contposx + 238
    set %y #contposy + 115
    click %x %y g ; click topmost shard not sure why need g
    gosub waitgump notfor normal_gump 640_480 10
    goto _mmloop
    }
    else
    {
    if ( %lastshard = #result ) || ( %scanned >= %num_shards2scan ) ; we've looked at all shards so get out of this screen
    {
    gosub clickred
    gosub waitgump notfor normal_gump 640_480 10
    goto _mmloop
    }
    set %x #contposx + 536
    set %y #contposy + 346
    click %x %y ; next shard
    set %lastshard #result
    goto _scan
    }
    }
    if #contname = Login_gump ; char login gump
    {
    if * . %global <> 0 ; override charnum with global setting
    set %mycharnum * . %global
    set %x #contposx + 359
    set %y #contposy + 165 + ( %mycharnum - 1 ) * 40
    click %x %y x 3 ; click char name (changed from d as sometimes seemed to fail)
    wait 5s
    if #contname = Login_gump ; no char?
    gosub clickred
    gosub clickgreen ; click here as well cos sometimes the gump is misnamed (existing char)
    gosub waitgump notfor Login_gump 640_480 10
    goto _mmloop
    }
    if #contname = waiting_gump
    {
    if #contsize = 203_121 ; disconnection
    {
    set %x #contposx + 400
    set %y #contposy + 328
    click %x %y
    }
    if #contsize = 408_288 ; no connection avail, or timeout
    {
    set %x #contposx + 320
    set %y #contposy + 350
    click %x %y ; try again
    }
    goto _mmloop
    }
    return
    ;-------------------------------------------
    sub clickgreen
    set %x #contposx + 620
    set %y #contposy + 444 ;poner aqui 454 si usais el client 203
    click %x %y ; the green arrow
    wait 5
    return
    ;-------------------------------------------
    sub clickred
    set %x1 #contposx + 595
    set %y1 #contposy + 444 ;poner aqui 454 si usais el client 203
    click %x1 %y1 ; the red arrow
    wait 5
    return
    ;-------------------------------------------
    sub sendstring
    str Len %1
    set %len #strRes
    for %i 1 16
    {
    key back ; delete current if any
    wait 1
    }
    for %i 1 %len
    {
    str Mid %1 %i 1
    key #strRes
    wait 1
    }
    return
    ;-------------------------------------------------
    sub waitgump
    ;%1 = for or notfor %2 = kind of gump %3 = size %4= timeout
    set %timout #scnt + %4
    _wfgloop:
    if #scnt > %timout
    return
    wait 10
    if %1 = for && ( #contname <> %2 || #contsize <> %3 )
    goto _wfgloop
    if %1 = notfor && #contname = %2 && #contsize = %3
    goto _wfgloop
    return
    ;-------------------------------------------------
    sub MenuInit
    menu Clear
    menu Window title AutoLogin
    menu Window Color BtnFace
    menu Window Size 150 70
    menu font size 8
    menu Button Quit 40 46 45 16 Quit
    menu hideeuo
    menu Show %menux %menuy
    menu Show %menux %menuy
    set %start #scnt
    gosub MenuShow %logincount , #spc , Attempts ; update menu
    return
    ;-------------------------------------------------
    sub MenuShow
    set %hrs ( #scnt - %start ) / 3600
    set %mins ( #scnt - %start ) / 60 - %hrs * 60
    menu delete Active1
    menu delete Active2
    menu delete Count
    menu text Active1 10 6 %1
    menu text Active2 10 18 %2
    menu text Count 10 30 Time , #spc , %hrs , : , %mins
    if #menubutton = Quit
    {
    menu show
    menu hide
    halt
    }

    return
    ;----------------------------------------------------
    sub scan ; scan a line to get a shard id
    click 0 0 mc ; move cursor out the way
    set %x1 #contposx + 217
    set %x2 #contposx + 320
    set %y #contposy + 113
    set %val 0
    for %i %x1 %x2
    {
    SavePix %i %y 1
    set %val %val + #pixcol
    }
    wait 10
    return %val
    ;----------------------------------------------------
    sub checkshard
    menu hideeuo
    wait 1s
    gosub scan
    display ok shardid= , #spc , #result ; this is the value of the shardid
    menu show
    menu hide
    halt

    Un saludo
    JoSePh
    Última edición por Joseph; 25-Jun-2010 a las 04:07

  4. #4
    Suspendido
    Fecha de ingreso
    May-2010
    Mensajes
    737
    Reputacion: 10
    Poder de reputación
    0

    Respuesta: busco macro autoreconect

    no me va, uso el client 2.0.3. y cuando se me peta (intencionadamente x mi para ver si furula) se keda tol rato metiendo y borrando la pass y el login, solucion?????

  5. #5
    Avatar de Joseph
    Fecha de ingreso
    November-2007
    Mensajes
    287
    Reputacion: 10
    Poder de reputación
    15

    Respuesta: busco macro autoreconect

    Comprueba los valores: 618 446, que correspondan con la flecha verde

    sub clickgreen
    set %x #contposx + 618
    set %y #contposy + 446 pon 456
    click %x %y ; the green arrow
    wait 5
    return
    ;-------------------------------------------
    sub clickred
    set %x1 #contposx + 620
    set %y1 #contposy + 445 pon 456
    click %x1 %y1 ; the red arrow
    wait 5
    return

    Saludos
    Última edición por Joseph; 25-Jun-2010 a las 04:03

  6. #6
    Suspendido
    Fecha de ingreso
    May-2010
    Mensajes
    737
    Reputacion: 10
    Poder de reputación
    0

    Respuesta: busco macro autoreconect

    solucionado, va perfecta, eres un crack!!!

  7. #7
    Avatar de Joseph
    Fecha de ingreso
    November-2007
    Mensajes
    287
    Reputacion: 10
    Poder de reputación
    15

    Respuesta: busco macro autoreconect

    Gracias Dama por lo de crack, pero el merito no es mio, solo he copiado y pegado, xDD.

    Bueno aquí os dejo la misma macro, client 203, reducida, no cuenta ni nada, solo conecta.



    set %shardid 957524542
    set %mypass ;pon aquí tu password
    set %mycharnum 1
    set %num_shards2scan 5

    initevents

    gosub login
    gosub Chequear_Conexion


    sub login

    loop:
    wait 10
    if #contname = MainMenu_gump
    {
    set %x 521
    set %y 396
    click %x %y
    gosub sendstring %mypass
    gosub clickgreen
    wait 10
    gosub clickgreen
    wait 10
    gosub clickgreen
    wait 10
    key enter
    goto loop
    }
    return

    sub clickgreen

    set %x 620
    set %y 455
    click %x %y
    wait 5
    return

    sub sendstring

    str Len %1
    set %len #strRes
    for %i 1 16
    {
    key back
    wait 1
    }
    for %i 1 %len
    {
    str Mid %1 %i 1
    key #strRes
    wait 1
    }
    return

    sub Chequear_Conexion

    loop2:
    if #contname = MainMenu_gump
    gosub login

    if #contname = waiting_gump
    {
    if #contsize = 203_121
    {
    click 400 330
    }
    if #contsize = 408_288
    {
    click 320 350
    }
    gosub login
    goto loop2
    }
    return


    Un saludo
    Última edición por Joseph; 25-Jun-2010 a las 15:34

Temas similares

  1. busco macro
    Por killer en el foro Macros
    Respuestas: 0
    Último mensaje: 09-Oct-2009, 19:45
  2. Busco macro
    Por BlooD_Aeris en el foro Macros
    Respuestas: 5
    Último mensaje: 07-Aug-2009, 14:45
  3. Busco macro vet
    Por Punki-to en el foro Macros
    Respuestas: 2
    Último mensaje: 24-Jan-2009, 15:04
  4. Busco macro alquimia y macro sastre
    Por Moyo-Cristi en el foro Macros
    Respuestas: 8
    Último mensaje: 08-Nov-2008, 03:05
  5. Busco macro
    Por DarKCoM en el foro Macros
    Respuestas: 2
    Último mensaje: 23-Jun-2008, 13:08

Permisos de publicación

  • No puedes crear nuevos temas
  • No puedes responder temas
  • No puedes subir archivos adjuntos
  • No puedes editar tus mensajes
  •  
YoutubeFbChat IRCTwit