deat Posted January 28, 2005 Share Posted January 28, 2005 I just downloaded AutoIt, and I'm curious as to how it is able to generate keystrokes. I have a keystroke counter (simple code) and I want a program that generates keystrokes that will be registered by my counter. I'm sorry if this was asked before, but it's tedious going through the searched topics. Thanks in advance. Link to comment Share on other sites More sharing options...
deat Posted January 28, 2005 Author Share Posted January 28, 2005 I'm not so much talking of a mouse click counter, but more along keys. I'm a (I hate this term) n00b to coding, and was wondering if there was a ode premade that generates strokes. :/ Link to comment Share on other sites More sharing options...
layer Posted January 28, 2005 Share Posted January 28, 2005 i think he means like: $codes= Chr(Random(Asc("a"), Asc("z"), 1)) Send ($codes) i think that should work.. right out of my "Genterate ()" function FootbaG Link to comment Share on other sites More sharing options...
deat Posted January 28, 2005 Author Share Posted January 28, 2005 (edited) Thanks. Is that the whole thing? By using that, will I be able to then have my key counter "log" the generated keystrokes? EDIT3: I paste that code into notepad, and save it as a .aut file. I try to open it up with AutoIt, but it comes up with an error: line 1: $codes= Chr(Random(Asc("a"), Asc("z"), 1)) Error: unknown command Edited January 28, 2005 by deat Link to comment Share on other sites More sharing options...
layer Posted January 28, 2005 Share Posted January 28, 2005 Thanks. <{POST_SNAPBACK}>no problem just add it into a For...Next loop and you can make it send as many keystroks you want :) FootbaG Link to comment Share on other sites More sharing options...
deat Posted January 28, 2005 Author Share Posted January 28, 2005 My last post was edited with stuff... As for the overall use of AutoIt, I have nearly zero experience with coding in this manner...I'm not sure how I coudld add this into something else/what the something else is. I feel slow. Link to comment Share on other sites More sharing options...
layer Posted January 28, 2005 Share Posted January 28, 2005 .aut? that's pretty old isn't it? i recommend you get the newest BETA version of AutoIt... do that.. and no way, thats not the whole code.. thats what will generate A random keystroke... ill explain more later but i have to go now, if anyone else wants to explain, go right ahead FootbaG Link to comment Share on other sites More sharing options...
killaz219 Posted January 29, 2005 Share Posted January 29, 2005 .aut? that's pretty old isn't it? i recommend you get the newest BETA version of AutoIt... do that.. and no way, thats not the whole code.. thats what will generate A random keystroke... ill explain more later but i have to go now, if anyone else wants to explain, go right ahead <{POST_SNAPBACK}>aut is Autoit v2 au3 is any version of Autoit v3But i guess he would need the beta since you have the flag added to random. Link to comment Share on other sites More sharing options...
deat Posted January 31, 2005 Author Share Posted January 31, 2005 Could anyone compile a script to do this? If not, that's cool, but it's really be cool if someone could. Link to comment Share on other sites More sharing options...
deat Posted February 2, 2005 Author Share Posted February 2, 2005 Sorry to do this, but...bump 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