Jump to content
Sign in to follow this  
lbw87

_FFWindowOpen/_FFOpenURL invalid URL issue

Recommended Posts

lbw87

I'm having all sorts of problems with this code below just simply trying to open this url. I'm on a domain, so the url is valid. I can get to the webpage manually, though running it through autoit FF.au3 fails and says:

_FFWindowOpen ==> Invalid data type: (URL) $sURL: http://etime/wfc/logon/logonWFC.html

_FFOpenURL ==> Invalid data type: (URL) $sURL: http://etime/wfc/logon/logonWFC.html

I'm using _FF version 0.6.0.0b-5. I've tried different valid variations of the url and still can't get it to work...anyone have any ideas?

If _FFConnect () Then
    _FFWindowOpen("http://etime/wfc/logon/logonWFC.html")
    _FF_AutoLogin("user","pass", "http://etime/wfc/logon/logonWFC.html")
EndIf

Share this post


Link to post
Share on other sites
uppercode

may be try

_FFStart("http://...../")

and than your code

If _FFConnect () Then

_FFWindowOpen("http://etime/wfc/logon/logonWFC.html")

_FF_AutoLogin("user","pass", "http://etime/wfc/logon/logonWFC.html")

EndIf

and you use mozrepl.xpi???

Edited by uppercode

Share this post


Link to post
Share on other sites
lbw87

yes I'm using mozrepl.xpi

ffstart still gives me an invalid url

it doesn't seem to like that theres no "www." in the url

any ideas?

Share this post


Link to post
Share on other sites
quercus

etime: is it a domain?? If You are using the localhost use localhost instead etime. Maybe FF checks the url in strange ways. Does it work when used directly in the browser?

Share this post


Link to post
Share on other sites
lbw87

etime is a timecard html page...its on a domain and yes it works when i paste the url directly into a browser

Share this post


Link to post
Share on other sites
Naem

I was just having this problem as well. If you go to FF.au3 and then delete(around line 2350):

If Not __FFCheckURL($sURL) Then
        SetError(__FFError($sFuncName, $_FF_ERROR_InvalidDataType, "(URL) $sURL: " & $sURL))
        Return 0
    EndIf

Then it doesnt check to make sure that your web addresses start with www. So then it should work.

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.