Help wittg codes

Discussions and Tech Support related to the iMacros Google Chrome extension.
Forum rules
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the Google search box (at the top of each forum page) to see if a similar problem or question has already been addressed. This will search the entire contents of the forums as well as the iMacros Wiki.
3. We can respond much faster to your posts if you include the following information:

CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST

Answering your own posts (e.g. attempting to "bump" your topic) drops your topic from the list of unanswered threads, so it may actually receive less views.
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&amp;t=99&amp;action=showSlot&amp;eid=3075&amp;sort=distance&amp;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&amp;t=99&amp;action=showSlot&amp;eid=3078&amp;sort=distance&amp;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