Jump to content



Photo

FF.au3 (V0.6.0.0b)


  • Please log in to reply
486 replies to this topic

#21 goldenix

goldenix

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 735 posts

Posted 19 June 2009 - 10:30 PM

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, 20 June 2009 - 12:37 PM.








#22 Stilgar

Stilgar

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 406 posts

Posted 19 June 2009 - 10:32 PM

But how do you get URL from currently active tab?


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

#23 Imp3rial

Imp3rial

    Seeker

  • Active Members
  • 6 posts

Posted 29 June 2009 - 01:08 PM

How to make a FireFoxAttach using FF.au3 ?
For IE is _IEattach

#24 Stilgar

Stilgar

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 406 posts

Posted 29 June 2009 - 09:12 PM

How to make a FireFoxAttach using FF.au3 ?
For IE is _IEattach

That's for FF _FFConnect()

#25 Stilgar

Stilgar

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 406 posts

Posted 07 July 2009 - 09:40 AM

Updated to V0.5.3.6.
Look at the first post and the changelog for changes.

#26 trinitrotoluen

trinitrotoluen

    Adventurer

  • Active Members
  • PipPip
  • 145 posts

Posted 07 July 2009 - 07:13 PM

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

#27 Stilgar

Stilgar

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 406 posts

Posted 07 July 2009 - 07:27 PM

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.

#28 trinitrotoluen

trinitrotoluen

    Adventurer

  • Active Members
  • PipPip
  • 145 posts

Posted 07 July 2009 - 08:42 PM

_FFClickXY seem to be not work Stilgar.

#29 Stilgar

Stilgar

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 406 posts

Posted 07 July 2009 - 09:51 PM

_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

#30 trinitrotoluen

trinitrotoluen

    Adventurer

  • Active Members
  • PipPip
  • 145 posts

Posted 08 July 2009 - 05:37 AM

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



#31 Stilgar

Stilgar

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 406 posts

Posted 08 July 2009 - 08:50 AM

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?

#32 trinitrotoluen

trinitrotoluen

    Adventurer

  • Active Members
  • PipPip
  • 145 posts

Posted 08 July 2009 - 12:04 PM

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, 08 July 2009 - 12:05 PM.


#33 fspafford

fspafford

    Seeker

  • Active Members
  • 22 posts

Posted 08 July 2009 - 01:35 PM

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
Frank

#34 trinitrotoluen

trinitrotoluen

    Adventurer

  • Active Members
  • PipPip
  • 145 posts

Posted 08 July 2009 - 02:52 PM

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.

#35 Stilgar

Stilgar

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 406 posts

Posted 08 July 2009 - 03:21 PM

@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.

#36 GerardJ

GerardJ

    Seeker

  • Active Members
  • 16 posts

Posted 09 July 2009 - 12:58 PM

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.

#37 trinitrotoluen

trinitrotoluen

    Adventurer

  • Active Members
  • PipPip
  • 145 posts

Posted 09 July 2009 - 01:32 PM

Hi, Stilgar
Is it possible if showing the debug communication even when the script has been compiled (may be show on DOS CMD) ?

#38 dantay9

dantay9

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 834 posts

Posted 10 July 2009 - 06:23 PM

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     ;<a href='http://technet.microsoft.com/en-us/sysinternals/bb896647.aspx' class='bbc_url' title='External link' rel='nofollow external'>http://technet.microsoft.com/en-us/sysinternals/bb896647.aspx</a>        Download     ;<a href='http://msdn.microsoft.com/en-us/library/ms679303(VS.85' class='bbc_url' title='External link' rel='nofollow external'>http://msdn.microsoft.com/en-us/library/ms679303(VS.85</a>).aspx         Functions     DllCall("kernel32.dll", "none", "OutputDebugString", "str", $msg) EndFunc   ;==>dbg

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

#39 trinitrotoluen

trinitrotoluen

    Adventurer

  • Active Members
  • PipPip
  • 145 posts

Posted 11 July 2009 - 05:35 PM

@dantay9: Thank you !

#40 trinitrotoluen

trinitrotoluen

    Adventurer

  • Active Members
  • PipPip
  • 145 posts

Posted 16 July 2009 - 02:32 AM

Error :
Posted Image




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users