C++ Learning Community Forum
August 01, 2010, 02:34:13 AM
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
: Hello.
Home
Help
Search
Login
Register
C++ Learning Community Forum
>
Platform Specific Programming
>
Windows
>
Holding down keys
Pages: [
1
]
« previous
next »
Print
Author
Topic: Holding down keys (Read 447 times)
oulyt
C++ Freak
Posts: 340
Holding down keys
«
on:
August 09, 2009, 12:34:41 AM »
Im trying to make a program that hold down 3 keys for 30 seconds. lets say the 'z', 'x', and 'c'. then after 30 seconds it lets go pauses for 5 then holds them again for 30. and it would be doing this to a different window, lets say notepad.
I was thinking keybd_event but that dosnt seem like it holds the keys down. sendmessage might work with wm_keydown but i have no idea how to do that. i was reading it but didnt get most of it >.<
Logged
FrozenKnight
ASM Freak
Global Moderator
Dr. of C++ology
Posts: 546
Do it yourself it's the only way to learn.
Re: Holding down keys
«
Reply #1 on:
August 10, 2009, 01:20:03 AM »
keybd_event
does hold down keys take a closer look at the msdn page.
«
Last Edit: August 10, 2009, 01:22:58 AM by FrozenKnight
»
Logged
Imagine the impossible, then make it happen.
oulyt
C++ Freak
Posts: 340
Re: Holding down keys
«
Reply #2 on:
August 10, 2009, 04:56:46 AM »
aah, yes. i got it working.
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General C++ Programming
-----------------------------
=> C++ Help
===> C Programming
=> C++ Tips
=> C++ in General
=> 3rd Party Libraries Programming
-----------------------------
Platform Specific Programming
-----------------------------
=> Windows
=> Linux
=> DirectX
=> OpenGL
-----------------------------
C++ Creations
-----------------------------
=> Finished Products
=> Work in Progress
-----------------------------
Resources
-----------------------------
=> Recommended Resources
=> Bookworm's Corner
===> Accelerated C++: Practical Programming by Example
===> Code Complete
-----------------------------
Other than C++....
-----------------------------
=> Off Topic
=> Other Programing Languages
===> ASM Programming
=> Computer Lab
=> The Community
Loading...