Help wittg codes

Discussions and Tech Support specific to the iMacros for Chrome extension.
Forum rules
iMacros EOL - Attention!

The renewal maintenance has officially ended for Progress iMacros effective November 20, 2023 and all versions of iMacros are now considered EOL (End-of-Life). The iMacros products will no longer be supported by Progress (aside from customer license issues), and these forums will also no longer be moderated from the Progress side.

Thank you again for your business and support.

Sincerely,
The Progress Team

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
terjavc
Posts: 2
Joined: Fri Oct 28, 2016 6:03 pm

Help wittg codes

Post by terjavc » Sat Apr 21, 2018 3:47 pm

Hi I am working on my morcro for game to automate it .... I did everythink perfect so it working with outh problem ..... now I wand tu upgrade it ... but it is too mutch for me alone....

I will just tell you what I need and hope sombady cen help me ....

Here if picture

http://prntscr.com/j89esc

I want in this table to mark what is in green and it have green marks like are in blue........ I want imacros to look end mark all lines with gren swords (in blue) .... (there are 3 sword green, yello and red ...)
I want theat imacros go and try mark every line with green one .... I was thinking like this mark TAG POS=1 with green one (code for it is (iReport iReport1))(iReport iReport2 is yellow and iReport iReport3 is red)

for now all I cen do is get code for green and blue selection

Code: Select all

TAG POS=1 TYPE=IMG FORM=ACTION:startRaid.php?id=39&t=99&action=startRaid ATTR=class:iReport<sp>iReport1

TAG POS=1 TYPE=INPUT:UNCHECKBOX FORM=ACTION:startRaid.php?id=39&t=99&action=startRaid ATTR=NAME:slot[3075] CONTENT=NO
I using also comand SET !ERRORIGNORE YES

so have I was thinking I woud look in line 1 for blue mark and if it find it it will select green mark .... if not will waith 5sec with comand (SET !ERRORIGNORE YES) and will go to line 2

here is sorce of code what is in red

Code: Select all

<tbody>
                                        <tr class="slotRow">
                        <td class="checkbox">
<input id="slot3075" name="slot[3075]" class="markSlot" onclick="Travian.Game.RaidList.markSlotForRaid(20, 3075, this.checked);" type="checkbox">
                        </td>
                        <td class="village">
                                                        <label for="slot3075">
                                                            <span class="coordinates coordinatesWithText"><span class="coordText">Terminator's village 53</span></span><span class="clear">‎</span>
                            </label>
                        </td>
                        <td class="ew">654</td>
                        <td class="distance">1.00</td>
                        <td class="troops">
                            <div class="troopIcon"><img class="unit u1" src="img/x.gif"><span class="troopIconAmount">3000000</span></div>                        </td>
                        <td class="lastRaid">
                            <img src="img/x.gif" class="iReport iReport1"> <img src="img/x.gif" class="carry half"><a href="berichte.php?id=1365847">Today 15:37</a>                             <div class="clear"></div>
                        </td>
                        <td class="action">
                            <a class="arrow" href="build.php?gid=16&t=99&action=showSlot&eid=3075&sort=distance&direction=asc">Edit</a>
                        </td>
                    </tr>
                                        <tr class="slotRow">
                        <td class="checkbox">
                            <input id="slot3078" name="slot[3078]" class="markSlot" onclick="Travian.Game.RaidList.markSlotForRaid(20, 3078, this.checked);" type="checkbox">
                        </td>
                        <td class="village">
                                                        <label for="slot3078">
                                                            <span class="coordinates coordinatesWithText"><span class="coordText">Terminator's village 34</span></span><span class="clear">‎</span>
                            </label>
                        </td>
                        <td class="ew">654</td>
                        <td class="distance">1.40</td>
                        <td class="troops">
                            <div class="troopIcon"><img class="unit u1" src="img/x.gif"><span class="troopIconAmount">3000000</span></div>                        </td>
                        <td class="lastRaid">
                            <img src="img/x.gif" class="iReport iReport1"> <img src="img/x.gif" class="carry half"><a href="berichte.php?id=1365851">Today 15:37</a>                             <div class="clear"></div>
                        </td>
                        <td class="action">
                            <a class="arrow" href="build.php?gid=16&t=99&action=showSlot&eid=3078&sort=distance&direction=asc">Edit</a>

I am not a programer but all what I did I learn on youtube and myself .... but to write this code is too mutch for me .... I hope I write clear enuf what I want and hope for help

Thank tim
Post Reply