How to press keys

Here you are welcome to discuss items of general interest related to Push2Run
Post Reply
LazySpaniard
Posts: 16
Joined: Mon Dec 19, 2022 12:22 am

How to press keys

Post by LazySpaniard »

I've even tried an easier case just using a lower-case "m" to mute Youtube but it still doesn't work.
What am I doing wrong here?

Code: Select all

{
    "Description":  "Toggle Teams Mute",
    "ListenFor":  "toggle teams mute",
    "Open":  "Active Window",
    "StartDirectory":  "",
    "StartWithAdminPrivileges":  "false",
    "StartingWindowState":  "3",
    "Parameters":  "",
    "KeysToSend":  "{WAIT2000}{CTRL}{SHIFT}{M}"
}
RobLatour
Site Admin
Posts: 1003
Joined: Mon Feb 19, 2018 11:43 am

Re: How to press keys

Post by RobLatour »

Hi,

I just gave it a test and had it work for me.

Of note: the YouTube video, running for example in Chrome, has to be the active window - that is to say the window that is in focus.

For the keys to send, I just used a single lower case m:
m

Although I also tested with what you had:
{WAIT2000}{CTRL}{SHIFT}{M}
and it worked as well.

Having that said, valid values for the wait command are between: {WAIT000} and {WAIT999} - so the wait is unlikely behaving like you expect.

Hope this helps.
Post Reply