Help with a button that changes

Support for iMacros. The iMacros software is the unique solution for automating every activity inside a web browser, for data extraction and web testing.
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
james007bond
Posts: 3
Joined: Wed Feb 05, 2014 10:38 pm

Help with a button that changes

Post by james007bond » Wed Feb 05, 2014 10:58 pm

Hello, I know imacros for some years.
Whenever I used imacros for a game called travian.
Around a year since I played travian and this time they have updated the version of travian.

Now is not my recording commands that change the code of the button.

Please help me because I can not fix it.

As you can see in the three examples, the value of the last button of the line 52f2********** change the numbers and letters.

VERSION BUILD=8601111 RECORDER=FX
TAB T=1
URL GOTO=http://ts2.travian.net/build.php?tt=99&id=39
TAG POS=1 TYPE=INPUT:CHECKBOX FORM=ACTION:build.php?gid=16&tt=99 ATTR=ID:raidListMarkAll3538 CONTENT=YES
TAG POS=1 TYPE=BUTTON FORM=ACTION:build.php?gid=16&tt=99 ATTR=ID:button52f2bf8e953bc
VERSION BUILD=8601111 RECORDER=FX
TAB T=1
URL GOTO=http://ts2.travian.net/build.php?tt=99&id=39
TAG POS=1 TYPE=INPUT:CHECKBOX FORM=ACTION:build.php?gid=16&tt=99 ATTR=ID:raidListMarkAll3538 CONTENT=YES
TAG POS=1 TYPE=BUTTON FORM=ACTION:build.php?gid=16&tt=99 ATTR=ID:button52f2bc5194d07
VERSION BUILD=8601111 RECORDER=FX
TAB T=1
URL GOTO=http://ts2.travian.net/build.php?tt=99&id=39
TAG POS=1 TYPE=INPUT:CHECKBOX FORM=ACTION:build.php?gid=16&tt=99 ATTR=ID:raidListMarkAll3538 CONTENT=YES
TAG POS=1 TYPE=BUTTON FORM=ACTION:build.php?gid=16&tt=99 ATTR=ID:button52f2bf6e8fa41

I'm Spanish, sorry for language errors
chivracq
Posts: 10301
Joined: Sat Apr 13, 2013 1:07 pm
Location: Amsterdam (NL)

Re: Help with a button that changes

Post by chivracq » Thu Feb 06, 2014 7:34 am

james007bond wrote:
Wed Feb 05, 2014 10:58 pm
Hello, I know imacros for some years.
Whenever I used imacros for a game called travian.
Around a year since I played travian and this time they have updated the version of travian.

Now is not my recording commands that change the code of the button.

Please help me because I can not fix it.

As you can see in the three examples, the value of the last button of the line 52f2********** change the numbers and letters.

Code: Select all

VERSION BUILD=8601111 RECORDER=FX
TAB T=1
URL GOTO=http://ts2.travian.net/build.php?tt=99&id=39
TAG POS=1 TYPE=INPUT:CHECKBOX FORM=ACTION:build.php?gid=16&tt=99 ATTR=ID:raidListMarkAll3538 CONTENT=YES
TAG POS=1 TYPE=BUTTON FORM=ACTION:build.php?gid=16&tt=99 ATTR=ID:button52f2bf8e953bc

Code: Select all

VERSION BUILD=8601111 RECORDER=FX
TAB T=1
URL GOTO=http://ts2.travian.net/build.php?tt=99&id=39
TAG POS=1 TYPE=INPUT:CHECKBOX FORM=ACTION:build.php?gid=16&tt=99 ATTR=ID:raidListMarkAll3538 CONTENT=YES
TAG POS=1 TYPE=BUTTON FORM=ACTION:build.php?gid=16&tt=99 ATTR=ID:button52f2bc5194d07

Code: Select all

VERSION BUILD=8601111 RECORDER=FX
TAB T=1
URL GOTO=http://ts2.travian.net/build.php?tt=99&id=39
TAG POS=1 TYPE=INPUT:CHECKBOX FORM=ACTION:build.php?gid=16&tt=99 ATTR=ID:raidListMarkAll3538 CONTENT=YES
TAG POS=1 TYPE=BUTTON FORM=ACTION:build.php?gid=16&tt=99 ATTR=ID:button52f2bf6e8fa41
I'm Spanish, sorry for language errors

Is this not working...?:

Code: Select all

TAG POS=1 TYPE=BUTTON FORM=ACTION:build.php?gid=16&tt=99 ATTR=ID:button52f2b*
Last edited by chivracq on Wed May 24, 2023 12:58 am, edited 1 time in total.
Reason: Quote of OP added to Post.
- (F)CI(M) = (Full) Config Info (Missing): iMacros + Browser + OS (+ all 3 Versions + 'Free'/'PE'/'Trial').
- FCI not mentioned: I don't even read the Qt...! (or only to catch Spam!)
- Script & URL help a lot for more "educated" Help...
james007bond
Posts: 3
Joined: Wed Feb 05, 2014 10:38 pm

Re: Help with a button that changes

Post by james007bond » Thu Feb 06, 2014 3:46 pm

Thank you very much for answering, but I already had tried and it did not work.

When I type the "*" button redirects me to pointing arrow.

Today it has changed 52f3*

I add an image to make it easier to understand.

Image
chivracq
Posts: 10301
Joined: Sat Apr 13, 2013 1:07 pm
Location: Amsterdam (NL)

Re: Help with a button that changes

Post by chivracq » Thu Feb 06, 2014 6:26 pm

Yep, normal, that's because different Elements on the Page have ID's starting with the same common part, you then need to experiment with POS=x, maybe POS=5 or POS=12..., POS=1 being the Arrow...
- (F)CI(M) = (Full) Config Info (Missing): iMacros + Browser + OS (+ all 3 Versions + 'Free'/'PE'/'Trial').
- FCI not mentioned: I don't even read the Qt...! (or only to catch Spam!)
- Script & URL help a lot for more "educated" Help...
chivracq
Posts: 10301
Joined: Sat Apr 13, 2013 1:07 pm
Location: Amsterdam (NL)

Re: Help with a button that changes

Post by chivracq » Thu Feb 06, 2014 6:33 pm

Or you first tag once the "crear nueva lista" Link/Element, add EXTRACT=TXT at the end, and you tag your Button relatively:

Code: Select all

TAG POS=R-1 TYPE=BUTTON FORM=ACTION:build.php?gid=16&tt=99 ATTR=ID:button52f*
- (F)CI(M) = (Full) Config Info (Missing): iMacros + Browser + OS (+ all 3 Versions + 'Free'/'PE'/'Trial').
- FCI not mentioned: I don't even read the Qt...! (or only to catch Spam!)
- Script & URL help a lot for more "educated" Help...
james007bond
Posts: 3
Joined: Wed Feb 05, 2014 10:38 pm

Re: Help with a button that changes

Post by james007bond » Thu Feb 06, 2014 11:22 pm

TAG POS=8 TYPE=BUTTON FORM=ACTION:build.php?gid=16&tt=99 ATTR=ID:button52f*
Position 8.
Thank you so much for the help, I never would have only solved the problem.
I have had many questions and problems over the years and I never thought to ask.
Sure in the near future I doubt arise.
Thank you very much chivracq.
chivracq
Posts: 10301
Joined: Sat Apr 13, 2013 1:07 pm
Location: Amsterdam (NL)

Re: Help with a button that changes

Post by chivracq » Fri Feb 07, 2014 11:21 am

james007bond wrote:
TAG POS=8 TYPE=BUTTON FORM=ACTION:build.php?gid=16&tt=99 ATTR=ID:button52f*
Position 8.
Thank you so much for the help, I never would have only solved the problem.
I have had many questions and problems over the years and I never thought to ask.
Sure in the near future I doubt arise.
Thank you very much chivracq.
POS=8, I was close!!

Good, glad I could help.

Trying to understand each Line of Code in your Scripts and reading a bit the Wiki-Documentation is how i always manage to solve my own Problems... and experimenting a lot...
- (F)CI(M) = (Full) Config Info (Missing): iMacros + Browser + OS (+ all 3 Versions + 'Free'/'PE'/'Trial').
- FCI not mentioned: I don't even read the Qt...! (or only to catch Spam!)
- Script & URL help a lot for more "educated" Help...
Sosolamenace
Posts: 2
Joined: Tue May 23, 2023 11:51 pm

Re: Help with a button that changes

Post by Sosolamenace » Wed May 24, 2023 12:00 am

Hello guys,

Sorry to bother you, but I tried this solution and it's not working for the new travian version.

Is there any other way to do it ?

I tried with this : TAG POS=1 TYPE=BUTTON ATTR=ID:button646d5316aff5a

Then i tried with the modification to POS=8 but it's not working either.

Thanks a lot for helping me ;)
chivracq
Posts: 10301
Joined: Sat Apr 13, 2013 1:07 pm
Location: Amsterdam (NL)

Re: Help with a button that changes

Post by chivracq » Wed May 24, 2023 1:19 am

Sosolamenace wrote:
Wed May 24, 2023 12:00 am
Hello guys,

Sorry to bother you, but I tried this solution and it's not working for the new travian version.

Is there any other way to do it ?

I tried with this :

Code: Select all

TAG POS=1 TYPE=BUTTON ATTR=ID:button646d5316aff5a
Then i tried with the modification to POS=8 but it's not working either.

Thanks a lot for helping me ;)

CIM...! :mrgreen: (Read my Sig..., and the Forum Rules... :idea: )

Hum, that's a pretty old Thread, from 9 years ago, that was one of the early Threads I had answered, not long after I had joined the Forum, nice...! 8)
(And I was a bit "less strict" then, I now usually refuse to answer when Users don't mention their FCI, when starting a new Thread, or posting for the first time in some existing one...)

But OK, mention your FCI, and could you post a bit more Info...?, the URL to the Site has apparently changed and doesn't work anymore, the Link to the Screenshot that the @OP had included is also dead (exact Reason we now ask in the Forum Rules to upload Screenshots directly to the Forum without using any 3rd party Hosting Providers :!: ), => could you upload some "new" Screenshot as I reckon the Site will require some Login & Password?

>>>

And I've moved the Thread to the 'General' Sub-Forum, it had/has nothing specific to the 'iMacros for FF' one... :!:
- (F)CI(M) = (Full) Config Info (Missing): iMacros + Browser + OS (+ all 3 Versions + 'Free'/'PE'/'Trial').
- FCI not mentioned: I don't even read the Qt...! (or only to catch Spam!)
- Script & URL help a lot for more "educated" Help...
Sosolamenace
Posts: 2
Joined: Tue May 23, 2023 11:51 pm

Re: Help with a button that changes

Post by Sosolamenace » Wed May 24, 2023 9:21 pm

Hello chivracq,

I'm really sorry that my previous post was absolutely not complete. I'm french and my English is not that good so i'll do my best to explain the situation.

1. What version of iMacros are you using?
I'm using the following version of Imacro : VERSION BUILD=1011 RECORDER=CR . I downloaded this version on this website : https://chrome.google.com/webstore/deta ... joopmnlemp

2. What operating system are you using? (please also specify language)
I'm using windows 10 (Microsoft Windows [version 10.0.19045.2965])

3. Which browser(s) are you using? (include version numbers)
I'm using the chrome version of Imacro (cf question n°1)

4. Do the included demo macros work ok?
The demo is correctly working. I think that's it's due to the website

5. If reporting a problem with the iMacros scripting interface, please also test if the included VBS sample scripts run ok.
No problem with that.

6. If recording or replay fails on a specific website: Can you please post the URL of the web page and/or the macro that creates the problem?
I have the following macro :

VERSION BUILD=1011 RECORDER=CR
SET !ERRORIGNORE YES
SET !ENCRYPTION NO
TAB T=1
URL GOTO=https://ts9.x1.international.travian.com/dorf1.php

'DÈbut Cycle 1

'on ouvre les listes de pillage
URL GOTO=https://ts9.x1.international.travian.com/dorf1.php
WAIT SECONDS=3
TAG POS=1 TYPE=SPAN ATTR=TXT:Farmlist
WAIT SECONDS=3
TAG POS=1 TYPE=BUTTON ATTR=ID:button646d5316aff5a

'Fin du cycle 1

The problem occure at this point of the macro "TAG POS=1 TYPE=BUTTON ATTR=ID:button646d5316aff5a".

Indeed, during this phase of the macro, imacro says "Tag waiting... 3.5(6)s" and the desired action is not done. https://gyazo.com/42777df041bf80647c15448b4734e30d

I just want that the macro click on the button "tout lancer" : https://gyazo.com/badff88b458ee030e9c384cf370a524b

7. Do you encounter the same problem recording or replaying the macro in different browsers, such as the iMacros browser, Firefox, Chrome, or Internet Explorer?
I didn't test to be honest do you think that can fix it ?

Thank you for your help and tell me if i missed to tell you some key informations.
Post Reply