ahmedhitman Posted May 21, 2015 Share 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 Link to comment Share on other sites More sharing options...
Starstar Posted May 21, 2015 Share 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." Link to comment Share on other sites More sharing options...
ahmedhitman Posted May 21, 2015 Author Share Posted May 21, 2015 Thank U ...i will try your new code & sorry for error`s in editing topic Link to comment Share on other sites More sharing options...
BinaryBrother Posted May 22, 2015 Share 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 SIGNATURE_0X800007D NOT FOUND Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now