Simulating Keys + Delay

Discussion, questions and support.
Post Reply
nenglezos
Posts: 2
Joined: Aug 16th, ’21, 05:25

Post by nenglezos » Aug 16th, ’21, 05:35

Hi All,

I'm a new user trying this out for my work. I've tried a bit of searching in the forum but I was not able to find an answer so apologies if I missed something or if the question is a bit basic.

I am trying to automate the below:

1. Ctrl + . This opens a new window in the software I normally work on and the cursor automatically moves there by default.
2. Enter a specific text in that window (let's say BILL). The software is a bit slow, so I also need a bit of a delay between the Ctrl+. and the text being entered.
3. I need to simulate Enter being pressed, so that the new window closes.

I tried to do this in the Text Expander section (because I use this while typing a reply) and I used the below: (selected Command)

Send, ^.
Sleep 350
Send, BILL
Send, {Enter}

This seems to work like I want except for the Enter part, that seems not to be working. Any ideas on what I am doing wrong?

Many thanks,
Nik
User avatar
Marko
Posts: 1718
Joined: Mar 2nd, ’13, 21:02

Post by Marko » Aug 16th, ’21, 12:31

This works on my computer. Maybe try adding additional pause before Enter.

By the way, if using Send type, this would look like this:

Code: Select all

^.{350}BILL{300}{Enter}
nenglezos
Posts: 2
Joined: Aug 16th, ’21, 05:25

Post by nenglezos » Aug 16th, ’21, 22:41

Hi Marko,

Many thanks for the reply. I tried the code you provided and moved the {Enter} to the next line, as it was not triggering in the first line for some reason (the colour was also not pink either, if that makes sense) and then it worked!

Cheers,
Nik
Post Reply