how a make a macro for:
if tab t2 is open, wait 5 seconds
its possible ?
question ...
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
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
-
- Posts: 10
- Joined: Sat Sep 24, 2005 8:55 pm
- Tech Support
- Posts: 4948
- Joined: Tue Sep 20, 2005 7:25 pm
- Contact:
-
- Posts: 10
- Joined: Sat Sep 24, 2005 8:55 pm
(my english is very limited)
i use the script interface of iopus, i want one script like:
tab t=1
url goto=<link1>
TAG POS=1 TYPE=STRONG ATTR=HREF:javascript:
if tab t-2 is open (this function not exist in script interface)
wait 30 seconds
tab t=1
tab closeallothers
end if
url goto=<link2>
TAG POS=1 TYPE=STRONG ATTR=HREF:javascript:
if tab t-2 is open (this function not exist in script interface)
wait 30 seconds
tab t=1
tab closeallothers
end if
url goto=<link3>
TAG POS=1 TYPE=STRONG ATTR=HREF:javascript:
if tab t-2 is open (this function not exist in script interface)
wait 30 seconds
tab t=1
tab closeallothers
end if
and continue ... link4, 5, 6, 7, 8.... (i dont know number of links i need)
do you tell me a exemple for this script ?
(sorry the english, if you talk in portuguese, its more easy for me :¬P)
i use the script interface of iopus, i want one script like:
tab t=1
url goto=<link1>
TAG POS=1 TYPE=STRONG ATTR=HREF:javascript:
if tab t-2 is open (this function not exist in script interface)
wait 30 seconds
tab t=1
tab closeallothers
end if
url goto=<link2>
TAG POS=1 TYPE=STRONG ATTR=HREF:javascript:
if tab t-2 is open (this function not exist in script interface)
wait 30 seconds
tab t=1
tab closeallothers
end if
url goto=<link3>
TAG POS=1 TYPE=STRONG ATTR=HREF:javascript:
if tab t-2 is open (this function not exist in script interface)
wait 30 seconds
tab t=1
tab closeallothers
end if
and continue ... link4, 5, 6, 7, 8.... (i dont know number of links i need)
do you tell me a exemple for this script ?
(sorry the english, if you talk in portuguese, its more easy for me :¬P)
- Tech Support
- Posts: 4948
- Joined: Tue Sep 20, 2005 7:25 pm
- Contact:
Your English is muuuuch better than my Portugese
You can achieve the function you need by using the Scripting Interface:
Example: Macro1 looks like:
tab t=1
url goto=<link1>
TAG POS=1 TYPE=STRONG ATTR=HREF:javascript:
TAB T=2
Your script would look like
i = iim1.iimPlay ("macro1")
if i <0 then
msbox "tab2 not found!"
else
msbox "tab 2 open!"
endif
Basically you check if the TAB T=2 command returns an error (= no tab 2 present) or if TAB T=2 switches to tab 2 without error (=> tab 2 exists)

You can achieve the function you need by using the Scripting Interface:
Example: Macro1 looks like:
tab t=1
url goto=<link1>
TAG POS=1 TYPE=STRONG ATTR=HREF:javascript:
TAB T=2
Your script would look like
i = iim1.iimPlay ("macro1")
if i <0 then
msbox "tab2 not found!"
else
msbox "tab 2 open!"
endif
Basically you check if the TAB T=2 command returns an error (= no tab 2 present) or if TAB T=2 switches to tab 2 without error (=> tab 2 exists)
-
- Posts: 10
- Joined: Sat Sep 24, 2005 8:55 pm
this is in the "edit script" in the internet macros browser ?
i not have sucess with this ...
my script is:
TAB T=1
SET !ERRORIGNORE YES
URL GOTO=https://mysite/1
TAB T=1
TAB CLOSEALLOTHERS
TAG POS=1 TYPE=STRONG ATTR=HREF:javascript:
WAIT SECONDS=18
TAB T=1
URL GOTO=https://mysite/2
TAB CLOSEALLOTHERS
TAG POS=1 TYPE=STRONG ATTR=HREF:javascript:
WAIT SECONDS=18
TAB T=1
URL GOTO=https://mysite/3
TAB CLOSEALLOTHERS
TAG POS=1 TYPE=STRONG ATTR=HREF:javascript:
WAIT SECONDS=18
script continue...
exists a total of 9 pages to run in the same script,
only need wait if exists more of 1 tab , if not, dont wait, e goto the next step.
i know only mirc scripting, i confuze ... i am new in the iopus
please, post a how-to, is hard to undertand :¬P
more words = better to understand
i not have sucess with this ...
my script is:
TAB T=1
SET !ERRORIGNORE YES
URL GOTO=https://mysite/1
TAB T=1
TAB CLOSEALLOTHERS
TAG POS=1 TYPE=STRONG ATTR=HREF:javascript:
WAIT SECONDS=18
TAB T=1
URL GOTO=https://mysite/2
TAB CLOSEALLOTHERS
TAG POS=1 TYPE=STRONG ATTR=HREF:javascript:
WAIT SECONDS=18
TAB T=1
URL GOTO=https://mysite/3
TAB CLOSEALLOTHERS
TAG POS=1 TYPE=STRONG ATTR=HREF:javascript:
WAIT SECONDS=18
script continue...
exists a total of 9 pages to run in the same script,
only need wait if exists more of 1 tab , if not, dont wait, e goto the next step.
i know only mirc scripting, i confuze ... i am new in the iopus
please, post a how-to, is hard to undertand :¬P
more words = better to understand