scriptnub Posted March 25, 2009 Share Posted March 25, 2009 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 Link to comment Share on other sites More sharing options...
TerarinK Posted March 25, 2009 Share Posted March 25, 2009 _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 Link to comment Share on other sites More sharing options...
scriptnub Posted March 26, 2009 Author Share Posted March 26, 2009 getting an error, anything else? Link to comment Share on other sites More sharing options...
Authenticity Posted March 26, 2009 Share Posted March 26, 2009 #include <IE.au3> Dim $hWnd = WinGetHandle('[CLASS:IEFrame]') If IsHWnd($hWnd) Then $o_IE = _IEAttach($hWnd, 'HWND') Else $o_IE = _IECreate('http://www.google.com/') EndIf ConsoleWrite(_IEPropertyGet($o_IE, 'locationurl') & @LF) _IENavigate($o_IE, 'http://www.google.com/') Link to comment Share on other sites More sharing options...
TerarinK Posted March 26, 2009 Share Posted March 26, 2009 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]) WEndBut it seems like you got the UAC so either turning it off or leaving it be 0x576520616C6C206469652C206C697665206C69666520617320696620796F75207765726520696E20746865206C617374207365636F6E642E Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now