Irgendwie funktioniert es bei mir nicht.
Habs mal ganz einfach gebastelt, aber selbst da nicht...
#include <FF.au3>
$Socket=_FFStart()
Sleep(10000)
_FFQuit($Socket)
Spoiler anzeigen
PHP
__FFStartProcess: C:\Programme\Mozilla Firefox\firefox.exe" -repl -P "default"
_FFConnect: Connection Delay: 11ms
_FFConnect: Socket: 1776
__FFSend: function FF__SimulateClick(oObject){try {var evt = document.createEvent("MouseEvents");evt.initMouseEvent("click", true, true, window,0, 0, 0, 0, 0,false, false, false, false,0, null);oObject.dispatchEvent(evt);return 1;} catch(e) {return 0;}}
__FFSend: function FF__SearchImageLink(RegEx){var html;for (i=0;i<content.document.links.length;i++){html=content.document.links[i].innerHTML;if (RegEx.test(html) && html.toLowerCase().indexOf("<img") != -1) return i;}return -1;}
__FFSend: function FF__ClickImageBySize(iMinW, iMinH, iMaxW, iMaxH, sMode){var html;for (i=0;i<content.document.images.length;i++){var iWidth=content.document.images[i].width;var iHeight=content.document.images[i].height;switch (sMode) {case "eq":if ( iMinW == iWidth && iMinH == iHeight) FF__SimulateClick(content.document.images[i]); break;case "lt":if ( iMinW < iWidth && iMinH < iHeight) FF__SimulateClick(content.document.images[i]); break;case "gt":if ( iMinW > iWidth && iMinH > iHeight) FF__SimulateClick(content.document.images[i]); break;default:if ( iMinW > iWidth && iMinH > iHeight && iMaxW < iWidth && iMaxH < iHeight ) FF__SimulateClick(content.document.images[i]); break;}return 1}return 0;}
__FFSend: function FF__SearchLink(sMode,sSearch){with(content.document) {var value;for (i=0;i<links.length;i++){switch (sMode) {case "href": value=links[i].href; break;case "text": value=links[i].text; break;case "id": value=links[i].id; break;case "name": value=links[i].name; break;case "title": value=links[i].title; break;default: return -1;}if (value.indexOf(sSearch) != -1) return i;}return -1;}}
__FFSend: function FF__SearchTab(sLabel){for (i=0;i<gBrowser.mTabs.length-1;i++){if ( gBrowser.mTabs[i].label.indexOf(sLabel) != -1) return i}return -1}
__FFSend: content.document.location.href="about:blank"
__FFRecv: "about:blank"
__FFSend: document.getElementById('statusbar-icon').value
__FFRecv: "100"
_FFDisConnect: disconnected>Exit code: 0 Time: 16.466
Alles anzeigen
So weit kommt er. Woran kanns liegen? (an FF3?)