automatic key presser (from web design and development)

This is a discussion on automatic key presser (from web design and development) within the Programming forums, part of the Tech Support Forum category. i have been reading some of the tutorials on the internet for creating a program that will make my computer

i have been reading some of the tutorials on the internet for creating a program that will make my computer press a couple of times in a second but they are too complicated and hard to understand. What i need it to do is when i press the button "z" it will make it press the button "x" about 5 times in one second until i press "z" again. Is there anyone that can help me with creating this kind of program?

Okay well this doesn't seem that difficult, but before I dive deep into how to make a script for this have you tired looking at the wiki and seeing if there is anything that can help you with it. If that isn't there I would search the forums too. If you don't find anything even similar to it then come back and I will try and find something.

Also, I am going to move your thread to the programming section as this really doesn't have anything to do with web design and development.

I have been looking for something like this for almost 2 weeks now and i can't find one that's similar to this. I have downloaded many programs like this and i found out that this is the only way to do it(by creating a script). Most of them want to press the mouse button and i'm not familiar with the commands so i really can't do it myself...

i figured it out. The problem was that i needed the x button to be pressed with the smallest break possible after pressing the z button. What that program does is it just pastes xx instead of x and after a couple of milliseconds another x

The problem was that i needed the x button to be pressed with the smallest break possible after pressing the z button.

I am confused as to what you meant. I just performed a benchmark on this program, and it emulated the key press 'x' 5 times in less than 1/4 of a second ( 0.212 seconds was my fastest time with it ). That seems rather fast to me, as that's roughly 16-22 key presses a second being emulated. If it needs to be faster, there might be a way to trim it down a few milliseconds, but it still won't fall under 0.150 seconds from what I can imagine.

Quote:

x and after a couple of milliseconds another x

It sounds like you were wanting it to be even quicker in emulating the 5 key presses to perhaps less than 0.050 seconds. I don't think this can be done, as it takes a certain amount of time to take an event from the Windows events stack, process what to do with it, and send the 5 emulated key pressed back to Windows to be performed. This would be up to the speed of your processor, which mine is currently not the best in the world by far. The speed isn't capped, so if you can get it to perform quicker on your system then that will solve that issue.

Quote:

What that program does is it just pastes xx instead of x and after a couple of milliseconds another x

By 'pastes', do you mean that it sends the literal character value for 'x' instead of the key press of 'x'? Both can be done, but this program specifically emulates the key press of 'x' instead of sending the character 'x' to Windows applications. If you're not wanting the program to emulate the key presses one right after another and instead have delay between each key press, that can be done.

automatic key presser (from web design and development)i have been reading some of the tutorials on the internet for creating a program that will make my computer press a couple of times in a second but they are too complicated and hard to understand. What i need it to do is when i press the button "z" it will make it press the button "x" about 5 times...

'Downgrade' from Windows Vista to Windows XP opinionsHi,
My parents computer (Dell Dimension E520) running Windows 7 is incredibly and painfully slow. In task manager the CPU usage runs at a consistent 100% when undertaking the simplest of tasks.
I thought about upgrading their processor or alternatively upgrading to Windows 7, but am...

Transitioning from Residential to Small Business Customers?As it is right now as a freelance computer tech my ideal situation is to have a number of computers infected with malware or need the operating system upgraded, dropped off at my home where I work on them.
This allows for a fantastic profit every day with little effort and a troubleshooting zone...