Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 08/22/2020 in all areas

  1. Jury

    Read Json data

    call me crazy but is this for a game? the data includes these entities: building_wishing_well playerId raw_gunpowder
    1 point
  2. Oh! That can be confusing. For example, to access my public folders, I need to use this code: Local $oOL = _OL_Open() If @error Then Exit ConsoleWrite("_OL_Open" & @CRLF) Local $aFolder = _OL_FolderAccess($oOL, "Public Folders - <MyEmail@Address>\All Public Folders\") If @error Then Exit ConsoleWrite("_OL_FolderAccess" & @CRLF) ConsoleWrite("Folder: " & $aFolder[1].FolderPath & @CRLF) The OutlookEx documentation states that using *\<Path> will default to your public folders, but for me, at least, that resolves to this path instead: \\<MyEmail@Address>\ Basically, the easiest way to get a path for a folder in Outlook is to right click the folder, select properties, and copy\paste the full path (location). (This will get you the parent folder, so don't forget to add the current folder's name on to the end)
    1 point
  3. @hemal See if this works for you to reattach to an previous instance of Chrome -- #include "wd_core.au3" #include "wd_helper.au3" Local $sDesiredCapabilities, $sSession, $sElement, $oJSON, $oCaps, $sDebugger SetupChrome() _WD_Startup() $sSession = _WD_CreateSession($sDesiredCapabilities) _WD_Navigate($sSession, "http://google.com") $oJSON = Json_Decode($_WD_SESSION_DETAILS) $oCaps = Json_Get($oJSON, "[value][capabilities]") $sDebugger = $oCaps.Item('goog:chromeOptions').Item('debuggerAddress') $sDesiredCapabilities = '{"capabilities": {"alwaysMatch": {"goog:chromeOptions": {"debuggerAddress": "' & $sDebugger & '"}}}}' _WD_Startup() $sSession = _WD_CreateSession($sDesiredCapabilities) _WD_Navigate($sSession, "http://yahoo.com") Func SetupChrome() _WD_Option('Driver', 'chromedriver.exe') _WD_Option('Port', 9515) _WD_Option('DriverParams', '--verbose --log-path="' & @ScriptDir & '\chrome.log"') $sDesiredCapabilities = '{"capabilities": {"alwaysMatch": {"goog:chromeOptions": {"w3c": true, "excludeSwitches": [ "enable-automation"], "useAutomationExtension": false }}}}' EndFunc P.S. I know about the Chrome "console" window that pops up, but haven't had time to investigate further
    1 point
  4. yeisson

    Chrome UDF

    Hola! Currently I have Windows 10, version 1809, I'm also running Chrome version 73.0.3683.86 and work correctly by only ensuring that after installing "autoit_chrome_native_messaging_host_install" and have the correct id of the Chrome extension to be used in the manifest file: 😄 \ Users \ <User> \ AppData \ Roaming \ AutoIt3 \ Chrome Native Messaging Host \ manifest.json "allowed_origins": [     "chrome-extension://leakmpklghcpopcfgkkjjfhmlkhocjlj/"   ] To know your extension id you must enable the developer mode and it immediately appears, after that you update the manifest and everything will work fine. I hope it helps, greetings.
    1 point
  5. Hi @OzoneB, and welcome to the AutoIt forums You have to "capture" the event "change" sent from the Input box To do this, you use a WM_COMMAND Windows Message, capturing the EN_CHANGE Event/Notification code. A little sample for the welcome #include <Date.au3> #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> Opt("GUIOnEventMode", 1) #Region ### START Koda GUI section ### Form= Global $frmMainForm = GUICreate("A Form", 235, 62, -1, -1) GUISetOnEvent($GUI_EVENT_CLOSE, "ExitApplication") Global $txtInput = GUICtrlCreateInput("", 19, 22, 201, 21) GUICtrlSetFont(-1, 10, 400) GUISetState(@SW_SHOW, $frmMainForm) #EndRegion ### END Koda GUI section ### GUIRegisterMsg($WM_COMMAND, "WM_COMMAND") While 1 Sleep(100) WEnd Func ExitApplication() Exit EndFunc Func WM_COMMAND($hWnd, $iMsg, $wParam, $lParam) Local $hdlWindowFrom, _ $intMessageCode, _ $intControlID_From $intControlID_From = BitAND($wParam, 0xFFFF) $intMessageCode = BitShift($wParam, 16) Switch $intControlID_From Case $txtInput Switch $intMessageCode Case $EN_CHANGE ConsoleWrite("[" & _Now() & "] - The text in the $txtInput control has changed! Text = " & GUICtrlRead($txtInput) & @CRLF) EndSwitch EndSwitch Return $GUI_RUNDEFMSG EndFunc
    1 point
×
×
  • Create New...