Jump to content
Macro Express Forums

Getting A Time Stamp To A Text File.


marcoval

Recommended Posts

Ok so I've been attempting to get the time from the beginning of the loading of a website to the end of the loading of a website into a text file and I've run into a snag, and there is probably some easy way to do this.

 

The way I went about it was this..

 

Click on button for webpage (This works fine)

Clipboard Start Copy

Time:Type Out hh:mm:ss

Text type: ; -------- This is a deliniation because this data will be imported by an Excel sheet.

Clipboard End Copy

Clipboard Append Text: "Test.txt"

Wait for Web Page ""

Clipboard Start Copy

Time:Type Out hh:mm:ss

Text type: ;

Clipboard End Copy

Clipboard Append Text: "Test.txt"

 

However this is what I get in the text file....

<hh:mm:ssP000{Y}{P000}>;

<hh:mm:ssP000{Y}{P000}>;

<hh:mm:ssP000{N}{P000}>;

<hh:mm:ssP000{Y}{P000}>;

 

Thoughts on how I can get this to work? I tried putting it into a variable but couldn't figure out how to get the variable to the clipboard or the text file.

Link to comment
Share on other sites

Welcome to the Macro Express forum!

 

Try this coding. You can copy and paste it, but you may want to change variables and file names, and so forth.

 

Click on button for webpage (This works fine)
Date/Time: Save "hh:mm:ss" into %T1%
Variable Modify String: Append ";" to %T1%
Wait for Web Page: ""
Date/Time: Save "hh:mm:ss" into %T2%
Variable Modify String: Append "%T2%;" to %T1%
Variable Modify String: Append %T1% to Text File

<DT:hh:mm:ssT:01:1:><TMVAR2:07:01:00:000:000:;><WAITWEB2:000010:000000:><DT:hh:mm:ssT:02:1:><TMVAR2:07:01:00:000:000:%T2%;><TMVAR2:20:01:00:000:000:test.txtF>

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...