There's a game I play on firefox, and there's a way to recruit soldiers to me and to other players, all I have to do is click on the same word of an image, like this:
Once I clicked the image disappears and this message appears, saying I've recruited a soldier for that player.
On page source开发者_如何学JAVA this element is where's this message is located:
<div id='population_increase'>You have just increased player's population to 128.933.</div>
After that I have to manually copy this message, "You have just increased player's population to 128.933." and paste on the textfield of this, located on another tab/site
This would be the proof, that others players need, to know I've clicked on them.
So since I've to do this about twenty times a day, I'd like to ask if anybody knows any way to help to do this procedure. Like copy that text I need to highlight and copy manually, or just highlight that to me press ctrl+c. I've tryied looking for javascript/greasemonkey scripts without success and imacros too.
The perfect automate procedure would be get that text I need to copy and throw to the textfield on the another tab, click send data and change tab to the other link that would be opened once send data was clicked, but I believe that would be very difficulty or impossible to do it, so any help would be welcome! thanks in advance.
You need to make a CSV file after that you can paste your text to textarea from csv. You dont have to copy that.
TAG POS=(you edit) TYPE=(you edit) ATTR=* EXTRACT=TXT
SAVEAS TYPE=EXTRACT FOLDER=* FILE=yourfile.csv
Or, you can set that text as a variable in first tab, then you can change your tab to 2 and paste the text to your textarea. This is better.
Here, look at my answer for html-tag relation. Html-Tag
Or you can read Tag-Html from wiki
Ok ok, you want that code.
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:ResultsForm ATTR=NAME:* EXTRACT=TXT
SET !VAR1 {{!EXTRACT}}
URL GOTO=(Your form to fill)
After that you must get the tag position of your form then you will replace your text with this code:
TAG POS=1 TYPE=TEXTAREA FORM=NAME:TestForm ATTR=NAME:Remarks CONTENT={{!VAR1}}
Whole code must be
SET !EXTRACT_TEST_POPUP NO
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:ResultsForm ATTR=NAME:* EXTRACT=TXT
SET !VAR1 {{!EXTRACT}}
URL GOTO=(Your form to fill)
TAG POS=1 TYPE=TEXTAREA FORM=NAME:TestForm ATTR=NAME:Remarks CONTENT={{!VAR1}}
You can change !EXTRACT_TEST_POPUP NO
to Yes, you can see what did you coppy at popup.
Edit the tag positions from reading Html-Tag
Or you can read Tag-Html from wiki
Recording a tab position isnt working well! Do not record it, write the position by yourself
精彩评论