ato09 wrote:I did tried this as you suggested but it still stuck at save as dialog window. It got stuck at line 12.
Code: Select all
VERSION BUILD=844 RECORDER=CR
TAB OPEN
TAB T=2
SET !DATASOURCE savepicture.csv
SET !ERRORIGNORE YES
SET !LOOP 1
set !replayspeed medium
URL GOTO=https://glodimg.chinabrands.com/pdm-product-pic/Clothing/2017/06/03/source-img/20170603175241_21313.jpg
ONDOWNLOAD FOLDER=C:\Users\SUHARTO-DELL\Pictures\AP_shop\men_tshirt FILE={{!COL1}}.jpg WAIT=yes
TAG POS=1 TYPE=IMG ATTR=HREF:https://*.jpg CONTENT=EVENT:SAVEITEM
WAIT SECONDS=1
TAB CLOSE
Yep, but disable the '!ERRORIGNORE' to catch any RuntimeError...
ato09 wrote:Anything that I changed after line 12 are useless as it's always stuck at the windows save dialog.
Code: Select all
TAG POS=1 TYPE=IMG ATTR=HREF:https://*.jpg CONTENT=EVENT:SAVEITEM
I've tried changing it to this. (HREF->SRC) Thinking that it might be the problem but to no avail.
Code: Select all
TAG POS=1 TYPE=IMG ATTR=SRC:https://*.jpg CONTENT=EVENT:SAVEITEM
I can't find anything similar problem from my google searches. Help please.
Yep, sorry you reacted a bit late after my last Reply, a few new Threads came to the Forum and I was busy with some Social Life, ah-ah...!
But OK, I tested your Script, and it works for me in its simplest form:
Code: Select all
VERSION BUILD=8820413 RECORDER=FX
TAB T=1
'set !replayspeed medium
URL GOTO=https://glodimg.chinabrands.com/pdm-product-pic/Clothing/2017/06/03/source-img/20170603175241_21313.jpg
'ONDOWNLOAD FOLDER=C:\Users\SUHARTO-DELL\Pictures\AP_shop\men_tshirt FILE={{!COL1}}.jpg WAIT=yes
'ONDOWNLOAD FOLDER=C:\Users\SUHARTO-DELL\Pictures\AP_shop\men_tshirt FILE=_Forum_ato09_#01.jpg WAIT=yes
ONDOWNLOAD FOLDER="D:\\TEMP\\iMacros\\Temp (Last Backup - 2015-12-09)\\_Forum Cases\\ato09" FILE=_Forum_ato09_#03.jpg WAIT=yes
TAG POS=1 TYPE=IMG ATTR=HREF:https://*.jpg CONTENT=EVENT:SAVEITEM
'WAIT SECONDS=1
(Tested on iMacros for FF v8.8.2, PM v26.3.3 (=FF47), Win10_x32.)
As you can see, it even works with '!REPLAYSPEED' + the 'WAIT' Statement both deactivated...
But the Folder where you want to save the Pix needs to exist preamble to running the Script..., I thought it would be created when I first tried to use your own "C:\Users\SUHARTO-DELL\...", but I got some RuntimeError about "Access denied to that Folder...", but it works fine if I link to some existing Folder...
OK, just to be sure, I tested as well on CR with the exact same simplified Script and it works fine as well, hum, the 'TAG' + 'SAVEITEM' takes 3-5 sec on CR while instant on PM, but it still works...
=> Tested on iMacros for CR v8.4.4, CR Version 61.0.3163.100 (Official Build) (64-bit), Win10_x64.
- (F)CI(M) = (Full) Config Info (Missing): iMacros + Browser + OS (+ all 3 Versions + 'Free'/'PE'/'Trial').
- FCI not mentioned: I don't even read the Qt...! (or only to catch Spam!)
- Script & URL help a lot for more "educated" Help...