FF.au3 (V0.6.0.0b)
#81
Posted 30 July 2009 - 09:13 PM
#82
Posted 31 July 2009 - 08:09 AM
@Valery:
Nice example! Why don't you made a thread? So it's easier to find.
The "CHM Reader"-AddOn is only working up to FF3.0.x![]()
About special thread. It's good idea to make "AFireFox" thread. Thank you.
AddOn CHM Reader can work nice with FireFox 3.5.1, also.
About this read here, please.
Thank you for creation of FF.au3.
Sincerely,
Valery
#83
Posted 31 July 2009 - 10:09 AM
Yes, ok, I know how I change the AddOn files (xpi), so they work with other FF versions, too. I mean the problem is, the "official" AddOn doesn't workAbout special thread. It's good idea to make "AFireFox" thread. Thank you.
AddOn CHM Reader can work nice with FireFox 3.5.1, also.
About this read here, please.
Thank you for creation of FF.au3.
Sincerely,
Valery
@trinitrotoluen:
Have you tried to increase the AutoIt-option for TCPTimeout?
[EDIT]
@n8gk:
Sure you can load an image from the web into a GUI. If you know the adress of the image you don't need the FF.au3 to do this.
Download it with InetGet an put it like any other image in your GUI.
Edited by Stilgar, 31 July 2009 - 10:12 AM.
#84
Posted 31 July 2009 - 11:00 AM
Can anyone help me with something? I want to load an image from a website into autoit GUI? Is this possible? If so, how can I do it?
Thanks,
#86
Posted 01 August 2009 - 05:37 AM
THis code is IE automation and allow clicking on an "Input type=file"
Is-it possible wit firefox to have a function like _IEPropertyGet$fichier = _IEFormElementGetObjByName($form, "nomFic")
MouseMove(_IEPropertyGet($fichier, "screenx") + _IEPropertyGet($fichier, "width") - 10, _IEPropertyGet($fichier, "screeny") + _IEPropertyGet($fichier, "height") / 2)
MouseClick("left")
This function allow to determinate the location on the screen of button Input type
Thanks in advance
#87
Posted 01 August 2009 - 08:16 AM
Hi,Hi stilgar,
THis code is IE automation and allow clicking on an "Input type=file"
Is-it possible wit firefox to have a function like _IEPropertyGet
This function allow to determinate the location on the screen of button Input type
Thanks in advance
why do you click on it? You can just set the value (_FFSetValueBy* doesn't work!)
_FFXpath("//input[@type='file' and @name='nomFic']","",9) ; I hope that's the right input name _FFObj("xpath","value","c:\\test.txt")
http://thorsten-willert.de/Themen/FFau3/Beispiele/_FF_ElementGetPosition.au3
Edited by Stilgar, 01 August 2009 - 08:18 AM.
#88
Posted 01 August 2009 - 08:56 AM
My problem is that nomfic is an Input type = file an due to security you can't assign a value to this type of objectHi,
why do you click on it? You can just set the value (_FFSetValueBy* doesn't work!)Or if you wanna made a MouseClick then you can use this function to find the position of the button:_FFXpath("//input[@type='file' and @name='nomFic']","",9) ; I hope that's the right input name _FFObj("xpath","value","c:\\test.txt")
http://thorsten-willert.de/Themen/FFau3/Beispiele/_FF_ElementGetPosition.au3
Am i wright ? If yes what you show me does'nt works. Thanks to confirm
#89
Posted 01 August 2009 - 12:55 PM
Via DOM you can't assign the value but via Xpath it works.
That's the reasen why I said you can't do it with the _FFSetValueBy* functions.
Example:
Edited by Stilgar, 01 August 2009 - 12:58 PM.
#90
Posted 06 August 2009 - 03:14 PM
#91
Posted 06 August 2009 - 04:28 PM
Thank you for sharing!
#92
Posted 07 August 2009 - 06:31 PM
I can't use _FFConnect("123.24.235.254",3125,1000)
it always error
#93
Posted 07 August 2009 - 07:22 PM
Which error appears?how I can automatically change my IP on FF
I can't use _FFConnect("123.24.235.254",3125,1000)
it always error
You wanna connect to a running FireFox on 123.24.235.254 and the MozRepl-port is there set to 3125?
@neuro:
Thank you!
Edited by Stilgar, 07 August 2009 - 07:23 PM.
#94
Posted 07 August 2009 - 07:34 PM
#Include <FF.au3> _FFStart() ; trying to connect to a running FireFox with MozRepl on If _FFConnect("204.188.224.100",1080, 3000) Then ; open a page _FFOpenURL("http://www.ip-adress.com/") Sleep(3000) ; disconnect from FireFox If _FFDisConnect() Then MsgBox(64, "", "Disconnected from FireFox!") Else MsgBox(64, "", "Can't connect to FireFox!") EndIf EndIf
FF not to http://www.ip-adress.com/
SciTE :
please !help me__FFStartProcess: ""C:\Program Files\Mozilla Firefox\firefox.exe" -new-window "about:blank" -repl 4242
_FFConnect: OS: WIN_XP WIN32_NT 2600 Service Pack 2
_FFConnect: AutoIt: 3.3.0.0
_FFConnect: FF.au3: 0.5.3.7b
_FFConnect: IP: 127.0.0.1
_FFConnect: Port: 4242
_FFConnect: Delay: 2ms
_FFConnect: Socket: 1676
__FFSend: try{window.content.frames["top"].document.browserDOMWindow}catch(e){'_FFCmd_Err';};
__FFRecv:
__FFSend: try{navigator.userAgent}catch(e){'_FFCmd_Err';};
__FFRecv: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10
_FFConnect: Browser: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10
_FFSendJavascripts: Sending functions to FireFox ........... done
_FFLoadWait: . loaded in 33ms
_FFConnect: OS: WIN_XP WIN32_NT 2600 Service Pack 2
_FFConnect: AutoIt: 3.3.0.0
_FFConnect: FF.au3: 0.5.3.7b
_FFConnect: IP: 204.188.224.100
_FFConnect: Port: 1080
_FFConnect: Delay: 386ms
_FFConnect: Socket: 1664
__FFWaitForRepl ==> Error TCPSend / TCPRecv: TCPRecv :-1
Edited by Unfrog, 07 August 2009 - 07:44 PM.
#95
Posted 07 August 2009 - 08:06 PM
2) Or you wanna connect to FF on your own PC?
If 1) Is there a firewall or something blocking this ports in your script?
If 2) Just use_FFConnect(). You can see in the output from SciTE that the first connection (_FFStart) on localhost (127.0.0.1:4242) is working and your second connection (not really usefull without saving the first socket) doesn't work (204.188.224.100:1080).
So if you wanna using FF on your own PC:
#Include <FF.au3> _FFStart() ; open FF and made a connection to it If _IsConnected() Then _FFOpenURL("<a href='http://www.ip-adress.com/' class='bbc_url' title='External link' rel='nofollow external'>http://www.ip-adress.com/"</a>) ; open a page Sleep(3000) _FFDisConnect() ; close the connection Else MsgBox(64, "", "Can't connect to FireFox!") EndIf
#96
Posted 08 August 2009 - 07:41 AM
So I want to fake my IP to any socks (ex socks5), how i can do that
sorry for my english is quite bad
#97
Posted 09 August 2009 - 09:27 PM
How can set value to Input type=file
#98
Posted 09 August 2009 - 10:32 PM
Hi,
How can set value to Input type=file
Like some posts before:
http://www.autoitscript.com/forum/index.php?showtopic=95595&view=findpost&p=712937
or on the examples page:
http://thorsten-willert.de/Themen/FFau3/Beispiele/SetFileInput.au3
#99
Posted 09 August 2009 - 10:40 PM
#100
Posted 09 August 2009 - 11:01 PM
<input type="file" size="35" name="upfile"/>
__FFSend: FFau3.xpath=null;try{FFau3.xpath=window.content.frames["top"].document.evaluate("//input[@type='file']",window.content.frames["top"].document,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue;}catch(e){'_FFXPath_Error: '+e;};
__FFRecv: [object XPCNativeWrapper [object HTMLInputElement]] — {ownerDocument: {…}, id: "", parentNode: {…}, namespaceURI: null, localName: "INPUT", name: "upfile", previousSibling: null, ...}
__FFSend: try{FFau3.xpath.hasAttribute('value')}catch(e){'_FFCmd_Err';};
__FFRecv: 0
_FFObj ==> Invalid value: $sAttrib not found: value
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users





