Page 1 of 1

Insert system date to Text field

Posted: Tue Dec 18, 2018 1:54 pm
by nnorbi
Hello There!

I have a problem. I'm never use Ranorex before.

In my recording, there is a Key sequence where in the sequence field = Teszt (Text type)

Image

In the desktop software:

Image

I need to insert the current system date to the Text field.

How to do that?

Many thanks

Re: Insert system date to Text field

Posted: Fri Dec 21, 2018 10:35 am
by odklizec
Hi,

I'm afraid, there are missing screenshots in your post.

As for your problem, you must create a user code, in which you get the actual date (in format you need), fill the recording variable of your choice and simply use that variable in KeySequence action.

To obtain the system date/time, use this code:
timestamp = System.DateTime.Now.ToString("yy.MMM.dd_HHmmss");