Sign in to follow this  
Followers 0
dawly

Error in FF.au3

7 posts in this topic

Hello, I am not able to change the port by txt, if it possible to change it by txt?@FireFox?
 

#Include <FF.au3>

_FFConnect()

 _FFIsConnected()

$port = FileOpen("ports.txt", 0)

While 1

$test = FileReadLine ($port)
_FFPrefSet("network.proxy.http_port", $test)

WEnd
FileClose ($port)

Here the erro message:

__FFSend: try{FFau3.obj.getIntPref("network.proxy.http_port");}catch(e){'_FFCmd_Err';};
__FFRecv: 0
_FFPrefSet ==> Invalid data type: (int) $vValue: 80
Note: in my txt is: 80

Share this post


Link to post
Share on other sites



Try:

_FFPrefSet("network.proxy.http_port", Int($test))

 

1 person likes this

Share this post


Link to post
Share on other sites

Oh thank you :) But from where can i get this " Int "

Share this post


Link to post
Share on other sites

got it thanks and sorry for stupid question

Share this post


Link to post
Share on other sites
Quote

Sorry mate but i have last question and i hope you can help me with
_FFPrefSet("network.proxy.http_port",  $aResult[$iIndex])
How can i done it with " Int "

_FFPrefSet("network.proxy.http_port", Int($aResult[$iIndex]))

 

1 person likes this

Share this post


Link to post
Share on other sites

ty

Share this post


Link to post
Share on other sites
Just now, dawly said:

 

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  
Followers 0