473,396 Members | 2,011 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 Make VB 6 Press A Key After X Seconds

Hi Everyone
I need to make VB to press a key after a short time what should i do?
witch button should i use or what to write there
Thanks
Jan 27 '14 #1
2 1123
while waiting for another people with more accurate answer...maybe this will help you a little..
http://msdn.microsoft.com/en-us/libr...(v=vs.60).aspx
http://www.developerfusion.com/artic...dkeys-command/

and for the x second...you can use a timer instead...i never use vb6 before so i dont really know how the timer will work in vb6...i think "googling" will solve it...
Feb 24 '14 #2
1. Add a timer to the form.
2. Set the interval in milliseconds in the Form_Load Sub, or with code.
3. Enable the timer when ready.
4. Use the Timer_Timer event to trigger a SendKeys function.
Apr 7 '14 #3

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

Similar topics

1
by: asdasd | last post by:
Hello there, I'm hoping someone might be able to help me out. Its been awhile since I've programmed in visual basic (and roughly at that)... I want to create a program that will allow me to...
3
by: John Howard | last post by:
I'm trying to write a simple press any key routine, but am having some problems. Here is the routine: void PressAnyKey () { cout << "Press Any Key"; do{}while (!kbhit()); getch(); cout <<...
4
by: MLH | last post by:
Best way to make Access 2.0 code wait 10 seconds before processing the next line??? For i=1 to whatever : next i is just too processor intensive. Isn't there something less taxing I can...
40
by: findmadhav | last post by:
I need a program in C (something like a TSR) which will automatically press the function key F6, say about every 5 seconds. Can anyone provide me with an exe of such a program? Thanks in advance.
5
by: BOOGIEMAN | last post by:
I want to put my console application to wait some time (for example 10 seconds) How do you do that ? Also, how does "Press any key to continue" code look like in C# ? If it helps, I can post here...
5
by: charlie strauss | last post by:
Below is a simple program that will cause python to intermittently stop executing for a few seconds. it's 100% reproducible on my machine. I'd be tempted to say this is a nasty garbage...
3
by: drakkofox | last post by:
Hi there, i need to subtract 36000 seconds, or a day, to get the yesterday's date, but with consistence check. for example, if i input the date 01/03/2007(dd/mm/yyyy) on the program, it should...
6
by: Mufasa | last post by:
I want to have a page where somebody can press the submit button and then it will display a jpg for a couple of seconds and then print results. (I want to give them the impression the system is...
2
by: hrstissiaopai | last post by:
Here I will show you how to make a simple dress-up game with Flash. Draw the person who needs to be dressed up. Make a new layer where the clothes are going to be. Draw the clothes. I...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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.