Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 11/07/2018 in all areas

  1. Jefrey

    multi threading

    Hi all! I've made this small UDF to emulate multithreading for AutoIt3. As we know, AU3 is singlethread and multithreading is only possible through direct ASM. This UDF provides a multithreading emulation through running multiple instances of your script. It also provides an easy way for sending and receiving messages between threads (temporary files are used). Example: Example 2: Docs: Download: Github ZIP Fork me on Github
    1 point
  2. You can set it up using GUISetAccelerators instead of Hotkeys.
    1 point
  3. IIRC you have to have at least 5 posts before you can edit a post.
    1 point
  4. This is coming from the __WD_Error function, which is called by the primary _WD functions. Sounds like you have $_WD_DEBUG set to $_WD_DEBUG_Info Either change this to $_WD_DEBUG_None / $_WD_DEBUG_Error or change $_WD_ERROR_MSGBOX = False.
    1 point
  5. I think it's possible, but since we're talking about a webpage, why don't you integrate buttons in the html? Anyway, i think a layered window with the setontop flag 1 would work.
    1 point
  6. This works for me. Let me know if you can make it work with your website -- #include <wd_core.au3> #include <wd_helper.au3> Local $sDesiredCapabilities, $sElement SetupGecko() _WD_Startup() $sSession = _WD_CreateSession($sDesiredCapabilities) _WD_Navigate($sSession, "https://www.highcharts.com/demo/line-basic") _WD_WaitElement($sSession, $_WD_LOCATOR_ByCSSSelector, ".highcharts-button-box") If @error = $_WD_ERROR_Timeout Then MsgBox(0, "", "Timeout") Else _WD_ExecuteScript($sSession, "jQuery('.highcharts-button-box').click()") EndIf Func SetupChrome() _WD_Option('Driver', 'chromedriver.exe') _WD_Option('Port', 9515) _WD_Option('DriverParams', '--log-path="' & @ScriptDir & '\chrome.log"') $sDesiredCapabilities = '{"capabilities": {"alwaysMatch": {"chromeOptions": {"w3c": true, "args":[' & " ""disable-infobars""" & "" & '] }}}}' EndFunc ;==>SetupChrome Func SetupGecko() _WD_Option('Driver', 'geckodriver.exe') _WD_Option('DriverParams', '--log trace') _WD_Option('Port', 4444) $sDesiredCapabilities = '{"desiredCapabilities":{"javascriptEnabled":true,"nativeEvents":true,"acceptInsecureCerts":true}}' EndFunc ;==>SetupGecko Edit: Note the change to the line checking @error.
    1 point
  7. open ADO.au3 ... try to change _ArrayDisplay to _DebugArrayDisplay and add at the top. #include <Debug.au3> Is this fix your issue ?
    1 point
  8. @vynce1982 You could use WinList() function to retrieve all the Windows opened and, if you match the Window which has that title, then you can grab the handle of the Window and use it to do whatever you want
    1 point
  9. Biatu

    multi threading

    lol, for the past week i have been working on a similar project, using STDIO. my goal is to create a modular include system. Im working on tailoring it like the apt-get system in linux where dependencies and versioning is tracked. So far i have a working demo, and it work as follows: ur code starts up with my script as an include, on start modules are detected, then called for identity, then once you load the module, it is initialized and I have an array if info for each module, along with nested arrays for each STD[IN|ERR|OUT] everything is queued in an adlib timer
    1 point
  10. TheDcoder

    multi threading

    He reported me? ... First, sorry if I have said anything wrong @JiBe , it is not my intention to hurt anyone! (The same is mentioned in my signature) I would welcome any counter-argument , but please do it here, not in the report box! .
    1 point
×
×
  • Create New...