How transform a var data from mm:ss to ss

Support for iMacros. The iMacros software is the unique solution for automating every activity inside a web browser, for data extraction and web testing.

Moderators: Community Moderators, iMacros Moderators

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.

How transform a var data from mm:ss to ss

by checconen on Mon Sep 25, 2017 11:20 am

Good evening, I wanna know if there's a way to transform a data memorized in a VAR with mm:ss format to ss.
I need it for the command WAIT SECONDS cause it doesn't work with the format mm:ss
This is the code
SET !EXTRACT_TEST_POPUP no
TAG POS=1 TYPE=SPAN ATTR=ID:duration_box&&TXT:* EXTRACT=TXT
SET !VAR1 {{!EXTRACT}}
SET !EXTRACT NULL
and the !VAR value is for example 13:36

I need the value transformed from 13:36 to 816 (13*60 + 36)
Thanks
checconen
 
Posts: 3
Joined: Sat Sep 23, 2017 6:52 am

Re: How transform a var data from mm:ss to ss

by chivracq on Mon Sep 25, 2017 1:47 pm

checconen wrote:Good evening, I wanna know if there's a way to transform a data memorized in a VAR with mm:ss format to ss.
I need it for the command WAIT SECONDS cause it doesn't work with the format mm:ss
This is the code
Code: Select all
SET !EXTRACT_TEST_POPUP no
TAG POS=1 TYPE=SPAN ATTR=ID:duration_box&&TXT:* EXTRACT=TXT
SET !VAR1 {{!EXTRACT}}
SET !EXTRACT NULL

and the !VAR value is for example 13:36

I need the value transformed from 13:36 to 816 (13*60 + 36)
Thanks

Hum..., "Quality" in this Thread is a bit better than in your previous Thread, but you first need to follow up and handle and finish your previous Thread(s) correctly for me to help you...
=> CIM...! :mrgreen: (Read my Sig..., and this applies for both Threads of course...)

And please use "Standard" English on the Forum, instead of "Wanna-Wanna-Gonna-Gonna-Chicago-Street-Kids-Gangsta" fake Language..., ah-ah...! :roll:
- (F)CIM = (Full) Config Info Missing: iMacros + Browser + OS with all 3 Versions...
- I usually don't even read the Question if that (required) Info is not mentioned...
- Script & URL usually help a lot for a more "educated" Help...
chivracq
 
Posts: 6479
Joined: Sat Apr 13, 2013 6:07 am
Location: Amsterdam (NL)


Return to General Support & Discussions

Who is online

Users browsing this forum: No registered users and 8 guests

-->