Simulate Keyboard Shortcut

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
mats1105
Newbie
Posts: 1
Joined: Wed Apr 24, 2019 3:07 pm

Simulate Keyboard Shortcut

Post by mats1105 » Wed Apr 24, 2019 3:11 pm

Hi,
I am new to macros.

I am trying to make a macro that opens a program, hits a keyboard shortcut, does some other stuff and then closes the program.

The part I can't figure out is how to simulate CTRL+SHIFT+N

Thanks in advance, Mats

User avatar
Dorian (MJT support)
Automation Wizard
Posts: 1386
Joined: Sun Nov 03, 2002 3:19 am
Contact:

Re: Simulate Keyboard Shortcut

Post by Dorian (MJT support) » Wed Apr 24, 2019 3:36 pm

Hi,

Try...

Press CTRL
Press Shift
Send>N
Release Shift
Release CTRL

Occasionally this is too fast for some applications, so you can slow it down slightly with...

Press CTRL
Wait>0.05
Press Shift
Wait>0.05
Send>N
Wait>0.05
Release Shift
Wait>0.05
Release CTRL
Yes, we have a Custom Scripting Service. Message me or go here

Post Reply
cron
Sign up to our newsletter for free automation tips, tricks & discounts