What code is used to imitate the pressing of a key?

Say I wanted the computer to act in a way that opened the Internet automatically and performed a certain number of tabs, returns, etc. How would you do this, and how would you stall for a set amount of time to ensure the Internet or application you are working with has enough time to load?

By the way, do you guys mind C++/CLI questions on this message board?
Last edited on
closed account (S6k9GNh0)
http://msdn.microsoft.com/en-us/library/ms646310(VS.85).aspx

There you go. I'm not sure if keyboard input is OS based or not...
There's a good article here about simulating key strokes (e.g. tab or enter/return) using the keydb_event() function:

http://www.codeproject.com/KB/system/keyboard.aspx
Topic archived. No new replies allowed.