Sign in to follow this  
Followers 0
diikee

how to set file path

2 posts in this topic

#1 ·  Posted (edited)

<INPUT style="WIDTH: 240px" type=file size=31 name=firmware>

Sleep(2000)
$ff = _IETagNameGetCollection($oIE, "INPUT")
    For $f in $ff 
        if ($f.name) = "firmware" Then
            _IEFormElementSetValue($f, "C:\fw\2.5\iq.sys")
            Sleep(1000)
            ExitLoop
        EndIf
        
    Next

--> IE.au3 V2.4-0 Error from function _IEFormElementSetValue, $_IEStatus_InvalidObjectType (Browser securuty prevents SetValue of TYPE=FILE)

has anyone encountered this problem and how did you handle it??

Edited by diikee

Share this post


Link to post
Share on other sites



Are you trying to set a field to that string? You may want to try to do a split on the string being sent to trick the security. What I mean is you send the first part, then the second part. You may need to use a controlsend to get around this.

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
Sign in to follow this  
Followers 0