By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,057 Members | 1,346 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,057 IT Pros & Developers. It's quick & easy.

How to code an auto key presser

P: 2
I Have a dll injector that I didn't code, but I want to improve...
When you have a dll loaded, and a process name typed, you have to manually press "0" to inject the dll.
Is there a way to code a timer to automatically press "0" every 5 seconds or something like that?
Nov 24 '07 #1
Share this Question
Share on Google+
5 Replies


Ali Rizwan
100+
P: 927
I Have a dll injector that I didn't code, but I want to improve...
When you have a dll loaded, and a process name typed, you have to manually press "0" to inject the dll.
Is there a way to code a timer to automatically press "0" every 5 seconds or something like that?
Hello,

Write your all code under a commandbutton click event and write this code under timer event.

Expand|Select|Wrap|Line Numbers
  1. Command1_Click
Set your timer interval to 5000 now after every 5 seconds button will clicked automatically an your desired code will executed.

GOOD LUCK
ALI
Nov 25 '07 #2

P: 2
Thanks a lot, that worked
Nov 26 '07 #3

Expert 5K+
P: 8,434
Write your all code under a commandbutton click event and write this code under timer event.
Why would you use two steps, rather than just putting the code in the Timer event?
Nov 28 '07 #4

Ali Rizwan
100+
P: 927
Why would you use two steps, rather than just putting the code in the Timer event?
Because if user don't want it automatic then it will use the button and in case of automatic he'll just enables the timer
Nov 29 '07 #5

Expert 5K+
P: 8,434
Because if user don't want it automatic then it will use the button and in case of automatic he'll just enables the timer
Fair enough.
Nov 29 '07 #6

Post your reply

Sign in to post your reply or Sign up for a free account.