Hi,
I still have the need to run a macro and the new ui vision html file method is not working at all, unfortunately.
I keep getting the file not found error and UI.Vision and the macro are not loaded.
The deprecated model, though, seems to work fine and calls the subroutine, but I believe it is not recommended.
Macros are stored in Google Chrome, although this is a Desktop application.
Here is the batch file I am using:
:::::::::::::::::::::::::::::::::::::::::::::::::::::
:::::::::::::::::::::: Variables :::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::
set folder=SIFAC_150/505_Ferias/
set macro=Chama_ferias_folha
set var1=01.2021
set direct=1
set storage=0
set closeBrowser=0
set closeRPA=0
set continueInLastUsedTab=0
set loadmacrotree=1
::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::: Chrome ::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::
START “” “C:\Program Files\Google\Chrome\Application\chrome.exe”
ping -n 15 localhost >nul 2>&1
::::::::::::::::::::::::::::::::::::::::::::::::::::::
:::::::::::::::::::::: Ui Vision :::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::
START “” “C:\Program Files\Google\Chrome\Application\chrome.exe” “file:///C:\Users\wilso\Desktop\uivision\test\bat\autorun.html?direct=%direct%¯o=%macro%&savelog=log1.txt&cmd_var1=%var1%&closeBrowser=%closeBrowser%&closeRPA=%closeRPA%&continueInLastUsedTab=%continueInLastUsedTab%&loadmacrotree=%loadmacrotree%”
ping -n 10 localhost >nul 2>&1
::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::: Exit :::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::
EXIT
Thanks in advance