• Support
  • Articles
  • Resources
  • Products

Time display window

Moderator: boris

2 postsPage 1 of 1

Kari69
Newbie

Posts:
2
Joined: Thu Oct 06, 2016 9:21 am
by Kari69 » Thu Oct 06, 2016 9:26 am
Hi

I hve created marco to loop some commands.
I have pop up window to display round done.

I would also like to have PC time displayed in format H:M:S:, any idea how to do this?
I know how to include time for log but I need on screen display.

Br

Kari
Trevor
Guru

Posts:
474
Joined: Wed Jul 26, 2006 8:47 am
by Trevor » Sat Oct 08, 2016 10:08 am
See gettime: http://ttssh2.osdn.jp/manual/en/macro/command/gettime
e.g.

Code: Select all

  1.  
  2. loop_counter = 1
  3. while 1
  4.     gettime time_string "%H%M%S"
  5.     sprintf2 msg "Loop %d, time = %s" loop_counter time_string
  6.     messagebox msg "Status"
  7.     loop_counter = loop_counter + 1
  8. endwhile
Display posts from previous:
Sort by:

2 postsPage 1 of 1

Users browsing this forum: No registered users