Jump to content
Sign in to follow this  

help? click ok on message window

Recommended Posts

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]"

Local $ie = _IECreateEmbedded()
GUICreate("Money Clicker", 420, 500, _
        (@DesktopWidth - 640) / 2, (@DesktopHeight - 580) / 2, _
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)
While 1
    Local $msg = GUIGetMsg()
If WinExists($okwindow) Then clickok()
    If WinActive($okwindow) Then clickok()
  Case $msg = $GUI_EVENT_CLOSE

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

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.

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

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

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.


Edited by Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
Live for the present,
Dream of the future,
Learn from the past.

Share this post

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

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...