ahmedhitman

Msg Error "problem "

4 posts in this topic

#1 ·  Posted (edited)

hello

Im New With Autoit ...

i have a problem with hide A msg Error

i can`t hide using mouse clicker or with any method

this is Error Screen :

IMAGE

" Error: The requested action with this object has failed "

this msg show`s when there is no internet connection

simple 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 by ahmedhitman

Share this post


Link to post
Share on other sites



#2 ·  Posted (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 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

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

#4 ·  Posted (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 by BinaryBrother

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now