silvano Posted December 13, 2012 Share Posted December 13, 2012 hello, I have the problem with FF.au3 start function when I run local link like: _FFStart("http://ws001-test/index.php") but _FFStart("http://www.google.com") work fine any suggestions? thanks Link to comment Share on other sites More sharing options...
Thatusernameisalreadytaken Posted December 13, 2012 Share Posted December 13, 2012 (edited) the URL is tested against the following regexp:^^((ht|f)tp(s?)://|~/|/)([w]+:w+@)?([a-zA-Z]{1}([w-]+.)+([w]{2,5}))(:[d]{1,5})?((/?w+/)+|/?)(w+.[w]{3,4})?((?w+=w+)?(&w+=w+)*)?(the problem is underlined) that's why it fails. Try to change __FFIsURL in your FF.au3 Edited December 13, 2012 by Thatusernameisalreadytaken Link to comment Share on other sites More sharing options...
silvano Posted December 13, 2012 Author Share Posted December 13, 2012 thanks, yes I know the problem and where is but i don't know regexp very well to change it Link to comment Share on other sites More sharing options...
silvano Posted December 17, 2012 Author Share Posted December 17, 2012 any solutions? thanks Link to comment Share on other sites More sharing options...
Jury Posted December 17, 2012 Share Posted December 17, 2012 perhaps: ^^((ht|f)tp(s?)://|~/|/)([w]+:w+@)?([a-zA-Z]{1}([w-.])+([w]{2,5}))(:[d]{1,5})?((/?w+/)+|/?)(w+.[w]{3,4})?((?w+=w+)?(&w+=w+)*)? Link to comment Share on other sites More sharing options...
silvano Posted December 18, 2012 Author Share Posted December 18, 2012 thanks but not work Link to comment Share on other sites More sharing options...
Thatusernameisalreadytaken Posted December 18, 2012 Share Posted December 18, 2012 (edited) very odd, Jury's regexp should definitely be passed, and I've just checked on your example (http://ws001-test/index.php) and it works:#include MsgBox(0,"result",__FFIsURL("http://ws001-test/index.php")) Func __FFIsURL(ByRef $URL) Return (StringRegExp($URL, '^^((ht|f)tp(s?)://|~/|/)([w]+:w+@)?([a-zA-Z]{1}([w-.])+([w]{2,5}))(:[d]{1,5})?((/?w+/)+|/?)(w+.[w]{3,4})?((?w+=w+)?(&w+=w+)*)?')) EndFunc Edited December 18, 2012 by Thatusernameisalreadytaken Link to comment Share on other sites More sharing options...
silvano Posted December 18, 2012 Author Share Posted December 18, 2012 (edited) ies, the script work fine but in the FF.au3 func don't work.I test the link with: _FFStart("http://ws001-test/index.php")and scite console write:_FFStart ==> Invalid data type: (URL) $sURL: http://ws001-test/index.phpFunc __FFIsURL(ByRef $URL) Return (StringRegExp($URL, '^^((ht|f)tp(s?)://|~/|/)([w]+:w+@)?([a-zA-Z]{1}([w-.])+([w]{2,5}))(:[d]{1,5})?((/?w+/)+|/?)(w+.[w]{3,4})?((?w+=w+)?(&w+=w+)*)?') Or _ StringRegExp($URL,'^((ht|f)tp(s?)://)?(d{1,3}.){3}d{1,3}(:[d]{1,5})?(/.*)?$') Or _ StringLeft($URL, 6) = "about:" Or _ StringLeft($URL, 7) = "chrome:" Or _ StringLeft($URL, 10) = "localhost:" Or _ StringLeft($URL, 8) = "file:///") EndFunc ;==>__FFIsURL Edited December 18, 2012 by silvano Link to comment Share on other sites More sharing options...
Thatusernameisalreadytaken Posted December 18, 2012 Share Posted December 18, 2012 Then you maybe changed a wrong file (either FF.au3 in your autoitfolder /include or in your script folder that remains old). I've just 'spoilt' my FF and here it goes: >"C:Program Files (x86)AutoIt3SciTE..autoit3.exe" /ErrorStdOut "<some private info>" __FFStartProcess: ""C:Program Files (x86)Mozilla Firefoxfirefox.exe" -new-window "http://ws001-test/index.php" "-repl 4242 " _FFConnect: OS: WIN_VISTA WIN32_NT 6002 Service Pack 2 _FFConnect: AutoIt: 3.3.8.1 _FFConnect: FF.au3: 0.6.0.1b-3 _FFConnect: IP: 127.0.0.1 _FFConnect: Port: 4242 _FFConnect: Delay: 2ms _FFConnect: Socket: 516 _FFConnect: Browser: Mozilla/5.0 (Windows NT 6.0; WOW64; rv:17.0) Gecko/20100101 Firefox/17.0 __FFSendJavascripts: Sending functions to FireFox .......... done _FFLoadWait: . loaded in 10ms >Exit code: 0 Time: 4.418 Link to comment Share on other sites More sharing options...
silvano Posted December 19, 2012 Author Share Posted December 19, 2012 I'm stupid.. I was editing a file in the wrong folder now work fine! thank you 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