How can i press a key?

Hello,

How can i press a key with c++? o.O

Something like this?
keybd_event(VkKeyScan'F5')0,0,0;

I just want to make a console program to refresh the webpage every 10 seconds lol Thanks!
Thanks lol ive been searching for "key press c++" and all i got is "keylog"•_•
Topic archived. No new replies allowed.