chivracq wrote:iimfun wrote:chivracq wrote:... could you confirm if '{{!CLIPBOARD}}' works or not on CR with v8.4.4 for CR...?
Yes, the !CLIPBOARD variable is workable in iMacros for Chrome. But it's impossible to retrieve directly the value that was copied outside the browser. At the same time this built-in variable sets the OS clipboard.
Euh..., that one I don't understand exactly-exactly
, the Qt was if referencing '{{!CLIPBOARD}}' (with the 'Copy' from iMacros or from outside => directly from the OS Clipboard)) works...? I want to know very-exactly what the "Results" are and what works or not, if I need to post again about it on the Forum...
But OK, I finally gave in (
) and installed CR (v60), and iMacros for it (v8.4.4) + FIO of course, OK, I'll test for myself and I'll be a bit "independent" from now on, ah-ah...!
I guess I still haven't figured out exactly how Humans communicate with Qt's and Answers..., oops...!
(OK, still working on that, ah-ah...!
)
Ah OK, I get it, I understand now..., from doing my own little Testing... (with iMacros for CR v8.4.4 + CR60, but hum..., nope...!, CR updated itself silently from CR60 to CR61, without asking me anything, grrr..., I don't like that...!
)
=> FCI: iMacros for CR v8.4.4, CR61 (v61.0.3163.100_x64), Win10_x64.)
But hum..., strange Behaviour indeed, and the Info in the Wiki is more or less correct:
works fine indeed...
But using '{{!CLIPBARD}}' only works for retrieving the Content of some kind of "parallel" Clipboard from a previous 'SET !CLIPBOARD' Command (and only used by iMacros (for CR)) from the same Run or from some previous Run, even if iMacros was closed and reopened, within the same Chrome Session... (Its Content gets reset if CR is closed and restarted...)
Hum, funny way of presenting a 'PROMPT', with "demo.imacros.net says", ah-ah...!
And 'PROMPT' needs a Web-Page to be loaded in the Browser to work or yields some RuntimeError otherwise, eh-beh...!
But OK, so that means my first Workaround in my first Post with Double Click on "Address" + 'Ctrl^c' or 'Copy' doesn't work indeed on CR.
I tested as well with @iimfun's Method (using "my" Script applied to the Demo-Site), and it works indeed correctly, even if a bit confusing I find, compared to iMacros for FF on FF/PM as when switching from the CR Web-Page to the iMacros Dok-Panel (undocked) to select and launch a Macro, the Focus (inside the 'Address' Input Field) disappears and seems to be lost, but the Script still does its "Job" correctly...
Then that's the best Solution for @OP, I would think...
Some Workaround(s) I had in mind from my first Post if "my" "Select + Copy the Label" wouldn't work, would be to have some mini-TEMP '.TXT' File open in parallel where that Label could be saved on the fly, and that '.TXT' File could be used as a DataSource by iMacros with stg like:
Code: Select all
SET !TIMEOUT_STEP 300
'TAG POS=1 TYPE=LABEL FORM=ID:demo ATTR=TXT:Address
TAG POS=1 TYPE=LABEL FORM=ID:demo ATTR=TXT:*{{!COL1}}*
WAIT SECONDS=6
'TAG POS=R1 TYPE=INPUT:TEXT FORM=ID:demo ATTR=ID:address CONTENT=address_input
TAG POS=R1 TYPE=INPUT:TEXT FORM=ID:demo ATTR=ID:* CONTENT=address_input
TAG POS=R1 TYPE=INPUT:TEXT FORM=ID:demo ATTR=ID:* CONTENT=city_input
TAG POS=R1 TYPE=INPUT:TEXT FORM=ID:demo ATTR=ID:* CONTENT=zip_input
... => with '{{!COL1}}' instead of '{{!CLIPBOARD}}', if, like I expect, iMacros would refetch every Second the Content of '!COL1' from the DataSource 300 times until a Match is found... If '!COL1' is only fetched once, then the Method with the Script already running and waiting for 300 sec wouldn't work and the mini-TEMP File would first need to be saved before launching the Macro... (I didn't test...)
Some other Method/Workaround that would be a bit less cumbersome, would be to simply have the Script expect the User to type some "unique" String like "zzz" for example in the Input Field they would want the Script to start from with the Focus and the Script would wait for 300 sec until this "zzz" is found somewhere, to then using Double Relative Positioning, first on the Label, and then back on the Input Field to fill in the 3 Input Fields.
But again, I find @iimfun's Solution more "straightforward"...
(And I'll make sure to bookmark this Thread, ah-ah...! As I finally know exactly now how '!CLIPBOARD' works on CR, and this Syntax/Trick can be very useful for passing a Var back from an 'URL GOTO=javascript:' Statement to the '.iim' Script...
)
- (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...