Golbez Posted January 19, 2012 Posted January 19, 2012 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. expandcollapse popup#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
Moderators JLogan3o13 Posted January 19, 2012 Moderators Posted January 19, 2012 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!
Golbez Posted January 19, 2012 Author Posted January 19, 2012 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.
Blue_Drache Posted January 19, 2012 Posted January 19, 2012 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
Golbez Posted January 19, 2012 Author Posted January 19, 2012 ok so cant you just point me in the direction of click ok on the message box?
Developers Jos Posted January 19, 2012 Developers Posted January 19, 2012 (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 January 19, 2012 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.
Recommended Posts