Jump to content

help simulating a button click in IE8


Recommended Posts

Didn't have any luck with that either this is the only way I can get it to work.

It's not fool proof but I ran it several times without issues.

This better be one hell of a game lol :)

Have fun,

Kenny

#include <IE.au3>

;$oIE = _IEAttach("Demon Slayer")
$oIE = _IECreate("http://myspace.com", 0, 1, 1)

MsgBox(0, "", "Click OK when the Reset Game button is ready")
$oElements = _IETagNameGetCollection ($oIE, "input")

For $oElement In $oElements
    If $oElement.value = "Reset Game" Then
        $hwnd = _IEPropertyGet($oIE, "hwnd")
        WinActivate($hwnd)
        Send("{HOME}")
        Sleep(500)
        $xpos = _IEPropertyGet($oElement, "browsery")
        $ypos = _IEPropertyGet($oElement, "browserx") + 25
        MouseMove($xpos, $ypos)
        MouseClick("main", $xpos, $ypos)
        ExitLoop
    EndIf
Next
Edited by ken82m

 "I believe that when we leave a place, part of it goes with us and part of us remains... Go anywhere, when it is quiet, and just listen.. After a while, you will hear the echoes of all our conversations, every thought and word we've exchanged.... Long after we are gone our voices will linger in these walls for as long as this place remains."

Link to comment
Share on other sites

try unchecking the box to download the latest updates and malicious removal tool

You might want to try disabling any av or spyware scannners (never worked for me but people keep suggesting it anyway lol)

 "I believe that when we leave a place, part of it goes with us and part of us remains... Go anywhere, when it is quiet, and just listen.. After a while, you will hear the echoes of all our conversations, every thought and word we've exchanged.... Long after we are gone our voices will linger in these walls for as long as this place remains."

Link to comment
Share on other sites

No errors here it might not be attaching to the window so the Get collection command would return 0

Try replacing the _IEAttach line with:

$oIE = _IECreate("http://myspace.com", 0, 1, 1)
Edited by ken82m

 "I believe that when we leave a place, part of it goes with us and part of us remains... Go anywhere, when it is quiet, and just listen.. After a while, you will hear the echoes of all our conversations, every thought and word we've exchanged.... Long after we are gone our voices will linger in these walls for as long as this place remains."

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...