PhnxGold Posted January 16, 2008 Share Posted January 16, 2008 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 More sharing options...
Nahuel Posted January 16, 2008 Share Posted January 16, 2008 Ok, in a simple explaination, I'm trying to do the following.Open 2 instances of notepad.exerecord key inputs and clone the inputs on both notepadsIs 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 More sharing options...
blademonkey Posted January 16, 2008 Share Posted January 16, 2008 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 More sharing options...
Nahuel Posted January 16, 2008 Share Posted January 16, 2008 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 More sharing options...
James Posted January 16, 2008 Share Posted January 16, 2008 ControlGetText ControlSetText GuiCtrlRead Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
blademonkey Posted January 16, 2008 Share Posted January 16, 2008 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 Link to comment Share on other sites More sharing options...
PhnxGold Posted January 16, 2008 Author Share Posted January 16, 2008 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. Link to comment Share on other sites More sharing options...
blademonkey Posted January 16, 2008 Share Posted January 16, 2008 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 More sharing options...
PhnxGold Posted January 16, 2008 Author Share Posted January 16, 2008 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. Link to comment Share on other sites More sharing options...
DW1 Posted January 17, 2008 Share Posted January 17, 2008 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. AutoIt3 Online Help Link to comment Share on other sites More sharing options...
PhnxGold Posted January 17, 2008 Author Share Posted January 17, 2008 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now