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.
Pressing two keys simultaneously
Moderators: JRL, Dorian (MJT support)
-
- Junior Coder
- Posts: 20
- Joined: Wed Jul 31, 2019 9:38 am
- Grovkillen
- Automation Wizard
- Posts: 1132
- Joined: Fri Aug 10, 2012 2:38 pm
- Location: Bräcke, Sweden
- Contact:
Re: Pressing two keys simultaneously
Study the manual in the section for key strokes.
-
- Junior Coder
- Posts: 20
- Joined: Wed Jul 31, 2019 9:38 am
Re: Pressing two keys simultaneously
Thanks, checked already and didn't find a solution that works.
-
- Junior Coder
- Posts: 20
- Joined: Wed Jul 31, 2019 9:38 am
Re: Pressing two keys simultaneously
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
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
-
- Junior Coder
- Posts: 20
- Joined: Wed Jul 31, 2019 9:38 am
Re: Pressing two keys simultaneously
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..
I find when I run the script, the "Choose file to upload" window opens, but nothing else happens..
- Dorian (MJT support)
- Automation Wizard
- Posts: 1414
- Joined: Sun Nov 03, 2002 3:19 am
Re: Pressing two keys simultaneously
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