0

I am using this code

TAG POS=1 TYPE=INPUT:TEXT ATTR=ID:download_url EXTRACT=TXT
SET !VAR6 {{!EXTRACT}}
SET !EXTRACT NULL 
URL GOTO={{!VAR6}}

When !VAR6 is a long URL, I get this error

Error -1000: Error HRESULT E_FAIL has been returned from a call to a COM component.. Line 27: URL GOTO={{!VAR6}}

There is no error if the !VAR6 is a short URL. How do I fix this?

4

1 回答 1

0

http://wiki.imacros.net/Error_and_Return_Codes

Code     Reason
-1000   Unspecified: Macro playback returned an error without explicitly specifying an error code.

试试这个。

TAG POS=1 TYPE=INPUT:TEXT ATTR=ID:download_url EXTRACT=HREF
SET !VAR6 {{!EXTRACT}}
SET !EXTRACT NULL 
URL GOTO={{!VAR6}}

我用 EXTRACT=HREF 替换了 EXTRACT=TXT 。

于 2013-09-15T23:32:26.887 回答