Jump to content

5ervant

Members
  • Posts

    10
  • Joined

  • Last visited

Everything posted by 5ervant

  1. @JLogan3o13 I thought it's a better style for a single paragraph.
  2. Anyone that can guess the best ways to receive and to transfer files?
  3. What's the best way to receive file from a desktop app? app.exe will execute a cmd with "au3file.exe /path/of/the/file.xml" and the au3file.exe will get and delete that. Or else? THE MOST IMPORTANT PART OF THE QUESTION And best way to transfer file to a desktop app? au3file.exe do a $_POST request and the app.exe MUST HAVE a local HTTP server that can receive $_POST, but it looks heavy 'cause the app must have a server such XAMPP. au3file.exe execute a cmd with "app.exe /path/of/the/file.xml" and the app.exe will now get that file and delete. Or else?
  4. (//div[@class='open-menu'])[2] A hour spent..
  5. Can you give me another twick of that, that will click let say, the second button? 'Cause @Subz solution isn't that nice, will require you to activate the window before working.. And upon a quick testing, no @DaleHohm solution work and still, a ControlClick() .
  6. Thanks, it would be great if you can show a IE.au3 version of that 'cause that FF.au3 version is hard to understand, just for educational purpose..
  7. No one can guess? So that means, such kind of dynamic button can't be click using IE.au3 or FF.au3 ..
  8. Go create a quick account in Zapier and go to https://zapier.com/app/dashboard and make some Zaps! Just need to click the specific instance of an .open-menu button and then click its a.run (anchor) element. Doing this IE.au3 script just causing to click its container element: $target = 1; Target the first instance #include <IE.au3> $oIE = _IEAttach("Dashboard - Zapier") $count = 0; $tags = _IETagNameGetCollection($oIE, "div") For $tag in $tags $class_value = $tag.GetAttribute("class") If $class_value = "open-menu" Then $count += 1 if $count = $target Then MsgBox(0, "Instance: ", $count) ; $tag.fireEvent("onmousedown") ; _IEAction($tag, "click") ; $tag.fireEvent("onmouseup") ; Or this but not working ; $tag.Click EndIf EndIf Next I also tried to do it using FF.au3 $target = 1; Target the first instance #Include <Array.au3> #Include <FF.au3> $count = 0; If _FFConnect(Default, Default, 3000) Then $aArray = _FFXPath( "//div[@class='open-menu']", "", 7 ) ; _ArrayDisplay($aArray) For $tag in $aArray $count += 1 if $count = $target Then MsgBox(0, "Instance: ", $count) _FFClick($tag) EndIf Next EndIf Error: _FFClick ==> No match: $sElement: [number] Could some help me how to click such buttons on such kind of a dynamic page?
  9. There's no "Tools" menu in my updated Firefox. Are you using the latest version? If you are, can you show me a screenshot?
  10. Is this UDF can control the new version of FireFox via MozRepl? Upon installing MozRepl, I can't find how to start it, I can only "Enable" or "Disable" it, I guess there's no need to activate it on startup in the new version. Upon debugging this code: #Include <FF.au3> _FFStart("http://ff-au3-example.thorsten-willert.de/") If _FFIsConnected() Then Sleep(2000) _FFAction("presentationmode", True) Sleep(2000) _FFOpenURL("http://www.google.com") Sleep(2000) _FFAction("back") _FFAction("presentationmode", False) Sleep(2000) _FFOpenURL("chrome:bookmarks") Sleep(2000) _FFAction("alert", "Bye bye ...") _FFQuit() EndIfThe Firefox starts with a specific URL but produce an error. This is what I'm seeing in the output: __FFStartProcess: ""C:\Program Files (x86)\Mozilla Firefox\firefox.exe" -new-window "http://ff-au3-example.thorsten-willert.de/" "-repl 4242 " _FFConnect: OS: WIN_81 WIN32_NT 9600 _FFConnect: AutoIt: 3.3.14.0 _FFConnect: FF.au3: 0.6.0.1b-15 _FFConnect: IP: 127.0.0.1 _FFConnect: Port: 4242 _FFConnect: Delay: 2ms _FFConnect ==> Timeout: TCPConnect Error: 10060 _FFConnect ==> General Error: Timeout: Can not connect to FireFox/MozRepl on: 127.0.0.1:4242 _FFIsConnected ==> Socket Error: -1Upon testing the command "telnet" in the command shell of my operating system while my Firefox is still open, this is what I'm seeing: 'telnet' is not recognized as an internal or external command, operable program or batch file.I'm using Windows 8.1, do I also need to turn on the Telnet Client under Windows Features to be able to control the browser via MozRepl, which means my clients also need to install the MozRepl and turn on the Telnet Client when they use the executable Firefox automation files that I'll going to compile? This looks hassle for my clients..
×
×
  • Create New...