Rickname
Active Members-
Posts
100 -
Joined
-
Last visited
Rickname's Achievements
-
AutoFan reacted to a post in a topic: FF.au3 (V0.6.0.1b-10)
-
Rickname reacted to a post in a topic: FF.au3 (V0.6.0.1b-10)
-
Since I don't know Java (yet:) ) I don't know the command to enable/disable an addon, but the idea is this : send a javascript command to mozrepl to do it via _FFCmd
-
Yea I have tried the function without calling __FFSetTopDocument and it works with no difference ! Also I have tried alone the __FFSetTopDocument function on a visible down-scrolled webpage, and absolutely no effect it has ! It doesn't scroll the page up to the top. Thats why I was asking here about it, since I see its so useless..lol
-
Hey, thanks for replying I saw it is an internal function, but I dont understand what it does more exactly, why is it needed there ? For example in the _FFLoadWait function : Func _FFLoadWait($iTimeOut = $_FF_LOADWAIT_TIMEOUT, $bStop = $_FF_LOADWAIT_STOP) Local Const $sFuncName = "_FFLoadWait" Local $iLoadingTime = 0 If $iTimeOut < 1000 Then $iTimeOut = 1000 Local $bTrace = $_FF_COM_TRACE $_FF_COM_TRACE = False If Not $_FF_COM_TRACE Then ConsoleWrite("_FFLoadWait: ") Local $TimeOutTimer = TimerInit() While TimerDiff($TimeOutTimer) < $iTimeOut If Not $_FF_COM_TRACE Then ConsoleWrite(".") If _FFCmd("FFau3.tmp=window.getBrowser().webProgress;FFau3.tmp.isLoadingDocument && FFau3.tmp.busyFlags ? false: true;") Then $iLoadingTime = Round(TimerDiff($TimeOutTimer)) ConsoleWrite(" loaded in " & $iLoadingTime & "ms" & @CRLF) Sleep($_FF_CON_DELAY * 1.4) __FFSetTopDocument() $_FF_COM_TRACE = $bTrace Return SetError(0, $iLoadingTime - $_FF_CON_DELAY * 1.4, 1) EndIf Sleep(250) WEnd If $bStop Then _FFAction("stop") __FFSetTopDocument() $_FF_COM_TRACE = $bTrace ConsoleWrite(@CRLF & @CRLF) Return SetError(__FFError($sFuncName, $_FF_ERROR_Timeout, "Can not check site status."), $iLoadingTime, 0) EndFunc ;==>_FFLoadWait Im asking because I import line of code by line of code those functions in my program and I want to be as less complicated, practical, and small as possible, so I want to get rid of those useless calls of this __FFSetTopDocument() function, but Im not sure if is it vital or not >.< Thanks in advance !
-
Does anybody knows what this function does ?? : __FFSetTopDocument() I have seen it appearing many times in the FF.au3 UDF >.< and has no visual effect when run !
-
How to Find if Link is HTTP or other protocol ?
Rickname replied to Rickname's topic in AutoIt General Help and Support
Ok my mistake if I wasn't explicit enough -
How to Find if Link is HTTP or other protocol ?
Rickname replied to Rickname's topic in AutoIt General Help and Support
Ok so I open hidden IE window running the stub link, and I will read the address bar with the AutoIt methods... seems it would do the job.. But I can't also find if its http or https from the source code of the page ? -
How to Find if Link is HTTP or other protocol ?
Rickname replied to Rickname's topic in AutoIt General Help and Support
This method doesn't work as I said, if you try this example, I mean with the "autoitscript.com" link, this link WON'T APPEAR in the listed links ! So even if I search for it, it will find nothing ! : ; Open browser with basic example, get link collection, ; loop through items and display the associated link URL references #include <IE.au3> #include <MsgBoxConstants.au3> Local $oIE = _IECreate( "autoitscript.com" ) Local $oLinks = _IELinkGetCollection($oIE) Local $iNumLinks = @extended Local $sTxt = $iNumLinks & " links found" & @CRLF & @CRLF For $oLink In $oLinks $sTxt &= $oLink.href & @CRLF Next MsgBox($MB_SYSTEMMODAL, "Link Info", $sTxt) -
How to Find if Link is HTTP or other protocol ?
Rickname replied to Rickname's topic in AutoIt General Help and Support
Omg dude, Ive said I don't have the FULL link, only the stub of it ! If I would had the FULL link ofcourse I wouldn't ask this, pls read carefully -
How to Find if Link is HTTP or other protocol ?
Rickname replied to Rickname's topic in AutoIt General Help and Support
Yes, but this gives all the links which some are HTTP and others are HTTPS. How can I find the state for my specific link ? -
So lets say I have the link : "autoitscript.com/forum/" How can I find if its HTTP or HTTPS secured or maybe other protocol ? I would prefer via the _IE UDFs if possible... Thanks in advance !
-
Theres no special function in the UDF to do this, but I think you can command Firefox to do this via the _FFCmd() function. But since I don't know Javascript language, I don't know whats the command to make the browser to disable/enable/install/remove the addon. Sure someone will know !
-
Exactly. I had this problem like since long time ago, and I see noone fixed it >.< I will try to fix the function myself and post it here if I resolve something...
-
Rickname reacted to a post in a topic: FF.au3 (V0.6.0.1b-10)
-
Well _FFStart returns only the PID of the process who has the new window. I can do a thing to find the handle by listing all the associated windows of the process by PID, but Im not sure if this will work when the window is started hidden... Good luck at your office tho
-
I have tried, it works but if I start the window hidden or without being activated, it results in 0 Im wondering if you have the same problem. Have you tried it ? Is it showing in the Console the handle of the opened window ?
-
Yes I tested it now and its returning 0 for me but the browser window appears and is working well but it doesn't retrieveing the handle o.O Anyways if its a problem only for me but it works good for the others... I will investigate further...