Jump to content

Type in one window, have it show in another?


 Share

Recommended Posts

Ok, in a simple explaination, I'm trying to do the following.

Open 2 instances of notepad.exe

record key inputs and clone the inputs on both notepads

Is this type of function possible with AutoIt?

It's actually because I want to control 2 applications at the same time by cloning the inputs so that it happens on both programs.

Any ideas?? I've been searching and haven't come up with anything quite yet.

Thanks in advance,

Link to comment
Share on other sites

Ok, in a simple explaination, I'm trying to do the following.

Open 2 instances of notepad.exe

record key inputs and clone the inputs on both notepads

Is this type of function possible with AutoIt?

It's actually because I want to control 2 applications at the same time by cloning the inputs so that it happens on both programs.

Any ideas?? I've been searching and haven't come up with anything quite yet.

Thanks in advance,

Sounds possible... I guess you could simply poll the first notepad for new text and use ControlSetText() to send it to the other one.

Here's another interesting thing that might be helpful.

http://www.autoitscript.com/forum/index.ph...c=55694&hl=

Link to comment
Share on other sites

Sounds possible... I guess you could simply poll the first notepad for new text and use ControlSetText() to send it to the other one.

Here's another interesting thing that might be helpful.

http://www.autoitscript.com/forum/index.ph...c=55694&hl=

no offense but this sounds like a keylogger to me.

why would you want to control two instances of notepad at the same time?

---"Educate the Mind, Make Savage the Body" -Mao Tse Tung

Link to comment
Share on other sites

no offense but this sounds like a keylogger to me.

why would you want to control two instances of notepad at the same time?

I thought the same thing, but then I thought he only wanted it to work with notepad.

Link to comment
Share on other sites

LOL no, it's not a keylogger. It's actually for a game to clone keystrokes running between two instances of the game. But before tackling that, I wanted to try something smaller like notepad.

oh ok, so it's a bot.

---"Educate the Mind, Make Savage the Body" -Mao Tse Tung

Link to comment
Share on other sites

It's still a bot, but ControlGetText, ControlSetText, GuiCtrlRead are not going to help you for games, only notepad.

You should look into the _IsPressed function, as I think it will get you headed in the right direction.

Ok, that's fair. I understand how people are getting tired of bots in games. In all honesty, I witnessed someone with a program doing the same thing, which is why I was asking. Being a code nerd myself, I was curious how it was done.

The odd part though is that this person had 4 instances of the game running at once.......the first controlling the last 3, and the game only allows 2 instances to be run at any time on the same machine. I like to figure out how people do stuff like that and in my search, I found AutoIt to be used in a lot of game scripting, so that's why I asked in the first place.

I actually was able to acheive what I was looking to do last night using _IsPressed and _MouseClickPlus. It's a bit rough, but the concept was proven.

Thanks all for the input,

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...