Id Wonder Is There Any Way To Run Multiple Lines At The Same Time
The Reason Is That Im Trying To TAS A Game And There Is No Tas For It, So I Need To Hold A and W At The Same Time, How Would I Doo It
Running Multiple Lines At The Same Time
Moderators: Dorian (MJT support), JRL
Re: Running Multiple Lines At The Same Time
Sadly Ive Discovered The Game Doesn't Have Physic That Stay The Same, Still. It Could Be Usefull For The Future.
- Grovkillen
- Automation Wizard
- Posts: 1128
- Joined: Fri Aug 10, 2012 2:38 pm
- Location: Bräcke, Sweden
- Contact:
Re: Running Multiple Lines At The Same Time
Press and release commands are what you're looking for.
- Dorian (MJT support)
- Automation Wizard
- Posts: 1378
- Joined: Sun Nov 03, 2002 3:19 am
- Contact:
Re: Running Multiple Lines At The Same Time
Thank you for that suggestion. Initially I was thinking there wasn't a way at all because two lines can't be executed simultaneously, and was excited that you planted this seed in my head. But it's not something I can get to work in Notepad using regular character keys. I'd never considered using Press for anything other than non-character keys (the help file described it as intended for non-character keys, but that of course doesn't mean it won't work for others too). Alas, it seems that Press does not accept regular character keys. Definitely worth a try though. Other than this suggestion I can't think of any other ideas to press A and W simultaneously.
This is my (failed) attempt.
Code: Select all
run>notepad.exe
WaitWindowOpen>Untitl*
setfocus>Untitl*
WaitWindowFocused>Untitl*
wait>0.1
press A
press W
wait>2
release A
release W
Yes, we have a Custom Scripting Service. Message me or go here
- Grovkillen
- Automation Wizard
- Posts: 1128
- Joined: Fri Aug 10, 2012 2:38 pm
- Location: Bräcke, Sweden
- Contact:
Re: Running Multiple Lines At The Same Time
Any text accepting fields will only register one pressed key at the time. You should try your code using some keyboard monitoring software.