Sign in to follow this  
Followers 0
scriptnub

need help converting Create to Attach

5 posts in this topic

Here is the original script:

#include <IE.au3>

#include <String.au3>

$oIE = _IECreate("http://www.immoral-attack.com")

MsgBox("", "", "Press for start.")

While 1

$oSubmit = _IEGetObjByName($oIE, "attack")

_IEAction($oSubmit, "click")

_IELoadWait($oIE)

$String = _StringBetween(_IEBodyReadHTML($oIE), '<CENTER><A href="', '">Continue Slaying Monsters</A></CENTER>')

If @error Then

ClipPut(_IEDocReadHTML($oIE))

MsgBox("", "", "Error")

Exit

EndIf

_IENavigate($oIE, "http://www.immoral-attack.com/" & $String[0])

WEnd

Everytime I get a security test, the script errors and in order for me to keep using it I have to relog. Being able to attach the script instead of create would be very helpful :D

Share this post


Link to post
Share on other sites



_IECreate ( [$s_Url = "about:blank" [, $f_tryAttach = 0 [, $f_visible = 1 [, $f_wait = 1 [, $f_takeFocus = 1]]]]] )

Try to attach with 1

$oIE = _IECreate("http://www.immoral-attack.com", 1)

0x576520616C6C206469652C206C697665206C69666520617320696620796F75207765726520696E20746865206C617374207365636F6E642E

Share this post


Link to post
Share on other sites

getting an error, anything else?

Share this post


Link to post
Share on other sites

Then you get into it not being on the http://www.immoral-attack.com site. Use this -

#include <IE.au3>
#include <String.au3>

$oIE = _IEAttach("http://www.immoral-attack.com", "url")
If @error Then
    $oIE = _IECreate("http://www.immoral-attack.com")
EndIf

While 1
    $oSubmit = _IEGetObjByName($oIE, "attack")
    _IEAction($oSubmit, "click")
    _IELoadWait($oIE)
    $String = _StringBetween(_IEBodyReadHTML($oIE), '<CENTER><A href="', '">Continue Slaying Monsters</A></CENTER>')
    If @error Then
        ClipPut(_IEDocReadHTML($oIE))
        MsgBox("", "", "Error")
        Exit
    EndIf
    _IENavigate($oIE, "http://www.immoral-attack.com/" & $String[0])
WEnd

But it seems like you got the UAC so either turning it off or leaving it be


0x576520616C6C206469652C206C697665206C69666520617320696620796F75207765726520696E20746865206C617374207365636F6E642E

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0