Jump to content
Sign in to follow this  
PhnxGold

Type in one window, have it show in another?

Recommended Posts

PhnxGold

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,

Share this post


Link to post
Share on other sites
Nahuel

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=

Share this post


Link to post
Share on other sites
blademonkey

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

Share this post


Link to post
Share on other sites
Nahuel

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.

Share this post


Link to post
Share on other sites
blademonkey

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

Well I'm just thinking it's very easy to switch the cloned app to something else, like say a hidden text file.

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

Share this post


Link to post
Share on other sites
PhnxGold

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.

Share this post


Link to post
Share on other sites
blademonkey

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

Share this post


Link to post
Share on other sites
PhnxGold

oh ok, so it's a bot.

Well, I consider a bot to be unattended. This would actually be taking an input from me.......and not be automated from a script.

Share this post


Link to post
Share on other sites
DW1

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.

Share this post


Link to post
Share on other sites
PhnxGold

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,

Share this post


Link to post
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
Sign in to follow this  

×