FF EVENT CLIPBOARD

Discussions and Tech Support related to the iMacros Firefox Add-on, including the built-in Javascript scripting interface for playing .js files.
Forum rules
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information:CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
Post Reply
STRONGpassword
Posts: 7
Joined: Wed Jan 02, 2019 10:53 pm

FF EVENT CLIPBOARD

Post by STRONGpassword » Wed Jan 02, 2019 11:07 pm

Hi everyone!
please help

Code: Select all

<b><span style="color: #999966">Год выхода:</span></b> <span style="color: #006699">2002</span><br/>
how to extract exactly 2002

Code: Select all

TAG POS=1 TYPE=SPAN ATTR=TXT:Год<SP>выхода:* EXTRACT=TXT
returns Год выхода:
I also tried

Code: Select all

EVENT TYPE=CLICK SELECTOR="HTML>BODY>TABLE:nth-of-type(2)>TBODY>TR>TD:nth-of-type(2)>TABLE:nth-of-type(2)>TBODY>TR:nth-of-type(4)>TD:nth-of-type(2)>SPAN:nth-of-type(4)" BUTTON=0
but I don't know how to add the result into clipboard
chivracq
Posts: 8139
Joined: Sat Apr 13, 2013 1:07 pm
Location: Amsterdam (NL)

Re: FF EVENT CLIPBOARD

Post by chivracq » Wed Jan 02, 2019 11:47 pm

STRONGpassword wrote:
Wed Jan 02, 2019 11:07 pm
Hi everyone!
please help

Code: Select all

<b><span style="color: #999966">Год выхода:</span></b> <span style="color: #006699">2002</span><br/>
how to extract exactly 2002

Code: Select all

TAG POS=1 TYPE=SPAN ATTR=TXT:Год<SP>выхода:* EXTRACT=TXT
returns Год выхода:
I also tried

Code: Select all

EVENT TYPE=CLICK SELECTOR="HTML>BODY>TABLE:nth-of-type(2)>TBODY>TR>TD:nth-of-type(2)>TABLE:nth-of-type(2)>TBODY>TR:nth-of-type(4)>TD:nth-of-type(2)>SPAN:nth-of-type(4)" BUTTON=0
but I don't know how to add the result into clipboard
Pfff, your Thread has nothing to do with "FF" (especially if you don't even mention your FCI, stupidoo...!, too lazy to read the Forum Rules...!?) => Wrong Sub-Forum...! :roll: + 'EVENT' + 'CLIPBOARD', difficult to help you I would think if you don't even know yourself what your "Pb" is about, ah-ah...! :roll:

CIM...! :mrgreen: (Read my Sig...)

But OK, I'm being nice, I usually don't answer such "Low-Quality" Threads ah-ah...! 8) , but OK, try this one...:

Code: Select all

TAG POS=1 TYPE=SPAN ATTR=TXT:Год<SP>выхода:* EXTRACT=TXT
SET !EXTRACT NULL
TAG POS=R1 TYPE=SPAN ATTR=* EXTRACT=TXT
PROMPT EXTRACT:<SP>_{{!EXTRACT}}_
Mention your FCI for me to follow up if my Script doesn't work.... :idea:

Hum, and your:

Code: Select all

EVENT TYPE=CLICK SELECTOR="HTML>BODY>TABLE:nth-of-type(2)>TBODY>TR>TD:nth-of-type(2)>TABLE:nth-of-type(2)>TBODY>TR:nth-of-type(4)>TD:nth-of-type(2)>SPAN:nth-of-type(4)" BUTTON=0
... is completely useless, 'EVENT' Statements are very difficult to understand/follow if you don't put any Comment in your own Code, and for other Users even worse if you don't post the URL of the Page/Site..., just saying... :wink:

And share your Script if you manage to find the Sol by yourself..., or react in some "timely" Time-Span if you still need some Help, I don't react anymore for Users who follow up only after 3 weeks or 3 months... (hum, or 3 years, still happens frequently, ah-ah...!)... :idea:
- (F)CIM = (Full) Config Info Missing: iMacros + Browser + OS with all 3 Versions...
- I usually don't even read the Question if that (required) Info is not mentioned...
- Script & URL usually help a lot for a more "educated" Help...
STRONGpassword
Posts: 7
Joined: Wed Jan 02, 2019 10:53 pm

Re: FF EVENT CLIPBOARD

Post by STRONGpassword » Thu Jan 03, 2019 12:55 pm

chivracq wrote:
Wed Jan 02, 2019 11:47 pm
STRONGpassword wrote:
Wed Jan 02, 2019 11:07 pm
Hi everyone!
please help

Code: Select all

<b><span style="color: #999966">Год выхода:</span></b> <span style="color: #006699">2002</span><br/>
how to extract exactly 2002

Code: Select all

TAG POS=1 TYPE=SPAN ATTR=TXT:Год<SP>выхода:* EXTRACT=TXT
returns Год выхода:
I also tried

Code: Select all

EVENT TYPE=CLICK SELECTOR="HTML>BODY>TABLE:nth-of-type(2)>TBODY>TR>TD:nth-of-type(2)>TABLE:nth-of-type(2)>TBODY>TR:nth-of-type(4)>TD:nth-of-type(2)>SPAN:nth-of-type(4)" BUTTON=0
but I don't know how to add the result into clipboard
Pfff, your Thread has nothing to do with "FF" (especially if you don't even mention your FCI, stupidoo...!, too lazy to read the Forum Rules...!?) => Wrong Sub-Forum...! :roll: + 'EVENT' + 'CLIPBOARD', difficult to help you I would think if you don't even know yourself what your "Pb" is about, ah-ah...! :roll:

CIM...! :mrgreen: (Read my Sig...)

But OK, I'm being nice, I usually don't answer such "Low-Quality" Threads ah-ah...! 8) , but OK, try this one...:

Code: Select all

TAG POS=1 TYPE=SPAN ATTR=TXT:Год<SP>выхода:* EXTRACT=TXT
SET !EXTRACT NULL
TAG POS=R1 TYPE=SPAN ATTR=* EXTRACT=TXT
PROMPT EXTRACT:<SP>_{{!EXTRACT}}_
Mention your FCI for me to follow up if my Script doesn't work.... :idea:

Hum, and your:

Code: Select all

EVENT TYPE=CLICK SELECTOR="HTML>BODY>TABLE:nth-of-type(2)>TBODY>TR>TD:nth-of-type(2)>TABLE:nth-of-type(2)>TBODY>TR:nth-of-type(4)>TD:nth-of-type(2)>SPAN:nth-of-type(4)" BUTTON=0
... is completely useless, 'EVENT' Statements are very difficult to understand/follow if you don't put any Comment in your own Code, and for other Users even worse if you don't post the URL of the Page/Site..., just saying... :wink:

And share your Script if you manage to find the Sol by yourself..., or react in some "timely" Time-Span if you still need some Help, I don't react anymore for Users who follow up only after 3 weeks or 3 months... (hum, or 3 years, still happens frequently, ah-ah...!)... :idea:
As you can guess, I'm using imacros for three days, please be patient. If I've read whole wiki and FAQ and all threads I would not find a solution.

Code: Select all

TAG POS=1 TYPE=SPAN ATTR=TXT:Год<SP>выхода:* EXTRACT=TXT
SET !EXTRACT NULL
TAG POS=R1 TYPE=SPAN ATTR=* EXTRACT=TXT
PROMPT EXTRACT:<SP>_{{!EXTRACT}}_
Works exactly as needed.
But I face next issue

Code: Select all

SET !VAR1 {{!EXTRACT}}
ADD !VAR1 {{!COL1}} 
not working. I want to save each var into special csv column.
And this http://imgbox.com/KZ2HRxR9http://imgbox.com/KZ2HRxR9
What is wrong?
chivracq
Posts: 8139
Joined: Sat Apr 13, 2013 1:07 pm
Location: Amsterdam (NL)

Re: FF EVENT CLIPBOARD

Post by chivracq » Thu Jan 03, 2019 5:29 pm

STRONGpassword wrote:
Thu Jan 03, 2019 12:55 pm
As you can guess, I'm using imacros for three days, please be patient. If I've read whole wiki and FAQ and all threads I would not find a solution.

Code: Select all

TAG POS=1 TYPE=SPAN ATTR=TXT:Год<SP>выхода:* EXTRACT=TXT
SET !EXTRACT NULL
TAG POS=R1 TYPE=SPAN ATTR=* EXTRACT=TXT
PROMPT EXTRACT:<SP>_{{!EXTRACT}}_

Works exactly as needed.

But I face next issue

Code: Select all

SET !VAR1 {{!EXTRACT}}
ADD !VAR1 {{!COL1}} 
not working. I want to save each var into special csv column.

And this http://imgbox.com/KZ2HRxR9http://imgbox.com/KZ2HRxR9
What is wrong?
Ouf-ouf...!, you don't need to re-quote yourself, that doesn't help for "Readability" of the Thread... :shock:

"Works exactly as needed." => Well, good to hear... :D
But you missed the "(F)CIM" part for me to follow up about your "next issue", like I had mentioned... :roll:

Hum, and you can better upload Screenshots directly to the Forum rather than using some external Hosting Site as all those Sites stop working or go commercial one day and that Picture will end up with an empty Container in the Thread...
Oh...!, and I already get some Error anyway, trying to check your Screenshot...:
The page you were looking for doesn't exist.
- (F)CIM = (Full) Config Info Missing: iMacros + Browser + OS with all 3 Versions...
- I usually don't even read the Question if that (required) Info is not mentioned...
- Script & URL usually help a lot for a more "educated" Help...
STRONGpassword
Posts: 7
Joined: Wed Jan 02, 2019 10:53 pm

Re: FF EVENT CLIPBOARD

Post by STRONGpassword » Thu Jan 03, 2019 6:18 pm

chivracq wrote:
Thu Jan 03, 2019 5:29 pm
STRONGpassword wrote:
Thu Jan 03, 2019 12:55 pm
As you can guess, I'm using imacros for three days, please be patient. If I've read whole wiki and FAQ and all threads I would not find a solution.

Code: Select all

TAG POS=1 TYPE=SPAN ATTR=TXT:Год<SP>выхода:* EXTRACT=TXT
SET !EXTRACT NULL
TAG POS=R1 TYPE=SPAN ATTR=* EXTRACT=TXT
PROMPT EXTRACT:<SP>_{{!EXTRACT}}_

Works exactly as needed.

But I face next issue

Code: Select all

SET !VAR1 {{!EXTRACT}}
ADD !VAR1 {{!COL1}} 
not working. I want to save each var into special csv column.
[Solved]

Code: Select all

TAG POS=1 TYPE=B ATTR=TXT:Audio#9:* EXTRACT=TXT
SET !EXTRACT NULL
TAG POS=R2 TYPE=SPAN ATTR=* EXTRACT=TXT
SET !VAR22 {{!EXTRACT}}
SET !EXTRACT NULL
ADD !EXTRACT {{!var22}}
SAVEAS TYPE=EXTRACT FOLDER=* FILE=+_{{!NOW:yyyymmdd_hhnnss}}
But I dont understand why !VAR can be from VAR0 to VAR9 only, issue not so mandatory
NEXT CHAPTER fill into web from csv, I will share code when find how to solve
correct link with screenshot font shadow error
http://imgbox.com/KZ2HRxR9
chivracq
Posts: 8139
Joined: Sat Apr 13, 2013 1:07 pm
Location: Amsterdam (NL)

Re: FF EVENT CLIPBOARD

Post by chivracq » Thu Jan 03, 2019 7:19 pm

STRONGpassword wrote:
Thu Jan 03, 2019 6:18 pm

Code: Select all

TAG POS=1 TYPE=B ATTR=TXT:Audio#9:* EXTRACT=TXT
SET !EXTRACT NULL
TAG POS=R2 TYPE=SPAN ATTR=* EXTRACT=TXT
SET !VAR22 {{!EXTRACT}}
SET !EXTRACT NULL
ADD !EXTRACT {{!var22}}
SAVEAS TYPE=EXTRACT FOLDER=* FILE=+_{{!NOW:yyyymmdd_hhnnss}}
But I dont understand why !VAR can be from VAR0 to VAR9 only, issue not so mandatory
NEXT CHAPTER fill into web from csv, I will share code when find how to solve
correct link with screenshot font shadow error
http://imgbox.com/KZ2HRxR9
Oh well, never mind, I guess you don't understand what I'm asking you... :(

Funny Pseudo for a Forum btw... 8)
- (F)CIM = (Full) Config Info Missing: iMacros + Browser + OS with all 3 Versions...
- I usually don't even read the Question if that (required) Info is not mentioned...
- Script & URL usually help a lot for a more "educated" Help...
STRONGpassword
Posts: 7
Joined: Wed Jan 02, 2019 10:53 pm

Re: FF EVENT CLIPBOARD

Post by STRONGpassword » Fri Jan 04, 2019 6:23 pm

really need tip,
problem in next

Code: Select all

TAG POS=1 TYPE=B ATTR=TXT:audio#3: EXTRACT=TXT
SET !EXTRACT NULL
TAG POS=R1 TYPE=SPAN ATTR=* EXTRACT=TXT
SET !VAR7 {{!EXTRACT}}
TAG POS=1 TYPE=B ATTR=TXT:audio#3: EXTRACT=TXT
SET !EXTRACT NULL
TAG POS=R2 TYPE=SPAN ATTR=* EXTRACT=TXT
SET !VAR8 {{!EXTRACT}}
TAG POS=1 TYPE=B ATTR=TXT:audio#3: EXTRACT=TXT
SET !EXTRACT NULL
TAG POS=R4 TYPE=SPAN ATTR=* EXTRACT=TXT
SET !VAR9 {{!EXTRACT}}
TAG POS=R2 is missed, so it's automatically replaced by the next extracted item,
how to make that missed TAGs wouldl not have empty cell
#EANF# doesnot correspond
Dont understand what (F)CIM stands for
chivracq
Posts: 8139
Joined: Sat Apr 13, 2013 1:07 pm
Location: Amsterdam (NL)

Re: FF EVENT CLIPBOARD

Post by chivracq » Fri Jan 04, 2019 6:28 pm

STRONGpassword wrote:
Fri Jan 04, 2019 6:23 pm
really need tip,
problem in next

Code: Select all

TAG POS=1 TYPE=B ATTR=TXT:audio#3: EXTRACT=TXT
SET !EXTRACT NULL
TAG POS=R1 TYPE=SPAN ATTR=* EXTRACT=TXT
SET !VAR7 {{!EXTRACT}}
TAG POS=1 TYPE=B ATTR=TXT:audio#3: EXTRACT=TXT
SET !EXTRACT NULL
TAG POS=R2 TYPE=SPAN ATTR=* EXTRACT=TXT
SET !VAR8 {{!EXTRACT}}
TAG POS=1 TYPE=B ATTR=TXT:audio#3: EXTRACT=TXT
SET !EXTRACT NULL
TAG POS=R4 TYPE=SPAN ATTR=* EXTRACT=TXT
SET !VAR9 {{!EXTRACT}}
TAG POS=R2 is missed, so it's automatically replaced by the next extracted item,
how to make that missed TAGs wouldl not have empty cell
#EANF# doesnot correspond
Dont understand what (F)CIM stands for
:wink:
- (F)CIM = (Full) Config Info Missing: iMacros + Browser + OS with all 3 Versions...
- I usually don't even read the Question if that (required) Info is not mentioned...
- Script & URL usually help a lot for a more "educated" Help...
STRONGpassword
Posts: 7
Joined: Wed Jan 02, 2019 10:53 pm

Re: FF EVENT CLIPBOARD

Post by STRONGpassword » Fri Jan 04, 2019 6:57 pm

chivracq wrote:
Fri Jan 04, 2019 6:28 pm
:wink:
Oh come on, I've made huge efforts to make marcos runs well,
maybe if I give external links to my pastebins works, you will help?
chivracq, you want me begging you?
chivracq
Posts: 8139
Joined: Sat Apr 13, 2013 1:07 pm
Location: Amsterdam (NL)

Re: FF EVENT CLIPBOARD

Post by chivracq » Fri Jan 04, 2019 9:48 pm

STRONGpassword wrote:
Fri Jan 04, 2019 6:57 pm
chivracq wrote:
Fri Jan 04, 2019 6:28 pm
:wink:
Oh come on, I've made huge efforts to make marcos runs well,
maybe if I give external links to my pastebins works, you will help?
chivracq, you want me begging you?
You can try "begging" if you want but I'm "incorruptible" I'm afraid, ah-ah...!, just read and understand my previous Replies, I've been asking you to mention your FCI (= "Full Config Info" => + Read my Sig(nature) I said...!) since you opened this Thread, and saying 2 or 3 times I wouldn't follow up if you didn't comply... :roll:
If mentioning 3 Versions about your Environment is already too "complicated" for you, then sorry, I'm not willing to help you... (Waste of time for everybody...) roll:

Correct Spelling is "iMacros" btw, not your weird "marcos"... :roll:
- (F)CIM = (Full) Config Info Missing: iMacros + Browser + OS with all 3 Versions...
- I usually don't even read the Question if that (required) Info is not mentioned...
- Script & URL usually help a lot for a more "educated" Help...
STRONGpassword
Posts: 7
Joined: Wed Jan 02, 2019 10:53 pm

Re: FF EVENT CLIPBOARD

Post by STRONGpassword » Sun Jan 06, 2019 1:55 pm

chivracq wrote:
Fri Jan 04, 2019 9:48 pm

You can try "begging" if you want but I'm "incorruptible" I'm afraid, ah-ah...!, just read and understand my previous Replies, I've been asking you to mention your FCI (= "Full Config Info" => + Read my Sig(nature) I said...!) since you opened this Thread, and saying 2 or 3 times I wouldn't follow up if you didn't comply... :roll:
If mentioning 3 Versions about your Environment is already too "complicated" for you, then sorry, I'm not willing to help you... (Waste of time for everybody...) roll:

Correct Spelling is "iMacros" btw, not your weird "marcos"... :roll:
FCI = IMacros=8.9.7, FF=52.xxx OS=WIN7 - really dont know how this config info will help.
How to disable overwriting by the next in line element, if previous one is totally missed?
chivracq
Posts: 8139
Joined: Sat Apr 13, 2013 1:07 pm
Location: Amsterdam (NL)

Re: FF EVENT CLIPBOARD

Post by chivracq » Sun Jan 06, 2019 2:48 pm

STRONGpassword wrote:
Sun Jan 06, 2019 1:55 pm
FCI =

Code: Select all

IMacros=8.9.7, FF=52.xxx OS=WIN7
- really dont know how this config info will help.
How to disable overwriting by the next in line element, if previous one is totally missed?
Oh...!, wonderful...!, we finally have your FCI...! :D
Still can't type "iMacros" exactly-completely correctly, but OK, that's good enough...

Yeah well, about "really dont know how this config info will help." => then you still didn't read or understand the Content of my Sig, ah-ah...! :lol:

OK, next "Step" is, you are going to open a new "clean" Thread as this one is now getting a little bit unreadable, and your original Qt was about your "2002" and that part has already been answered and solved...

And try to do "things" a little bit correctly now for this next Thread: :idea:
=> Choose the correct Sub-Forum. (=> Will be the 'General' Sub-Forum, this current Thread already had nothing specific to 'iMacros for FF'...)
=> Give a Descriptive Title to your Thread, corresponding to your "real" Qt. (Like I had already mentioned, this current Thread Title had nothing to do with your "2002" Qt...)
=> Mention your FCI of course....! :wink:
=> Post your Script and give all Info needed to understand clearly your Qt/Scenario directly and from just one single Post... :idea:

(I only answer Threads that comply with these "Quality Criteria"... If you don't want to comply, fair enough and good luck with other (Advanced) Users...)
- (F)CIM = (Full) Config Info Missing: iMacros + Browser + OS with all 3 Versions...
- I usually don't even read the Question if that (required) Info is not mentioned...
- Script & URL usually help a lot for a more "educated" Help...
Post Reply