fwalser wrote:Hello,
im new to iMacro but i really tried my best, but i do not get (any) the result i need
I just want to extract the balance i have from a website (shown in the top left corner)
Code: Select all
URL GOTO=https://www.crypto-games.net/dice/bitcoin
TAG POS=1 TYPE=SELECT ATTR=ID:lblBalance EXTRACT = TXT
SET !VAR1 EVAL("var s=\"{{!EXTRACT}}\";")
Result is always undefined ... i appreciate every kind of help
CIM..!
(Always mention your FCI when you open a Thread (or post for the first time in some existing Thread), read my Sig, many Commands are not implemented for all Browsers/Versions...)
This one should work:
Code: Select all
SET !VAR1 EVAL("var s=\"{{!EXTRACT}}\"; s;")
PROMPT {{!VAR1}}
But that's a bit of a cumbersome Use of 'EVAL()' if you simply want to store the Content of '!EXTRACT' in '!VAR1' without doing any Data Manipulation on it, much easier is to use:
Code: Select all
SET !VAR1 {{!EXTRACT}}
PROMPT {{!VAR1}}
And from a look at your Site, the Balance Field you want to extract is not of "TYPE=SELECT" but of "TYPE=SPAN"... But maybe you get a different HTML Content once you are logged in with some Account...
- (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...