marcoval Posted September 9, 2004 Report Share Posted September 9, 2004 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. Quote Link to comment Share on other sites More sharing options...
joe Posted September 9, 2004 Report Share Posted September 9, 2004 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> Quote Link to comment Share on other sites More sharing options...
Nicolas Posted September 9, 2004 Report Share Posted September 9, 2004 you could also use the Log Message command with option "date & time stamp" ... it will do all the work Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.