Pressing two keys simultaneously

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
diamondrail
Junior Coder
Posts: 20
Joined: Wed Jul 31, 2019 9:38 am

Pressing two keys simultaneously

Post by diamondrail » Fri Oct 04, 2019 9:32 pm

Hi,
I am wanting to press "TAB" and "SHIFT" at the exact same time, once.

I have tried a few combinations but with no success in coding.

User avatar
Grovkillen
Automation Wizard
Posts: 1009
Joined: Fri Aug 10, 2012 2:38 pm
Location: Bräcke, Sweden
Contact:

Re: Pressing two keys simultaneously

Post by Grovkillen » Sat Oct 05, 2019 12:21 pm

Study the manual in the section for key strokes.
Let>ME=%Script%

Running: 15.0.24
version history

diamondrail
Junior Coder
Posts: 20
Joined: Wed Jul 31, 2019 9:38 am

Re: Pressing two keys simultaneously

Post by diamondrail » Sat Oct 05, 2019 2:55 pm

Thanks, checked already and didn't find a solution that works.

diamondrail
Junior Coder
Posts: 20
Joined: Wed Jul 31, 2019 9:38 am

Re: Pressing two keys simultaneously

Post by diamondrail » Sat Oct 05, 2019 3:07 pm

So far:

CapsOff
Press LShift * 10
Wait>0.047
Press Tab
Wait>0.047
Release LShift * 9
Wait>0.687
Press LShift * 9
Press Tab
Wait>0.047
Release LShift
Wait>2.23
Press Up * 4
Wait>0.532

diamondrail
Junior Coder
Posts: 20
Joined: Wed Jul 31, 2019 9:38 am

Re: Pressing two keys simultaneously

Post by diamondrail » Sat Oct 05, 2019 3:12 pm

IS "Setfocus" necessary? The window that I am trying to manipulate is a "CHoose File to Upload" window in Internet Explorer....

I find when I run the script, the "Choose file to upload" window opens, but nothing else happens..

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

Re: Pressing two keys simultaneously

Post by Dorian (MJT support) » Mon Oct 07, 2019 12:46 pm

I think I just answered this question via the help desk, so you'll see a more in-depth answer there.

Code: Select all

Press Shift
Press Tab
Release Shift
Yes, we have a Custom Scripting Service. Message me or go here

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