IMacros: how to use a tooltip with javascript
So, in the code below you can see that I need to put the page and search in quotes, but then javascript
"thinks" that I am closing the quotation mark, which is before PROMPT .
Does anyone know what to do with it?
var macro;
macro = "CODE:";
macro += "PROMPT "Page" !VAR1" + "\n";
macro += "PROMPT "Search" !VAR2" + "\n";
macro += "TAB OPEN" + "\n";
macro += "TAB T=2" + "\n";
macro += "URL GOTO=https://{{!VAR1}}" + "\n";
macro += "SET !ERRORIGNORE YES" + "\n";
macro += "SET !TIMEOUT_TAG 3" + "\n";
macro += "SET !TIMEOUT_PAGE 3" + "\n";
macro += "TAG POS=1 TYPE=INPUT:TEXT FORM=ID:masthead-search ATTR=ID:masthead-search-term CONTENT={{!VAR2}}" + "\n";
macro += "TAG POS=1 TYPE=BUTTON FORM=ID:masthead-search ATTR=ID:search-btn" + "\n";
macro += "TAG POS=1 TYPE=INPUT:TEXT FORM=ID:gbqf ATTR=ID:gbqfq CONTENT={{!VAR2}}" + "\n";
macro += "TAG POS=1 TYPE=BUTTON FORM=ID:gbqf ATTR=ID:gbqfb" + "\n";
macro += "SET !ERRORIGNORE NO" + "\n";
macro += "SET !TIMEOUT_PAGE 60" + "\n";
macro += "SET !TIMEOUT_TAG 60" + "\n";
iimPlay(macro);
Additional Information:
- I am using windows 7 and firefox for this macro.
- I want it in javascript because I will add some loops later
Sorry for mistakes, English is not my first language.
+3
source to share
1 answer
var x='PROMPT \"Page\" ';
document.getElementById("demo").innerHTML = x ;
<p id="demo"></p>
Check the code and adjust accordingly
0
source to share