VERSION BUILD=10101485
OS=macOS Monterey 12.1
Browser=95.0.2 (64-bit)
Other macros functioning as expected=YES
I'd like to my post with an apology, the last time I asked for support I simply gave up but didn't post to say thank you.
I have been furthering my knowledge of iMacro and it's potential functions playing an online text based games. I'm trying to automate the purchase of a product. I think I've tried a variety of different methods and solutions between extracting css selectors, using the clipboard function and caused myself to become more confused.
Code: Select all
SET !EXTRACT_TEST_POPUP NO
URL GOTO=https://awebsite.com/site.php?page=foodhall
' copy required info
TAG POS=2 TYPE=DIV ATTR=TXT:This<SP>foodhall<SP>is<SP>owned<SP>by<SP>Dave<SP>U* EXTRACT=TXT
SET !CLIPBOARD {{!EXTRACT}}
WAIT SECONDS=2
' paste required info
TAG POS=1 TYPE=INPUT:TEXT FORM=ACTION:https://awebsite.com/site.php?page=foodhall ATTR=NAME:buyfood CONTENT={{!CLIPBOARD}}
WAIT SECONDS=20
' submit
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ACTION:https://awebsite.com/site.php?page=foodhall ATTR=NAME:give
WAIT SECONDS=10
The extract function works but I would like some assistance in getting a specific piece of information out of it.
It returns the following -
I would like to extract the 220 in this case (the number changes over time) and paste it into a box below it and submit the form.This foodhall is owned by Harry's Uncle!
And being held by Harry!
It currently has 220 hams.
The bullet price is $1,000 for each ham!
I can provide the html where this information is found if required.
Any assistance would be greatly appreciated. The forum, program and extensions are fantastic products, I will be purchasing a full license in the near future!