ungovernable Posted March 1, 2016 Posted March 1, 2016 i'm recording a script to autofill a wordpress form where i need to enter the string {{original_post_url}} However, imacros think i am trying to send a built-in variable to it ends up writing __undefined__ to wordpress How can i send {{original_post_url}} as a string ? I already tryed escaping it with backslashes but it doesnt work \{\{original_post_url\}\} Edit: sorry for previous double post, i submitted this one only once
TheSaint Posted March 1, 2016 Posted March 1, 2016 (edited) Hello ungovernable, welcome to the forum. To help you help yourself, we need to see what code you have come up with so far. That will save us time and effort, the last being wasted if we fail to understand your need ... which I currently feel I do. You could also add comments or remarks with your code ... everything helps. P.S. Don't forget to use the <> button when adding code. Edited March 1, 2016 by TheSaint Make sure brain is in gear before opening mouth! Remember, what is not said, can be just as important as what is said. Spoiler What is the Secret Key? Life is like a Donut If I put effort into communication, I expect you to read properly & fully, or just not comment. Ignoring those who try to divert conversation with irrelevancies. If I'm intent on insulting you or being rude, I will be obvious, not ambiguous about it. I'm only big and bad, to those who have an over-active imagination. I may have the Artistic Liesense to disagree with you. TheSaint's Toolbox (be advised many downloads are not working due to ISP screwup with my storage)
InunoTaishou Posted March 1, 2016 Posted March 1, 2016 Send("{{}{{}original_post_url{}}{}}") The { and } (curly braces) are used to signify that everything between this will be a single key (I.e, {F1} will be F1, but without the curly braces it sends the capital F and then the 1 key). So you use curly braces to signify that you need to send the corresponding curly brace. An alternative, a little better, would be to use the clipboard (and faster) ClipPut("{{original_post_url}}") Send("^{v}") But an even better approach is finding a solution that does not rely on send ControlSend("Title/Handle to your window", "", "", "{{}{{}original_post_url{}}{}}") Controlsend is, at least, a little better than Send. ungovernable 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now