Page 1 of 1

How to press keys

Posted: Fri Mar 15, 2024 1:37 pm
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}"
}

Re: How to press keys

Posted: Sat Mar 16, 2024 11:07 am
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.