Sign in to follow this  
Followers 0
Golbez

help? click ok on message window

6 posts in this topic

hi there. im trying to make a script that will open a webpage, then wait for a message box to appear then click ok. not really sure why its not working.

#include <GUIConstants.au3>
#include <GUIConstantsEx.au3>
#include <IE.au3>
#include <WindowsConstants.au3>
#include <Java.au3>

Global $site = "http://ezswag.com/swagbucks/watcher/sbtv9.php"
Global $okwindow = "[CLASS:#32770]"
Global $buttonclick = "[CLASS:Button; INSTANCE:1]"

_IEErrorHandlerRegister()
Local $ie = _IECreateEmbedded()
GUISetIcon("Icon.ico")
GUICreate("Money Clicker", 420, 500, _
        (@DesktopWidth - 640) / 2, (@DesktopHeight - 580) / 2, _
        $WS_OVERLAPPEDWINDOW + $WS_VISIBLE + $WS_CLIPSIBLINGS + $WS_CLIPCHILDREN, $WS_EX_TOPMOST)
GUICtrlCreateObj($ie, 2, 2, 420, 500)
GUISetState() ;Show GUI
_IENavigate($ie, $site)
_IEPropertySet($ie, "addressbar", False)
_IEPropertySet($ie, "menubar", False)
_IEPropertySet($ie, "statusbar", False)
_IEPropertySet($ie, "toolbar", False)
_IELoadWait($ie)
While 1
    Local $msg = GUIGetMsg()
If WinExists($okwindow) Then clickok()
    If WinActive($okwindow) Then clickok()
    Select
  Case $msg = $GUI_EVENT_CLOSE
   GUIDelete()
        EndSelect
WEnd

Func Terminate()
Exit 0
EndFunc
Func clickok()
ControlClick("","", $okwindow, $buttonclick, 1)
EndFunc

Share this post


Link to post
Share on other sites



Hi, Golbez. The only pop up messages I see on this site concern restarting the bot and checking for the captcha. Not sure if you'll get much assistance on this one.


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

im just looking for a way to click ok when the message box opens, then click restart bot when need be. i will manually be entering the captcha.

Share this post


Link to post
Share on other sites

You're automating a website for gain. That's a no-no according to that website AND this one.


Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache

Share this post


Link to post
Share on other sites

ok so cant you just point me in the direction of click ok on the message box?

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

ok so cant you just point me in the direction of click ok on the message box?

You are here long enough to understand our rules.

So consider this your last warning.

oh, and that last post was plainly stupid.

Jos

Edited by Jos

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 0