Jump to content
Stilgar

FF.au3 (V0.6.0.1b-10)

Recommended Posts

Hello,

have you started MozRepl?

FF-menu: Extras/MozRepl

I took a look at the Options button in the Addons window, it was disabled, I thought you cant config this addon.

After starting it all worked fine.

But how do you get URL from currently active tab?

EDIT: It Works, thank you.

Edited by goldenix

Share this post


Link to post
Share on other sites

But how do you get URL from currently active tab?

$sURL = _FFCmd(".location.href")

Share this post


Link to post
Share on other sites

How to make a FireFoxAttach using FF.au3 ?

For IE is _IEattach

That's for FF _FFConnect()

Share this post


Link to post
Share on other sites

Share this post


Link to post
Share on other sites

Hi,

Can this version work over the problem I've sent you ?

This could be. I've tried _FFSetValueById on the link you gave me and it's working.

Share this post


Link to post
Share on other sites

_FFClickXY seem to be not work Stilgar.

In which case? It only works if there is any DOM-element at this position. Look at the Javascript methode "elementFromPoint":

https://developer.mozilla.org/En/DOM/Docume...lementFromPoint

Share this post


Link to post
Share on other sites

Error :

__FFSend: try{FFau3.obj=Components.classes["@mozilla.org/preferences-service;

1"].getService(Components.interfaces.nsIPrefBranch); FFau3.obj.getPrefType("javascript.enabled");}catch(e){'_FFCmd_Err';};

__FFRecv:

__FFWaitForRepl ==> Error TCPSend / TCPRecv: TCPRecv :10053

Share this post


Link to post
Share on other sites

Like the error message said - that's a TCP error:

http://msdn.microsoft.com/en-us/library/ms740668%28VS.85%29.aspx

MSDN:

WSAECONNABORTED 10053

Software caused connection abort.

An established connection was aborted by the software in your host computer, possibly due to a data transmission time-out or protocol error.

What are you trying to do if this error appear?

Share this post


Link to post
Share on other sites

Why this error appear ? I only use _FFPrefSet('javascript.enabled',true)

But it doesn't appear often, sometimes has but sometimes not.

Like the error message said - that's a TCP error:

http://msdn.microsoft.com/en-us/library/ms740668%28VS.85%29.aspx

MSDN:

What are you trying to do if this error appear?

Edited by trinitrotoluen

Share this post


Link to post
Share on other sites

With an earlier version of FF.au3 (V0.3.6.1beta), I can use these statements to open a page:

_FFFrameEnter($Socket, "main", "id")

_FFOpenURL($Socket, 'PortConfigView.ssi')

_FFLoadWait($Socket)

Console:

__FFSend: content.wrappedJSObject.frames[1].name

__FFRecv: contents

__FFSend: content.wrappedJSObject.frames[2].name

__FFRecv: main

__FFSend: content.wrappedJSObject.frames[2].document.location.href="PortConfigView.ssi"

__FFRecv: PortConfigView.ssi

_

With the latest version of FF.au3 (0.5.3.6b) (I removed the $Socket argument) I get an error trying to open "http://PortConfigView.ssi".

Console:

__FFSend: try{content.frames[1].name}catch(e){'_FFCmd_Err';};

__FFRecv: contents

__FFSend: try{content.frames[2].name}catch(e){'_FFCmd_Err';};

__FFRecv: main

_FFOpenURL: http://PortConfigView.ssi

__FFSend: try{window.content.frames[2].document.location.href="http://PortConfigView.ssi";}catch(e){'_FFCmd_Err';};

__FFRecv: http://PortConfigView.ssi

How can I correct this problem? Is it caused by the addition of "http://"?

And thanks for a nice tool.

Regards,

Frank

Share this post


Link to post
Share on other sites

Like the error message said - that's a TCP error:

http://msdn.microsoft.com/en-us/library/ms740668%28VS.85%29.aspx

MSDN:

What are you trying to do if this error appear?

All line after this error will be appear as an error. I must _FFDisconnect then _FFconnect to put the code back to work normally.

Share this post


Link to post
Share on other sites

@fspafford:

Hello,

thanks!

With the latest version of FF.au3 (0.5.3.6b) (I removed the $Socket argument) I get an error trying to open "http://PortConfigView.ssi".

Console:

__FFSend: try{content.frames[1].name}catch(e){'_FFCmd_Err';};

__FFRecv: contents

__FFSend: try{content.frames[2].name}catch(e){'_FFCmd_Err';};

__FFRecv: main

_FFOpenURL: http://PortConfigView.ssi

__FFSend: try{window.content.frames[2].document.location.href="http://PortConfigView.ssi";}catch(e){'_FFCmd_Err';};

__FFRecv: http://PortConfigView.ssi

I can't see any error there. Which error do you mean? An error message in the browser?

How can I correct this problem? Is it caused by the addition of "http://"?

I don't think so, but you can try it to open without the http://:

_FFCmd('location.href="PortConfigView.ssi"')

@trinitrotoluen:

Strange problem, I must try this out.

Share this post


Link to post
Share on other sites

Hello Stilgar.

Do you have any plan on implementing the event handlers on the form functions?

I've a particular interest on these functions: _FFFormCheckBox, _FFFormOptionselect, _FFormRadioButton for a project we are trying to build.

Currently, we have to add inside our scripts a copy of the javascript code existing inside the tested application page, so we have a strong dependency with that version of the application and will have to change whenever the pages are implemented differently.

Unfortunatly, I'm not expermented enough with the internals of javascript/DOM to be able to add them myself inside your code.

So if you have some time, and if this is not too difficult (I don't know how much complex it might be), I'd really appreciate.

Share this post


Link to post
Share on other sites

You can use debugview from sysinternals to debug code even when the script is compiled.

Just open up debugview and run the compiled script. Wherever you have dbg($msg), the script will send $msg to the debugview console.

Func dbg($msg)
    ;use debugview from sysinternals
    ;http://technet.microsoft.com/en-us/sysinternals/bb896647.aspx        Download
    ;http://msdn.microsoft.com/en-us/library/ms679303(VS.85).aspx         Functions
    DllCall("kernel32.dll", "none", "OutputDebugString", "str", $msg)
EndFunc   ;==>dbg

[font="Verdana"] [size="2"]"[/size][/font]Failure is not an option -- it comes packaged with Windows"[font="Verdana"][size="2"] Gecko Web Browser[/size][/font][font="Verdana"][size="2"], [/size][/font][font="Verdana"][size="2"]Yahtzee![/size][/font][font="Verdana"][size="2"], Toolbar Launcher (like RocketDock)[/size][/font][font="Verdana"][size="2"]Internet Blocker, Simple Calculator, Local Weather, Easy GDI+ GUI [/size][/font][font="Verdana"][size="2"]Triangle Solver, TCP File Transfer, [/size][/font][font="Verdana"][size="2"]Valuater's Autoit Wrappers[/size][/font][font="Verdana"][size="3"][size="2"][size="2"]OOP In AutoIt[/size][/size][/size][/font][font="Verdana"][size="2"][size="1"]Using Windows XP SP3, 1GB RAM, AMD Athlon Processor @ 2.1 GHzCheck me out at gadgets.freehostrocket.com[/size][/size][/font]

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

×
×
  • Create New...