473,396 Members | 2,109 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

How to code an auto key presser

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
5 6617
Ali Rizwan
925 512MB
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
Thanks a lot, that worked
Nov 26 '07 #3
Killer42
8,435 Expert 8TB
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
925 512MB
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
Killer42
8,435 Expert 8TB
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

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

Similar topics

0
by: Steve Barker | last post by:
Hi guys! In Visual Studio .NET, I like to enable auto-generation of XML documentation on the project properties screen, by adding an XML file name under "Configuration Properties" --> "Build"...
5
by: Ray via SQLMonster.com | last post by:
Hi there, See if you can help me with the following: I need to write an SQL code that will return me: The 1st day & the Last day of the Previous Month in the following format...
2
by: asdf | last post by:
It' me again. What I forgot to say, stops with a runtime error (insert, delete, update or select expected; the error number is a very low number starting with -). I have another problematic code...
20
by: Vijay Kumar R. Zanvar | last post by:
Hello, Unlike register, auto keyword can not be used to declare formal parameter(s). Is there any specific reason for this? Kind regards, Vijay Kumar R. Zanvar
6
by: Alpha | last post by:
I retrieve a table with only 2 columns. One is a auto-generated primary key column and the 2nd is a string. When I add a new row to the dataset to be updated back to the database. What should I...
4
by: Never Best | last post by:
I have an application. I want it so when the user minimizs the window it goes into the system tray, and while in the system tray I don't want it in the "Alt-Tab" list. (When the program starts it...
2
by: Greg Strong | last post by:
Hello All, Is it possible to change table field lookup properties in code? I've been able to change other field properties in code, however so far no luck with field lookup properties. What...
239
by: Eigenvector | last post by:
My question is more generic, but it involves what I consider ANSI standard C and portability. I happen to be a system admin for multiple platforms and as such a lot of the applications that my...
3
by: dotcom | last post by:
hello, i am sending whole javascript code(it is for freezing html header) it works fine eith IE but not firefox scroll bar does not come var divContent = null; var divHeaderRow = null; var...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.