ahmedhitman 0 Posted May 21, 2015 (edited) helloIm New With Autoit ...i have a problem with hide A msg Errori can`t hide using mouse clicker or with any methodthis is Error Screen :IMAGE" Error: The requested action with this object has failed "this msg show`s when there is no internet connectionsimple of source code :$oHTTP = ObjCreate( "winhttp.winhttprequest.5.1" ) $oHTTP.Open("GET", "http://validator.w3.org/sitemap.txt", False) $oHTTP.SetRequestHeader("Content-Type", "application/x-www-form-urlencoded") $oHTTP.Send() Edited May 21, 2015 by ahmedhitman Share this post Link to post Share on other sites
Starstar 64 Posted May 21, 2015 (edited) ; Wait 10 seconds for the window to appear. Local $hWnd = WinWait("[CLASS:Enter here Classname]", "", 10) ; Set the state of the window to "hide". WinSetState($hWnd, "", @SW_HIDE) May be this one can help you.............................{Edit::}[Hint for you]<<<<<<<<<<<< Please describe it a bit more. And you must follow your topic Edited May 21, 2015 by Starstar Correction Life is like a coin. You can spend it Anyway as you wish and for your kind information. "you can spend it only once." Share this post Link to post Share on other sites
ahmedhitman 0 Posted May 21, 2015 Thank U ...i will try your new code & sorry for error`s in editing topic Share this post Link to post Share on other sites
BinaryBrother 27 Posted May 22, 2015 (edited) It sounds to be like you have a previous object failing to be properly set... For example;If you're getting a collection of links and then attempt to click on a link at Index[3], if the initial call to propagate the array with links fails, then so will your link-click, because array[3] doesn't exist or is improperly set. ; Wait 10 seconds for the window to appear. Local $hWnd = WinWait("[CLASS:Enter here Classname]", "", 10) ; Set the state of the window to "hide". WinSetState($hWnd, "", @SW_HIDE) This isn't going to work, because AutoIt, itself, is crashing. You're going to need to check for arrays and the proper object types. Take a look at...isArray() isBinary() isBool() isDeclared() isDLLStruct() isFloat() isFunc() isHWnd() isInt() isKeyword() isNumber() ;and finally... isObj(); <---- What you probably need. Edited May 22, 2015 by BinaryBrother WM8650 Tablet Disassembly Video Share this post Link to post Share on other sites