Jump to content

Wizath

Members
  • Posts

    7
  • Joined

  • Last visited

Everything posted by Wizath

  1. Hi, I got little problem on adding a XPath code in _FFXpath function, If I'll use _FFXpath(//*[@id='input']) everything works, but if I want to use directives for button, for ex: /html/body/div[2]/div/dl/dd I can't get it working. Looking for help
  2. I got new problem o.O It's all about this code <input type="submit" name="Submit" value="atak" id="button"> This button is on the bottom of this site, i need to scroll down to see it. Can it cause errors? I got smth like this _FFClick("button", "id") and i get this error :: _FFSend: try{FFau3.simulateEvent(FFau3.WCD.getElementById('button'),'MouseEvents','click');}catch(e){'_FFCmd_Err';}; __FFRecv: -3 _FFClick ==> No match: $sElement: FFau3.WCD.getElementById('button') Waiting for help
  3. Thanks for help, u gave me a new way of thinking ) btw. in _FFSetValue($aText[$i], "id", "duel_search") I switched for _FFSetValue($aText[$i], "duel_search", "id") and it works ;] Anyway again thanks @edit eww got some new idea with blocks of text. I got smth like : <div id="gold_container"> 50</div> Is it possible to read this value ? I tried with _FFObj & _FFObjGet, but I only can get the id of it.
  4. Hi, I got a some problems. First, FF Page Analyzer don't work for me. It shows me errors : ERROR: AdlibDisable(): undefined function. AdlibDisable(), ERROR: _FFFrameGetSelected(): undefined function. Local $tmp = _FFFrameGetSelected(), ERROR: AdlibEnable(): undefined function. AdlibEnable("_getURL", $iURLTimer) I've got a newest FF.au3 in my Includes, I don't know why I got these errors Second problem, I want to use _FFSetValue, but it don't really works for me. I got this HTML code of input and button : <input type="text" name="duellName" value="name" id="duel_search"> <input type="submit" name="Submit" value="atak" id="submit"> and in AutoIT i got this code : _FFSetValue($aText[$i], "duellName", "duel_search") It returns me error : _FFLoadWait: .......... loaded in 2443ms __FFSend: try{FFau3.WCD=window.content.top.document;}catch(e){'_FFCmd_Err';}; __FFRecv: [object XPCNativeWrapper [object HTMLDocument]] — {contentType: "text/html", addEventListener: function() {…}, title: "BattleKnight", location: {…}, forms: {…}, documentURI: "http://s3.battleknight.onet.pl/bk.php?loc=raid&old=3", characterSet: "UTF-8"} _FFLoadWait: . loaded in 21ms _FFSetValue ==> Invalid value: (elements|id|name|class|tag) $sMode: duel_search If i change code : _FFSetValue($aText[$i], "duellName") or _FFSetValue($aText[$i], "duel_search") I got other error : _FFLoadWait: ...... loaded in 1324ms __FFSend: try{FFau3.WCD=window.content.top.document;}catch(e){'_FFCmd_Err';}; __FFRecv: [object XPCNativeWrapper [object HTMLDocument]] — {contentType: "text/html", addEventListener: function() {…}, title: "BattleKnight", forms: {…}, documentURI: "http://s3.battleknight.onet.pl/bk.php?loc=raid&old=3", location: {…}, characterSet: "UTF-8"} _FFLoadWait: . loaded in 10ms __FFSend: try{duellName.value='Klelek\r'}catch(e){'_FFCmd_Err';}; __FFRecv: _FFCmd_Err _FFSetValue ==> No match: $sElement: duellName Hopefully waiting for answers. wiz
  5. Thanks for help.
  6. hmm do I need to assign keys to my list ? I have simply put in the names in a section ;| I hope that you understand me. So IniReadSection("names", "", ?) [names] DaszekPL bodulec sir Anthony RippeR serwer Gloriam PARADOX jarrock kiepskiwaldus snoopek Xana MYSYS morganok HITMAN Asiaaa
  7. Hi all. I'm making a new program, thats uses a list of a names. I saved them into ini file. This is my question. How I can get AutoIT to read names from the list one-by-one. Example ; List: Marry Jane Patric Eric I want to AutoIT read and use send function and make a loop of it, that ex. send("marry") sleep(500) send("Jane") ; next position from a list sleep(500) Send("Patric") ; next, the 3rd position I hope that you understand me. Sorry 4 my crappy english Wiz.
×
×
  • Create New...