Sign in to follow this  
Followers 0
Traddles

keydown/up in another window?

8 posts in this topic

I would like to have something like this:

I run the script and it records keydowns and keyups that are being sent to another window (like a game for instance) and if I could then record these keydowns and keyups and put sleeps in between for how long the person held that button in for I could have a nice little script for recording macros (spesifically for games)

if what I am trying to do is not clear enough I can give an example and some of the basic code that I have written so far (but with large chunks missing)

Share this post


Link to post
Share on other sites



I would like to have something like this:

I run the script and it records keydowns and keyups that are being sent to another window (like a game for instance) and if I could then record these keydowns and keyups and put sleeps in between for how long the person held that button in for I could have a nice little script for recording macros (spesifically for games)

if what I am trying to do is not clear enough I can give an example and some of the basic code that I have written so far (but with large chunks missing)

It's pretty clear, but key loggers are frowned on here, despite whether their intentions are admirable or not.

[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

really?

that's a shame. I'm all about shortcut keys and making my computer do exactly what I want with as little keypresses/mousemoves as possible. Which is why I took on this little project. the idea of a global macro creator/editor just sounds really interesting and I've yet to find a program that does it well.

why exactly are "keyloggers" frowned on anyway? Wouldn't one need a password to get into someones computer in order to install such a script (assuming that it's frowned upon for being "hackerish")?

Share this post


Link to post
Share on other sites

really?

that's a shame. I'm all about shortcut keys and making my computer do exactly what I want with as little keypresses/mousemoves as possible. Which is why I took on this little project. the idea of a global macro creator/editor just sounds really interesting and I've yet to find a program that does it well.

why exactly are "keyloggers" frowned on anyway? Wouldn't one need a password to get into someones computer in order to install such a script (assuming that it's frowned upon for being "hackerish")?

In SciTe there is a tool that can help you make bots for games and such.. It's called Au3Recorder. I'm not sure if it captures key presses too but I'm positive about mouse moves and sleep.

I've been told AutoIt has bad publicity, as it is an interpreted language whenever someone writes malicious code (virus, trojan, keylogger) every single executable with the same version gets flagged as harmful, and is deleted by anti-virus company's. Usually it takes a few days to convince those companies that not all AutoIt executables are 'infected' but just that one.. So.. That's why key loggers are bad PR.

Share this post


Link to post
Share on other sites

oh. yeah, I could see how stuff like "keylogger" type programs could be frowned on in light of that. That's a shame, cuz autoIt is great for making things more accessible. I love my little control program (written in autoIt)

Share this post


Link to post
Share on other sites

But keyloggers can be for good reasons, but I guess that some people don't understand that. Keyloggers can help an admin monitor their system. Or a parent monitor their child.

You're right. For those people I can suggest picking up a professional keylogger, works a lot better then those AutoIt based ones (Yes, they do exist).

Share this post


Link to post
Share on other sites

search the forum for "mousehook" ... find my dll and script... all is there that you'll need... study and don't ask too many questions.

Larry, I can't help myself but mentioning it one more time. Mousehook rocks! :whistle:

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  
Followers 0