Jump to content

Typing in 2 windows simultaneously (Windows 10)


Kernel Kraken

Recommended Posts

So I've been working on a project using alt accounts to do repetitive tasks in a game (pressing Q to fire a cannon). I've already gotten as fast as possible with one account and an autoclicker, and firing the cannons any faster would require friends consenting to do it or some Windows 10 BS. I've chosen the Windows 10 BS route. Is there any way to, say, type "Hello World" in one notepad window and have it appear in the second window in real time? I'm experimenting with alt accounts and I don't feel like running the game on a bunch of seperate PCs so I've decided to run several instances of the game on one.

Edited by Kernel Kraken
Link to comment
Share on other sites

17 hours ago, Shpaget said:

Without double checking, it sound like job for Autohotkey, your friendly neighbour automation tool.

I'm actually using autohotkey for the autoclicker, believe it or not. Do you know of a script that can do what I want?

 

Link to comment
Share on other sites

because of how Windows is constructed, it is actually not very straightforward at all to type in more than one program at a time. 

Windows runs each keystroke through the active window first. And said program gets to decide whether or not to "trap" the key or allow it to have it's default behavior (if any) - Once the active window traps a key, the buck effectively stops there.  

Windows might quite possibly detect any means of interception as a possible (even if false) attempt at data theft. Microsoft is rather poophole about security, with perhaps good reasons, (most of the time) so they make it intentionally difficult to have various programs stealing inputs from each other.  

Perhaps the only way to achieve true multiple-focus typing would be to write software that does so at a driver level. Unlike regular (so called "user mode") programs, drivers can do pretty much all they want with your computer (though there are still various restrictions even then), which is why Windows makes such a bit fuss about whether or not you really, really, no really, I swear I won't break it, mom! trust your software provider when you install a driver.

 

Easier perhaps would be to have a script that rapidly alternates between windows and retypes what you just wrote. Though this would make for some awkward flickering if it ran on each key, I expect.  It'd also have to be able to receive inputs even while on the background, which might be troublesome if any programs you're using makes a point to capture and trap all inputs (games usually do this, especially when running in full screen)

So this would work perhaps only some of the time, depending on what particular combination of programs you're trying to multi-type into.

 

There are ways to do it - but I don't think any are anything you could call "trivial".

 

 

---- 

 

also, mind that if the goal is being able to input more keystrokes at one time, it might not be possible to get any faster than the game is able to accept your inputs. 

Unless the program queues up key press events, you'll most likely be limited by it's update cycle rate. (this may or not be the same as it's FPS)

 

Edited by Moach
Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...