reverse date text

Share your favorite FastKeys commands
Post Reply
ego123
Posts: 1
Joined: May 20th, ’19, 11:13

Post by ego123 » May 20th, ’19, 11:28

I need to change the existing date text

^dd.mm.yyyy

to

yyyy-mm-dd
^


The ^ indicates the cursor position before and after the change.

I tried the following send sequence without success:

{LShift down}{Right 3}{LShift up}^{vk58}{Right 7}-^{vk56}{Backspace}{Left 10}{LShift down}{Right 3}{LShift up}^{vk58}{Right 5}^{vk56}{Backspace}-{Left 8}{Down}

How can I do this?

Thanks
User avatar
Tom
Posts: 791
Joined: Nov 24th, ’15, 23:39

Post by Tom » May 20th, ’19, 15:26

Here is one way. Create a new shortcut, Type: Command

Code: Select all

send ^c
sleep 100
stringsplit, OUT, clipboard, .
send {Del}%OUT3%-%OUT2%-%OUT1%
Select your date string and press a shortcut to make a change.
Post Reply