goldenix Posted June 19, 2009 Share Posted June 19, 2009 (edited) Hello,have you started MozRepl?FF-menu: Extras/MozReplI 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 June 20, 2009 by goldenix My Projects:[list][*]Guide - ytube step by step tut for reading memory with autoitscript + samples[*]WinHide - tool to show hide windows, Skinned With GDI+[*]Virtualdub batch job list maker - Batch Process all files with same settings[*]Exp calc - Exp calculator for online games[*]Automated Microsoft SQL Server 2000 installer[*]Image sorter helper for IrfanView - 1 click opens img & move ur mouse to close opened img[/list] Link to comment Share on other sites More sharing options...
Stilgar Posted June 19, 2009 Author Share Posted June 19, 2009 But how do you get URL from currently active tab?$sURL = _FFCmd(".location.href") jEdit4AutoIt PlanMaker_UDF Â Â Link to comment Share on other sites More sharing options...
Imp3rial Posted June 29, 2009 Share Posted June 29, 2009 How to make a FireFoxAttach using FF.au3 ? For IE is _IEattach Link to comment Share on other sites More sharing options...
Stilgar Posted June 29, 2009 Author Share Posted June 29, 2009 How to make a FireFoxAttach using FF.au3 ? For IE is _IEattachThat's for FF _FFConnect() jEdit4AutoIt PlanMaker_UDF Â Â Link to comment Share on other sites More sharing options...
Stilgar Posted July 7, 2009 Author Share Posted July 7, 2009 Updated to V0.5.3.6.Look at the first post and the changelog for changes. jEdit4AutoIt PlanMaker_UDF Â Â Link to comment Share on other sites More sharing options...
trinitrotoluen Posted July 7, 2009 Share Posted July 7, 2009 Hi, Can this version work over the problem I've sent you ? Link to comment Share on other sites More sharing options...
Stilgar Posted July 7, 2009 Author Share Posted July 7, 2009 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. jEdit4AutoIt PlanMaker_UDF Â Â Link to comment Share on other sites More sharing options...
trinitrotoluen Posted July 7, 2009 Share Posted July 7, 2009 _FFClickXY seem to be not work Stilgar. Link to comment Share on other sites More sharing options...
Stilgar Posted July 7, 2009 Author Share Posted July 7, 2009 _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 jEdit4AutoIt PlanMaker_UDF Â Â Link to comment Share on other sites More sharing options...
trinitrotoluen Posted July 8, 2009 Share Posted July 8, 2009 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 Link to comment Share on other sites More sharing options...
Stilgar Posted July 8, 2009 Author Share Posted July 8, 2009 Like the error message said - that's a TCP error:http://msdn.microsoft.com/en-us/library/ms740668%28VS.85%29.aspxMSDN:WSAECONNABORTED 10053Software 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? jEdit4AutoIt PlanMaker_UDF Â Â Link to comment Share on other sites More sharing options...
trinitrotoluen Posted July 8, 2009 Share Posted July 8, 2009 (edited) 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.aspxMSDN:What are you trying to do if this error appear? Edited July 8, 2009 by trinitrotoluen Link to comment Share on other sites More sharing options...
fspafford Posted July 8, 2009 Share Posted July 8, 2009 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 Link to comment Share on other sites More sharing options...
trinitrotoluen Posted July 8, 2009 Share Posted July 8, 2009 Like the error message said - that's a TCP error:http://msdn.microsoft.com/en-us/library/ms740668%28VS.85%29.aspxMSDN: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. Link to comment Share on other sites More sharing options...
Stilgar Posted July 8, 2009 Author Share Posted July 8, 2009 @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. jEdit4AutoIt PlanMaker_UDF Â Â Link to comment Share on other sites More sharing options...
GerardJ Posted July 9, 2009 Share Posted July 9, 2009 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. Link to comment Share on other sites More sharing options...
trinitrotoluen Posted July 9, 2009 Share Posted July 9, 2009 Hi, Stilgar Is it possible if showing the debug communication even when the script has been compiled (may be show on DOS CMD) ? Link to comment Share on other sites More sharing options...
dantay9 Posted July 10, 2009 Share Posted July 10, 2009 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 Link to comment Share on other sites More sharing options...
trinitrotoluen Posted July 11, 2009 Share Posted July 11, 2009 @dantay9: Thank you ! Link to comment Share on other sites More sharing options...
trinitrotoluen Posted July 16, 2009 Share Posted July 16, 2009 Error : Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now